wok-next annotate nfs-utils/receipt @ rev 12634
e2fsprogs, fsarchiver, laptop-mode-tools, nfs-utils: s/util-linux-ng/util-linux/
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 29 13:18:44 2012 +0200 (2012-04-29) |
parents | 9a67b4b86c09 |
children | 8387b6915400 |
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@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 } |