Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright (C) 2009-2012 OpenWrt.org
  2. # All rights reserved.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=mountd
  5. PKG_VERSION:=0.1
  6. PKG_RELEASE:=6
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  8. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
  9. PKG_MD5SUM:=b77253ee4321d24d200fffc4f7ca3d15
  10. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  11. PKG_CHECK_FORMAT_SECURITY:=0
  12. PKG_LICENSE:=GPL-2.0
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/mountd
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. TITLE:=libreCMC automount daemon
  18. DEPENDS:=@USB_SUPPORT +uci +kmod-usb-storage +kmod-fs-autofs4
  19. URL:=http://www.openwrt.org
  20. endef
  21. define Package/mountd/description
  22. librecmc automount daemon
  23. endef
  24. define Package/mountd/conffiles
  25. /etc/config/mountd
  26. endef
  27. define Build/Compile
  28. $(TARGET_CONFIGURE_OPTS) \
  29. CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)" \
  30. LDFLAGS="$(TARGET_LDFLAGS)" \
  31. $(MAKE) -C $(PKG_BUILD_DIR)
  32. endef
  33. define Package/mountd/install
  34. $(INSTALL_DIR) $(1)/sbin/ $(1)/etc/config/ $(1)/etc/init.d/
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mountd $(1)/sbin/
  36. $(INSTALL_DATA) ./files/mountd.config $(1)/etc/config/mountd
  37. $(INSTALL_BIN) ./files/mountd.init $(1)/etc/init.d/mountd
  38. endef
  39. $(eval $(call BuildPackage,mountd))