wok-current view nfs-utils/receipt @ rev 12481

Rename linux-util-ng to util-linux in all packages
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 23 16:30:27 2012 +0200 (2012-04-23)
parents a12535b48058
children 9a67b4b86c09
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-blkid util-linux-ng-uuid rpcbind linux-nfsd"
12 BUILD_DEPENDS="libtirpc-dev util-linux-blkid-dev libcap-dev libwrap-dev \
13 util-linux-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 }