Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 <[email protected]>
  11. PKG_CHECK_FORMAT_SECURITY:=0
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/mountd
  14. SECTION:=utils
  15. CATEGORY:=Utilities
  16. TITLE:=OpenWrt automount daemon
  17. DEPENDS:=@USB_SUPPORT +uci +kmod-usb-storage +kmod-fs-autofs4
  18. URL:=http://www.openwrt.org
  19. endef
  20. define Package/mountd/description
  21. openwrt automount daemon
  22. endef
  23. define Package/mountd/conffiles
  24. /etc/config/mountd
  25. endef
  26. define Build/Compile
  27. $(TARGET_CONFIGURE_OPTS) \
  28. CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(PKG_BUILD_DIR)" \
  29. LDFLAGS="$(TARGET_LDFLAGS)" \
  30. $(MAKE) -C $(PKG_BUILD_DIR)
  31. endef
  32. define Package/mountd/install
  33. $(INSTALL_DIR) $(1)/sbin/ $(1)/etc/config/ $(1)/etc/init.d/
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mountd $(1)/sbin/
  35. $(INSTALL_DATA) ./files/mountd.config $(1)/etc/config/mountd
  36. $(INSTALL_BIN) ./files/mountd.init $(1)/etc/init.d/mountd
  37. endef
  38. $(eval $(call BuildPackage,mountd))