packages: add missing conffiles define
[openwrt.org/packages.git] / net / nfs-server / Makefile
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
#
# 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:=nfs-server
PKG_VERSION:=2.2beta47
PKG_RELEASE:=3
 
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nfs-user-server
PKG_SOURCE:=nfs-user-server_$(PKG_VERSION).orig.tar.gz
PKG_MD5SUM:=79a29fe9f79b2f3241d4915767b8c511
 
include $(INCLUDE_DIR)/package.mk
 
define Package/nfs-server
  SECTION:=net
  CATEGORY:=Network
  SUBMENU:=Filesystem
  DEPENDS:=+portmap $(LIBRPC_DEPENDS)
  TITLE:=User Space NFS server
  URL:=http://packages.debian.org/nfs-user-server
endef
 
define Package/nfs-server/description
User Space NFS server
endef
 
define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR)
endef
 
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
TARGET_LDFLAGS += $(LIBRPC)
 
define Package/nfs-server/install
        $(INSTALL_DIR) $(1)/etc
        $(INSTALL_DATA) ./files/nfsd.exports $(1)/etc/exports
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/nfsd.init $(1)/etc/init.d/nfsd
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/rpc.* $(1)/usr/sbin/
endef
 
define Package/nfs-server/conffiles
/etc/exports
endef
 
$(eval $(call BuildPackage,nfs-server))
 
comments