summaryrefslogtreecommitdiffstats
path: root/extra/nfs-utils-server/Pkgfile
blob: 28cf7f5c992388129e6932a4a3b00d0355a7faed (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
29
30
31
32
33
34
# 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: nfs-utils

name=nfs-utils-server
version=1.2.0
release=1
source=(http://ftp.kernel.org/pub/linux/utils/nfs/nfs-utils-$version.tar.gz\
        nfs-server nfs-server.sh)
build() {
source  /etc/blfs-bootscripts
wget \
http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
tar xvf $scripts-$scriptsversion.tar.bz2 
	# build package
cd nfs-utils-$version
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
cd ../$scripts-$scriptsversion
make DESTDIR=$PKG install-nfs-server
install -m 754 ../nfs-server.sh $PKG/etc/rc.d/init.d/nfs-server
mkdir -p $PKG/etc/sysconfig
install -m 644 ../nfs-server $PKG/etc/sysconfig/
rm -r $PKG/{sbin,usr/share/man/man5}
}