3764aae3a8f9519dd6053c946b1d649d8da99fb5
[openwrt/svn-archive/archive.git] / net / unfs3 / 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:=unfs3
11 PKG_VERSION:=0.9.22
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=ddf679a5d4d80096a59f3affc64f16e5
17
18 PKG_BUILD_PARALLEL:=0
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/unfs3
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Filesystem
26 DEPENDS:=+portmap $(LIBRPC_DEPENDS)
27 TITLE:=User-space NFSv3 Server
28 URL:=http://unfs3.sourceforge.net/
29 endef
30
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
35 on the server.
36 endef
37
38 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
39 TARGET_LDFLAGS += $(LIBRPC)
40
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
48 endef
49
50 define Package/unfs3/conffiles
51 /etc/exports
52 endef
53
54 $(eval $(call BuildPackage,unfs3))