Root/package/mountd/Makefile

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

Archive Download this file



interactive