2010-06-15 20:05:24 +02:00
|
|
|
# Description: NFS utilities
|
2010-03-02 11:27:07 +01:00
|
|
|
# URL: http://nfs.sourceforge.net/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2014-02-25 11:34:09 +01:00
|
|
|
# Depends on: util-linux eudev libcap rpcbind libnfsidmap libevent keyutils sqlite3
|
2010-03-02 11:27:07 +01:00
|
|
|
|
|
|
|
name=nfs-utils
|
2015-02-02 10:49:47 +01:00
|
|
|
version=1.3.2
|
2015-06-30 11:51:53 +02:00
|
|
|
release=5
|
2015-03-05 14:54:32 +01:00
|
|
|
source=(http://downloads.sourceforge.net/project/nfs/$name/$version/$name-$version.tar.bz2
|
|
|
|
exports idmapd.conf
|
|
|
|
nfs nfsclient nfsserver rpc.idmapd rpc.statd rpc.mountd rpc.nfsd
|
2015-02-02 10:49:47 +01:00
|
|
|
statd_foreground_mode.patch)
|
2010-03-02 11:27:07 +01:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
|
|
|
|
2015-02-02 10:49:47 +01:00
|
|
|
patch -p1 -i $SRC/statd_foreground_mode.patch
|
|
|
|
|
2010-03-02 11:27:07 +01:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--mandir=/usr/man \
|
2010-06-15 20:05:24 +02:00
|
|
|
--sysconfdir=/etc \
|
2010-03-02 11:27:07 +01:00
|
|
|
--with-statedir=/var/lib/nfs \
|
2010-06-15 20:05:24 +02:00
|
|
|
--disable-gss \
|
2013-01-22 18:15:17 +01:00
|
|
|
--with-tcp-wrappers \
|
|
|
|
--enable-libmount-mount
|
2010-03-02 11:27:07 +01:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2015-03-05 14:54:32 +01:00
|
|
|
install -d $PKG/etc/rc.d
|
2010-06-15 20:05:24 +02:00
|
|
|
|
2015-03-05 14:54:32 +01:00
|
|
|
install -m 755 $SRC/nfs{,client,server} $PKG/etc/rc.d/
|
|
|
|
install -m 755 $SRC/rpc.* $PKG/etc/rc.d/
|
|
|
|
install -m 644 $SRC/{exports,idmapd.conf} $PKG/etc/
|
|
|
|
|
2015-03-18 17:03:13 +01:00
|
|
|
install -m 644 utils/mount/nfsmount.conf $PKG/etc/
|
|
|
|
sed -i '/Defaultvers=/s/^# *//' $PKG/etc/nfsmount.conf
|
|
|
|
|
2015-03-05 14:54:32 +01:00
|
|
|
install -d $PKG/var/lib/nfs/{rpc_pipefs,v4recovery,nfsdcltrack}
|
2011-07-07 16:57:05 +02:00
|
|
|
install -d $PKG/etc/exports.d
|
2015-03-05 14:54:32 +01:00
|
|
|
|
2012-01-06 15:54:21 +01:00
|
|
|
# force rpc.statd to run as user nobody
|
|
|
|
chown nobody $PKG/var/lib/nfs
|
2010-03-02 11:27:07 +01:00
|
|
|
}
|