packages/ushare: add /etc/config/ushare to conffiles define
[openwrt/svn-archive/archive.git] / net / nfs-server / Makefile
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nfs-server
11 PKG_VERSION:=2.2beta47
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nfs-user-server
15 PKG_SOURCE:=nfs-user-server_$(PKG_VERSION).orig.tar.gz
16 PKG_MD5SUM:=79a29fe9f79b2f3241d4915767b8c511
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/nfs-server
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=Filesystem
24 DEPENDS:=+portmap $(LIBRPC_DEPENDS)
25 TITLE:=User Space NFS server
26 URL:=http://packages.debian.org/nfs-user-server
27 endef
28
29 define Package/nfs-server/description
30 User Space NFS server
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR)
35 endef
36
37 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
38 TARGET_LDFLAGS += $(LIBRPC)
39
40 define Package/nfs-server/install
41 $(INSTALL_DIR) $(1)/etc
42 $(INSTALL_DATA) ./files/nfsd.exports $(1)/etc/exports
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/nfsd.init $(1)/etc/init.d/nfsd
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rpc.* $(1)/usr/sbin/
47 endef
48
49 $(eval $(call BuildPackage,nfs-server))