source: trunk/package/mountd/Makefile @ 21205

Last change on this file since 21205 was 21205, checked in by blogic, 7 years ago

fixes file perms of mountd uci file and init.d script, thx yann.lopez

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