wok-current annotate nfs-utils/receipt @ rev 13581
Autofs: copy content to proper paths
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Tue Nov 06 01:33:15 2012 -0200 (2012-11-06) |
parents | 2662eed28d15 |
children | 380ffe05937a |
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@13025 | 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@12634 | 11 DEPENDS="libtirpc libwrap util-linux-blkid util-linux-uuid rpcbind linux-nfsd" |
pankso@12481 | 12 BUILD_DEPENDS="libtirpc-dev util-linux-blkid-dev libcap-dev libwrap-dev \ |
pascal@12580 | 13 util-linux-uuid-dev util-linux-blkid" |
pascal@7285 | 14 CONFIG_FILES="/etc/exports" |
pascal@6250 | 15 TAGS="filesystem" |
pascal@6250 | 16 |
pascal@6250 | 17 # Rules to configure and make the package. |
pascal@6250 | 18 compile_rules() |
pascal@6250 | 19 { |
pascal@6250 | 20 cd $src |
pascal@6250 | 21 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@6250 | 22 --disable-nfsv4 --disable-gss \ |
pascal@6250 | 23 --mandir=/usr/share/man \ |
pascal@6250 | 24 $CONFIGURE_ARGS && |
pascal@6250 | 25 make && |
pascal@6250 | 26 make DESTDIR=$PWD/_pkg install |
pascal@6250 | 27 } |
pascal@6250 | 28 |
pascal@6250 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@6250 | 30 genpkg_rules() |
pascal@6250 | 31 { |
pascal@6250 | 32 mkdir -p $fs/usr |
pascal@7285 | 33 cp -a stuff/* $fs |
pascal@6250 | 34 cp -a $_pkg/var $fs |
pascal@6250 | 35 cp -a $_pkg/sbin $fs |
pascal@6250 | 36 cp -a $_pkg/usr/sbin $fs/usr |
pascal@6250 | 37 } |
pascal@7285 | 38 |
pascal@7285 | 39 post_install() |
pascal@7285 | 40 { |
pascal@7285 | 41 grep ^nfs $1/etc/services || |
pascal@7285 | 42 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' $1/etc/services |
pascal@7285 | 43 [ -s $1/etc/exports ] || cat > $1/etc/exports <<EOT |
pascal@7285 | 44 #/home 192.168.0.0/255.255.255.0(rw,subtree_check) |
pascal@7285 | 45 EOT |
pascal@7285 | 46 } |