2008-04-13 08:49:04 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2007-06-13 17:21:03 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nfs-utils
|
2009-04-07 14:13:25 +00:00
|
|
|
PKG_VERSION:=1.1.5
|
|
|
|
PKG_RELEASE:=1
|
2007-06-13 17:21:03 +00:00
|
|
|
|
2009-04-07 14:13:25 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/nfs
|
|
|
|
PKG_MD5SUM:=2848072a5e53840b9bc520fbb6782b57
|
2007-06-13 17:21:03 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS:=libgssapi librpcsecgss libnfsidmap libwrap
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/nfs-utils/Default
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
URL:=http://sourceforge.net/projects/nfs/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nfs-utils
|
|
|
|
$(call Package/nfs-utils/Default)
|
|
|
|
DEPENDS:=+libwrap +libevent +libblkid
|
|
|
|
TITLE:=updated mount utility (includes nfs4)
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nfs-utils/description
|
|
|
|
Updated mount.nfs command - allows mounting nfs4 volumes
|
2007-06-13 17:21:03 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += --disable-gss
|
|
|
|
TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
|
2008-09-03 10:55:13 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2007-06-13 17:21:03 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default, \
|
|
|
|
OPT="$(TARGET_CFLAGS)" \
|
|
|
|
INSTALLSUID="install -m 4755" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install \
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nfs-utils/install
|
2007-10-21 15:46:50 +00:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2009-01-04 00:06:33 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount.nfs $(1)/sbin/
|
2009-01-07 18:29:05 +00:00
|
|
|
(cd $(1)/sbin; ln -sf mount.nfs mount.nfs4; ln -sf mount.nfs umount.nfs; ln -sf mount.nfs umount.nfs4)
|
2007-06-13 17:21:03 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,nfs-utils))
|