squid: moved to github
[packages.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_LICENSE:=UNFS3
19 PKG_LICENSE_FILES:=LICENSE
20
21 PKG_BUILD_PARALLEL:=0
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/unfs3
26   SECTION:=net
27   CATEGORY:=Network
28   SUBMENU:=Filesystem
29   DEPENDS:=+portmap $(LIBRPC_DEPENDS)
30   TITLE:=User-space NFSv3 Server
31   URL:=http://unfs3.sourceforge.net/
32 endef
33
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
38         on the server.
39 endef
40
41 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
42 TARGET_LDFLAGS += $(LIBRPC)
43
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
51 endef
52
53 define Package/unfs3/conffiles
54 /etc/exports
55 endef
56
57 $(eval $(call BuildPackage,unfs3))