summaryrefslogtreecommitdiffstats
path: root/extra/nfs-utils-server/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/nfs-utils-server/Pkgfile')
-rwxr-xr-xextra/nfs-utils-server/Pkgfile14
1 files changed, 8 insertions, 6 deletions
diff --git a/extra/nfs-utils-server/Pkgfile b/extra/nfs-utils-server/Pkgfile
index 1485a7423..012eca1cc 100755
--- a/extra/nfs-utils-server/Pkgfile
+++ b/extra/nfs-utils-server/Pkgfile
@@ -6,8 +6,8 @@
# Run on: nfs-utils
name=nfs-utils-server
-version=1.2.4
-release=1
+version=1.2.0
+release=3
source=(http://ftp.kernel.org/pub/linux/utils/nfs/nfs-utils-$version.tar.gz\
nfs-server )
build() {
@@ -17,23 +17,25 @@ 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 \
- --enable-nfsv4 \
- --disable-gss \
- --with-statedir=/var/lib/nfs
+ --disable-nfsv4 \
+ --disable-gss
unset LDFLAGS
make
make DESTDIR=$PKG install
cd ../$scripts-$scriptsversion
make DESTDIR=$PKG install-nfs-server
-
mkdir -p $PKG/etc/sysconfig
install -m 644 ../nfs-server $PKG/etc/sysconfig/
rm -r $PKG/{sbin,usr/{sbin,share/man/man5}}