opt/nfs-utils/Pkgfile
Juergen Daubert 5d0b089857 [notify] nfs-utils: update to 2.2.1
Note:
-----
the sources of libnfsidmap has been merged into the nfs-utils source
tree. Remove opt/libnfsidmap before installation.
2017-11-02 19:55:17 +01:00

43 lines
1.2 KiB
Plaintext

# Description: NFS utilities
# URL: http://nfs.sourceforge.net/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: util-linux libcap rpcbind libevent keyutils sqlite3
name=nfs-utils
version=2.2.1
release=1
source=(https://www.kernel.org/pub/linux/utils/$name/$version/$name-$version.tar.xz
exports idmapd.conf
nfs nfsclient nfsserver rpc.idmapd rpc.statd rpc.mountd rpc.nfsd)
build () {
cd $name-$version
# fix fresh build/install
cp support/nfsidmap/nfsidmap.h support/include
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-statedir=/var/lib/nfs \
--without-tcp-wrappers \
--disable-gss \
--enable-libmount-mount
make
make DESTDIR=$PKG install
install -d $PKG/etc/rc.d
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/
install -m 644 utils/mount/nfsmount.conf $PKG/etc/
install -m 644 nfs.conf $PKG/etc/
install -d $PKG/var/lib/nfs/{rpc_pipefs,v4recovery,nfsdcltrack}
install -d $PKG/etc/exports.d
# force rpc.statd to run as user nobody
chown nobody $PKG/var/lib/nfs
}