2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
12 PKG_VERSION:=2.2beta47
14 PKG_MD5SUM:=79a29fe9f79b2f3241d4915767b8c511
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nfs-user-server
17 PKG_SOURCE:=nfs-user-server_$(PKG_VERSION).orig.tar.gz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/nfs-server
29 TITLE:=User Space NFS server
30 DESCRIPTION:=User Space NFS server
34 $(MAKE) -C $(PKG_BUILD_DIR)
37 define Package/nfs-server/install
38 $(INSTALL_DIR) $(1)/etc
39 $(INSTALL_DATA) ./files/nfsd.exports $(1)/etc/exports
40 $(INSTALL_DIR) $(1)/etc/init.d
41 $(INSTALL_BIN) ./files/nfsd.init $(1)/etc/init.d/nfsd
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rpc.* $(1)/usr/sbin/
46 $(eval $(call BuildPackage,nfs-server))