38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# Description: NFS utilities
|
|
# URL: http://nfs.sourceforge.net/
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: util-linux udev libcap rpcbind libnfsidmap libevent keyutils sqlite3
|
|
|
|
name=nfs-utils
|
|
version=1.2.7
|
|
release=2
|
|
source=(http://downloads.sourceforge.net/project/nfs/$name/$version/$name-$version.tar.bz2 \
|
|
exports idmapd.conf nfs nfsserver)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--sysconfdir=/etc \
|
|
--with-statedir=/var/lib/nfs \
|
|
--disable-gss \
|
|
--with-tcp-wrappers \
|
|
--enable-libmount-mount
|
|
make
|
|
install -d $PKG/sbin
|
|
make DESTDIR=$PKG install
|
|
|
|
install -D -m 755 $SRC/nfs $PKG/etc/rc.d/nfs
|
|
install -D -m 755 $SRC/nfsserver $PKG/etc/rc.d/nfsserver
|
|
install -D -m 644 $SRC/exports $PKG/etc/exports
|
|
install -D -m 644 $SRC/idmapd.conf $PKG/etc/idmapd.conf
|
|
|
|
install -d $PKG/var/lib/nfs/{rpc_pipefs,v4recovery}
|
|
install -d $PKG/etc/exports.d
|
|
|
|
# force rpc.statd to run as user nobody
|
|
chown nobody $PKG/var/lib/nfs
|
|
}
|