[package] update nfs-kernel-server to 1.1.5 (#4882)
[openwrt/svn-archive/archive.git] / net / nfs-kernel-server / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=nfs-kernel-server
6 PKG_VERSION:=1.1.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=2848072a5e53840b9bc520fbb6782b57
9
10 PKG_SOURCE_URL:=@SF/nfs
11 PKG_SOURCE:=nfs-utils-$(PKG_VERSION).tar.bz2
12
13 PKG_BUILD_DIR:=$(BUILD_DIR)/nfs-utils-$(PKG_VERSION)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/nfs-kernel-server
18 SECTION:=net
19 CATEGORY:=Network
20 TITLE:=Kernel NFS server support
21 URL:=http://nfs.sourceforge.net/
22 DEPENDS:=+kmod-fs-nfsd +kmod-fs-nfs +portmap +libwrap +libevent +libblkid
23 endef
24
25 define Package/nfs-kernel-server/description
26 Kernel NFS server support
27 endef
28
29 define Package/nfs-kernel-server-utils
30 SECTION:=net
31 CATEGORY:=Network
32 TITLE:=NFS server utils
33 URL:=http://nfs.sourceforge.net
34 DEPENDS:=+nfs-kernel-server
35 endef
36
37 define Package/nfs-kernel-server-utils/description
38 NFS server utils
39 endef
40
41 define Package/nfs-kernel-server/conffiles
42 /etc/exports
43 endef
44
45 CONFIGURE_ARGS += --disable-gss --disable-nfsv4 --enable-static --enable-shared
46
47 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
48 TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
49
50 define Build/Compile
51 $(call Build/Compile/Default, \
52 OPT="$(TARGET_CFLAGS)" \
53 INSTALLSUID="install -m 4755" \
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 all install \
56 )
57 endef
58
59 define Package/nfs-kernel-server/install
60 $(INSTALL_DIR) $(1)/etc/init.d $(1)/usr/sbin
61 $(INSTALL_DATA) ./files/nfsd.exports $(1)/etc/exports
62 $(INSTALL_BIN) ./files/nfsd.init $(1)/etc/init.d/nfsd
63 $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/statd/statd $(1)/usr/sbin/rpc.statd
64 $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/nfsd/nfsd $(1)/usr/sbin/rpc.nfsd
65 $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/mountd/mountd $(1)/usr/sbin/rpc.mountd
66 $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/exportfs/exportfs $(1)/usr/sbin/
67 endef
68
69 define Package/nfs-kernel-server-utils/install
70 $(INSTALL_DIR) $(1)/usr/sbin
71 $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/showmount/showmount $(1)/usr/sbin
72 $(INSTALL_BIN) $(PKG_BUILD_DIR)/utils/nfsstat/nfsstat $(1)/usr/sbin
73 endef
74
75 $(eval $(call BuildPackage,nfs-kernel-server))
76 $(eval $(call BuildPackage,nfs-kernel-server-utils))