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
|
2017-10-31 17:32:48 +01:59
|
|
|
# Depends on: util-linux libcap rpcbind libnfsidmap libevent keyutils sqlite3
|
2010-03-02 11:27:07 +01:00
|
|
|
|
|
|
|
name=nfs-utils
|
2017-01-24 12:48:28 +01:00
|
|
|
version=2.1.1
|
2015-10-30 10:53:31 +01:00
|
|
|
release=1
|
2015-03-05 14:54:32 +01:00
|
|
|
source=(http://downloads.sourceforge.net/project/nfs/$name/$version/$name-$version.tar.bz2
|
|
|
|
exports idmapd.conf
|
2016-08-17 15:22:07 +02:00
|
|
|
nfs nfsclient nfsserver rpc.idmapd rpc.statd rpc.mountd rpc.nfsd)
|
2010-03-02 11:27:07 +01:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
2010-06-15 20:05:24 +02:00
|
|
|
--sysconfdir=/etc \
|
2010-03-02 11:27:07 +01:00
|
|
|
--with-statedir=/var/lib/nfs \
|
2015-06-27 17:39:06 +02:00
|
|
|
--without-tcp-wrappers \
|
2010-06-15 20:05:24 +02:00
|
|
|
--disable-gss \
|
2013-01-22 18:15:17 +01:00
|
|
|
--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/
|
2017-01-24 12:48:28 +01:00
|
|
|
install -m 644 nfs.conf $PKG/etc/
|
2015-03-18 17:03:13 +01:00
|
|
|
|
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
|
|
|
}
|