Makefile 1.2 KB

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