2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=ddf679a5d4d80096a59f3affc64f16e5
19 PKG_LICENSE_FILES:=LICENSE
23 include $(INCLUDE_DIR)/package.mk
29 DEPENDS:=+portmap $(LIBRPC_DEPENDS)
30 TITLE:=User-space NFSv3 Server
31 URL:=http://unfs3.sourceforge.net/
34 define Package/unfs3/description
35 UNFS3 is a user-space implementation of the NFSv3 server
36 specification. It provides a daemon for the MOUNT and NFS
37 protocols, which are used by NFS clients for accessing files
41 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
42 TARGET_LDFLAGS += $(LIBRPC)
44 define Package/unfs3/install
45 $(INSTALL_DIR) $(1)/etc/init.d
46 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
47 $(INSTALL_DIR) $(1)/etc
48 $(INSTALL_DATA) ./files/$(PKG_NAME).exports $(1)/etc/exports
49 $(INSTALL_DIR) $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/unfsd $(1)/usr/sbin
53 define Package/unfs3/conffiles
57 $(eval $(call BuildPackage,unfs3))