summaryrefslogtreecommitdiffstats
path: root/nfs-utils-server/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot org>2012-04-03 18:38:48 +0200
committertnut <tnut at nutyx dot org>2012-04-03 18:38:48 +0200
commitcf1e6fc2126a7de094a8b28f0d3284c12e8cf0f0 (patch)
tree4e1d748103258fd18e129ddc02caf82b8d268697 /nfs-utils-server/Pkgfile
parente932c18322cd2c1178fc40921970ea4a67421491 (diff)
downloadnutyx-pakxe-cf1e6fc2126a7de094a8b28f0d3284c12e8cf0f0.tar.gz
nutyx-pakxe-cf1e6fc2126a7de094a8b28f0d3284c12e8cf0f0.tar.bz2
nutyx-pakxe-cf1e6fc2126a7de094a8b28f0d3284c12e8cf0f0.tar.xz
nutyx-pakxe-cf1e6fc2126a7de094a8b28f0d3284c12e8cf0f0.zip
nfs dans base
Diffstat (limited to 'nfs-utils-server/Pkgfile')
-rwxr-xr-xnfs-utils-server/Pkgfile43
1 files changed, 43 insertions, 0 deletions
diff --git a/nfs-utils-server/Pkgfile b/nfs-utils-server/Pkgfile
new file mode 100755
index 000000000..d50907b0f
--- /dev/null
+++ b/nfs-utils-server/Pkgfile
@@ -0,0 +1,43 @@
+# Description: Service pour le partage de fichiers nfs
+# URL: http://nfs.sourceforge.net
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: nfs-utils, libevent
+# Run on: nfs-utils
+
+name=nfs-utils-server
+version=1.2.0
+release=4
+source=(http://ftp.kernel.org/pub/linux/utils/nfs/nfs-utils-$version.tar.gz\
+ nfs-server )
+build() {
+source /etc/blfs-bootscripts
+#wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
+wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$scriptsversion.tar.bz2
+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
+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}}
+}
+