# Depends on: libtirpc rpcbind

description="Userspace server and client tools necessary to use the kernel's NFS abilities."
url="http://nfs.sourceforge.net"
packager="tnut <tnut@nutyx.org>"

name=nfs-utils
version=2.2.1

nutyx_version=10.1
source=(http://downloads.tuxfamily.org/nutyx/files/nutyx-${nutyx_version}.tar.xz
	http://downloads.sourceforge.net/nfs/$name-$version.tar.bz2)

run=(rpcbind)

build() {
# build package

cd $name-$version
sed -i '/fcntl.h/a#include <stdint.h>' support/nsm/rpc.c
./configure --prefix=/usr     \
--sysconfdir=/etc \
--sbindir=/sbin   \
--disable-nfsv4   \
--disable-gss \
--without-tcp-wrappers		

make
mkdir $PKG/sbin
make DESTDIR=$PKG install
chmod u+w,go+r $PKG/sbin/mount.nfs
chown nobody.nogroup $PKG/var/lib/nfs

# Services
cd ../nutyx-${nutyx_version}
make DESTDIR=$PKG install-nfs-server
}
