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.
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
20 include $(INCLUDE_DIR
)/package.mk
26 DEPENDS
:=+portmap
$(LIBRPC_DEPENDS
)
27 TITLE
:=User-space NFSv3 Server
28 URL
:=http
://unfs3.sourceforge.net
/
31 define Package
/unfs3
/description
32 UNFS3 is a user-space implementation of the NFSv3 server
33 specification. It provides a daemon for the MOUNT and NFS
34 protocols
, which are used by NFS clients for accessing files
38 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
39 TARGET_LDFLAGS
+= $(LIBRPC
)
41 define Package
/unfs3
/install
42 $(INSTALL_DIR
) $(1)/etc
/init.d
43 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
44 $(INSTALL_DIR
) $(1)/etc
45 $(INSTALL_DATA
) .
/files
/$(PKG_NAME
).exports
$(1)/etc
/exports
46 $(INSTALL_DIR
) $(1)/usr
/sbin
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/unfsd
$(1)/usr
/sbin
50 $(eval
$(call BuildPackage
,unfs3
))