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