ad57cd5432844f13571d24ed0f8324d97dd5d568
[openwrt/svn-archive/archive.git] / net / nfs-utils / Makefile
1 #
2 # Copyright (C) 2006-2008 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-utils
12 PKG_VERSION:=1.1.2
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:=76ee9274c2b867839427eba91b327f03
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 endef
34
35 define Package/nfs-utils/description
36 Updated mount.nfs command - allows mounting nfs4 volumes
37 endef
38
39 CONFIGURE_ARGS += --disable-gss
40 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
41 TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
42
43 define Build/Compile
44 $(call Build/Compile/Default, \
45 OPT="$(TARGET_CFLAGS)" \
46 INSTALLSUID="install -m 4755" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 all install \
49 )
50 endef
51
52 define Package/nfs-utils/install
53 $(INSTALL_DIR) $(1)/sbin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount* $(1)/sbin/
55 endef
56
57 $(eval $(call BuildPackage,nfs-utils))