40 lines
1.2 KiB
Plaintext
40 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 eudev libcap rpcbind libnfsidmap libevent keyutils sqlite3
|
|
|
|
name=nfs-utils
|
|
version=2.1.1
|
|
release=1
|
|
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)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
./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
|
|
}
|