summaryrefslogtreecommitdiffstats
path: root/extra/nfs-utils/Pkgfile
blob: a4b220d1b62f5cb5a7c9df54d0a6322b2ba2b12a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Description: Utilitaires pour le système de fichiers nfs
# URL: http://nfs.sourceforge.net
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: portmap
# Run on: portmap

name=nfs-utils
version=1.2.0
release=3
source=(http://ftp.kernel.org/pub/linux/utils/nfs/$name-$version.tar.gz)
build() {
cd $name-$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 \
       	--disable-nfsv4 \
       	--disable-gss
make
make DESTDIR=$PKG install
rm -r $PKG/{var,usr/share/man/man{7,8}}
mkdir -p $PKG/var/lib/nfs
}