2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://downloads.sourceforge.net/nfs/
17 PKG_MD5SUM:=76ee9274c2b867839427eba91b327f03
19 PKG_BUILD_DEPENDS:=libgssapi librpcsecgss libnfsidmap libwrap
21 include $(INCLUDE_DIR)/package.mk
23 define Package/nfs-utils/Default
26 URL:=http://sourceforge.net/projects/nfs/
29 define Package/nfs-utils
30 $(call Package/nfs-utils/Default)
31 DEPENDS:=+libwrap +libevent +libblkid
32 TITLE:=updated mount utility (includes nfs4)
35 define Package/nfs-utils/description
36 Updated mount.nfs command - allows mounting nfs4 volumes
39 CONFIGURE_ARGS += --disable-gss
40 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
41 TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
44 $(call Build/Compile/Default, \
45 OPT="$(TARGET_CFLAGS)" \
46 INSTALLSUID="install -m 4755" \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
52 define Package/nfs-utils/install
53 $(INSTALL_DIR) $(1)/sbin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount.nfs $(1)/sbin/
55 (cd $(1)/sbin; ln -s mount.nfs mount.nfs4; ln mount.nfs umount.nfs; ln -s mount.nfs umount.nfs4)
58 $(eval $(call BuildPackage,nfs-utils))