2010-06-15 20:05:24 +02:00
|
|
|
# Description: NFS utilities
|
2021-02-21 10:51:54 +01:00
|
|
|
# URL: http://nfs.sourceforge.net/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: libdevmapper util-linux libcap rpcsvc-proto rpcbind libevent keyutils sqlite3
|
2010-03-02 11:27:07 +01:00
|
|
|
|
|
|
|
name=nfs-utils
|
2022-01-23 18:21:27 +01:00
|
|
|
version=2.6.1
|
|
|
|
release=1
|
2017-11-02 19:55:17 +01:00
|
|
|
source=(https://www.kernel.org/pub/linux/utils/$name/$version/$name-$version.tar.xz
|
2021-02-21 10:51:54 +01:00
|
|
|
exports idmapd.conf
|
|
|
|
nfs nfsclient nfsserver rpc.idmapd rpc.statd rpc.mountd rpc.nfsd nfsdcld)
|
2010-03-02 11:27:07 +01:00
|
|
|
|
2021-02-21 10:51:54 +01:00
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2010-03-02 11:27:07 +01:00
|
|
|
|
2021-02-21 10:51:54 +01:00
|
|
|
CONFIG_SHELL=/bin/bash \
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-statedir=/var/lib/nfs \
|
|
|
|
--without-tcp-wrappers \
|
|
|
|
--disable-gss \
|
|
|
|
--enable-libmount-mount
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2010-03-02 11:27:07 +01:00
|
|
|
|
2021-02-21 10:51:54 +01:00
|
|
|
install -d $PKG/etc/rc.d
|
2010-06-15 20:05:24 +02:00
|
|
|
|
2021-02-21 10:51:54 +01:00
|
|
|
install -m 755 $SRC/nfs{,client,server,dcld} $PKG/etc/rc.d/
|
|
|
|
install -m 755 $SRC/rpc.* $PKG/etc/rc.d/
|
|
|
|
install -m 644 $SRC/{exports,idmapd.conf} $PKG/etc/
|
2015-03-05 14:54:32 +01:00
|
|
|
|
2021-02-21 10:51:54 +01:00
|
|
|
install -m 644 utils/mount/nfsmount.conf $PKG/etc/
|
|
|
|
install -m 644 nfs.conf $PKG/etc/
|
2015-03-18 17:03:13 +01:00
|
|
|
|
2021-02-21 10:51:54 +01:00
|
|
|
install -d $PKG/var/lib/nfs/{rpc_pipefs,v4recovery,nfsdcltrack,nfsdcld}
|
|
|
|
install -d $PKG/etc/exports.d
|
2015-03-05 14:54:32 +01:00
|
|
|
|
2021-02-21 10:51:54 +01:00
|
|
|
# force rpc.statd to run as user nobody
|
|
|
|
chown nobody $PKG/var/lib/nfs
|
2010-03-02 11:27:07 +01:00
|
|
|
}
|