summaryrefslogtreecommitdiffstats
path: root/extra/nfs-utils-server
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nfs-utils-server')
-rwxr-xr-xextra/nfs-utils-server/Pkgfile13
1 files changed, 11 insertions, 2 deletions
diff --git a/extra/nfs-utils-server/Pkgfile b/extra/nfs-utils-server/Pkgfile
index 77374a79e..3d9d3b334 100755
--- a/extra/nfs-utils-server/Pkgfile
+++ b/extra/nfs-utils-server/Pkgfile
@@ -2,11 +2,11 @@
# URL: http://nfs.sourceforge.net
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: nfs-utils
+# Depends on: nfs-utils, libevent
name=nfs-utils-server
version=1.2.0
-release=1
+release=2
source=(http://ftp.kernel.org/pub/linux/utils/nfs/nfs-utils-$version.tar.gz\
nfs-server nfs-server.sh)
build() {
@@ -16,13 +16,22 @@ http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.
tar xvf $scripts-$scriptsversion.tar.bz2
# build package
cd nfs-utils-$version
+
+sed -i "1i\#include <sys/stat.h>\n" utils/exportfs/exportfs.c
+sed -i "1i\#include <sys/stat.h>\n" utils/mount/mount.c
+sed -i "1i\#include <sys/stat.h>\n" utils/mount/network.c
+
sed -i 's/getkversion//' tools/Makefile.in
+
./configure --prefix=/usr\
--sysconfdir=/etc\
--mandir=/usr/share/man\
--infodir=/usr/share/info\
+ --enable-nfsv3 \
--disable-nfsv4 \
--disable-gss
+
+unset LDFLAGS
make
make DESTDIR=$PKG install
cd ../$scripts-$scriptsversion