wok-4.x view nfs-utils/receipt @ rev 11377

nfs-utils: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 09 12:31:03 2011 +0100 (2011-12-09)
parents 7d89c62e5e81
children 7f6ba0da8010
line source
1 # SliTaz package receipt.
3 PACKAGE="nfs-utils"
4 VERSION="1.2.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Network FileSystem tools."
7 MAINTAINER="pascal;bellard@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://nfs.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL"
11 DEPENDS="libtirpc libwrap util-linux-ng-blkid util-linux-ng-uuid rpcbind linux-nfsd"
12 BUILD_DEPENDS="libtirpc-dev util-linux-ng-blkid-dev libcap-dev libwrap-dev \
13 util-linux-ng-uuid-dev"
14 CONFIG_FILES="/etc/exports"
15 TAGS="filesystem"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --disable-nfsv4 --disable-gss \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a stuff/* $fs
34 cp -a $_pkg/var $fs
35 cp -a $_pkg/sbin $fs
36 cp -a $_pkg/usr/sbin $fs/usr
37 }
39 post_install()
40 {
41 grep ^nfs $1/etc/services ||
42 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' $1/etc/services
43 [ -s $1/etc/exports ] || cat > $1/etc/exports <<EOT
44 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
45 EOT
46 }