blob: 339b3cfe5d7484709f26549078f005c85709fd09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#
# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=unfs3
PKG_VERSION:=0.9.22
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_MD5SUM:=ddf679a5d4d80096a59f3affc64f16e5
PKG_LICENSE:=UNFS3
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_PARALLEL:=0
include $(INCLUDE_DIR)/package.mk
define Package/unfs3
SECTION:=net
CATEGORY:=Network
SUBMENU:=Filesystem
DEPENDS:=+portmap $(LIBRPC_DEPENDS)
TITLE:=User-space NFSv3 Server
URL:=http://unfs3.sourceforge.net/
endef
define Package/unfs3/description
UNFS3 is a user-space implementation of the NFSv3 server
specification. It provides a daemon for the MOUNT and NFS
protocols, which are used by NFS clients for accessing files
on the server.
endef
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
TARGET_LDFLAGS += $(LIBRPC)
define Package/unfs3/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) ./files/$(PKG_NAME).exports $(1)/etc/exports
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/unfsd $(1)/usr/sbin
endef
define Package/unfs3/conffiles
/etc/exports
endef
$(eval $(call BuildPackage,unfs3))
|