Add nfs-utils from #1842
[openwrt/svn-archive/archive.git] / net / nfs-utils / 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: Makefile 6582 2007-03-16 20:21:39Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nfs-utils
12 PKG_VERSION:=1.1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.sourceforge.net/nfs/
17 PKG_MD5SUM:=df88c6fe88a26f9797e74cb2d3291a2a
18
19 PKG_BUILD_DEPENDS:=libgssapi librpcsecgss libnfsidmap libwrap
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/nfs-utils/Default
24 SECTION:=net
25 CATEGORY:=Network
26 URL:=http://sourceforge.net/projects/nfs/
27 endef
28
29 define Package/nfs-utils
30 $(call Package/nfs-utils/Default)
31 DEPENDS:=+libwrap +libevent +libblkid
32 TITLE:=updated mount utility (includes nfs4)
33 DESCRIPTION:=Updated mount.nfs command - allows mounting nfs4 volumes
34 endef
35
36 CONFIGURE_ARGS += --disable-gss
37 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
38 define Build/Compile
39 $(call Build/Compile/Default, \
40 OPT="$(TARGET_CFLAGS)" \
41 INSTALLSUID="install -m 4755" \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install \
44 )
45 endef
46
47 define Package/Template
48 @if [ \! -f "$(PKG_INSTALL_DIR)/$(1)" ]; then \
49 rm -f $(PKG_BUILD_DIR)/.built; \
50 $(MAKE) $(PKG_BUILD_DIR)/.built; \
51 fi
52 $(INSTALL_DIR) $(2)
53 $(CP) $(PKG_INSTALL_DIR)/$(1) $(2)/
54 endef
55
56 define Package/nfs-utils/install
57 $(call Package/Template,sbin/mount*,$(1)/sbin)
58 endef
59
60 $(eval $(call BuildPackage,nfs-utils))