c66aa373ca9fe97ebf318808128e59f3ad4408af
[openwrt/svn-archive/archive.git] / net / nfs-server / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nfs-server
12 PKG_VERSION:=2.2beta47
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=79a29fe9f79b2f3241d4915767b8c511
15
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nfs-user-server
17 PKG_SOURCE:=nfs-user-server_$(PKG_VERSION).orig.tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/nfs-server
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+portmap
29 TITLE:=User Space NFS server
30 DESCRIPTION:=User Space NFS server
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR)
35 endef
36
37 define Package/nfs-server/install
38 install -d -m0755 $(1)/etc
39 install -m0644 ./files/nfsd.exports $(1)/etc/exports
40 install -d -m0755 $(1)/etc/init.d
41 install -m0755 ./files/nfsd.init $(1)/etc/init.d/nfsd
42 install -d -m0755 $(1)/usr/sbin
43 install -m0755 $(PKG_BUILD_DIR)/rpc.* $(1)/usr/sbin/
44 endef
45
46 $(eval $(call BuildPackage,nfs-server))