Juergen Daubert
d64d591e8b
release 2 of nfs-utils 1.3.2 comes with a new set of rc scripts which hopefully improves nfs handling on CRUX. The changes in detail: - seperate run-control scripts for idmapd, statd, mountd and nfsd which are called from the other scripts - idmapd and mountd are behaving more sane now, because they creates pid files in /var/run - nfs is now a rc scripts that includes stuff needed by both nfs-server and -client - the only purpose of nfsclient is to mount/unmount nfs filessystems - nfsserver starts all additional daemons that needs to be run to serve nfs filesystems Note: because of the changes above it's necessary to stop all nfs services before the update and start them again afterwards. Adjustment of /etc/rc.conf is necessary too, possible entries are 'nfs nfsclient', 'nfs nfsserver' or 'nfs nfsserver nfsclient' Please report any problems.
41 lines
1.2 KiB
Plaintext
41 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=1.3.2
|
|
release=2
|
|
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
|
|
statd_foreground_mode.patch)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
patch -p1 -i $SRC/statd_foreground_mode.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--sysconfdir=/etc \
|
|
--with-statedir=/var/lib/nfs \
|
|
--disable-gss \
|
|
--with-tcp-wrappers \
|
|
--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 -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
|
|
}
|