wok-6.x annotate nfs-utils/receipt @ rev 18484

Up tazpkg-test(846)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 09 13:15:59 2015 +0300 (2015-10-09)
parents 4cd474907d60
children 9e01bc6321ea
rev   line source
pascal@6250 1 # SliTaz package receipt.
pascal@6250 2
pascal@6250 3 PACKAGE="nfs-utils"
pankso@16237 4 VERSION="1.3.0"
pascal@6250 5 CATEGORY="system-tools"
pascal@6250 6 SHORT_DESC="Network FileSystem tools."
pascal@13025 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@6250 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@6250 10 WEB_SITE="http://nfs.sourceforge.net/"
pascal@6250 11 WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL"
pascal@15000 12 CONFIG_FILES="/etc/exports"
pascal@15000 13 TAGS="filesystem"
pankso@16236 14 HOST_ARCH="i486 arm"
pascal@15000 15
pankso@16236 16 DEPENDS="libtirpc libwrap libcap util-linux-blkid util-linux-uuid rpcbind"
pankso@16236 17 BUILD_DEPENDS="libtirpc-dev libcap-dev libwrap-dev util-linux-blkid-dev \
pascal@12580 18 util-linux-uuid-dev util-linux-blkid"
pascal@6250 19
pankso@16236 20 # Handle SliTaz arch.
pankso@16236 21 case "$SLITAZ_ARCH" in
pankso@16236 22 i?86) DEPENDS="$DEPENDS linux-nfsd" ;;
pankso@16236 23 esac
pankso@16236 24
pankso@16236 25 # Handle cross compilation.
pankso@16236 26 case "$ARCH" in
pankso@16237 27 arm*)
pankso@16284 28 ARCH_ARGS="--with-tirpcinclude=/cross/$ARCH/sysroot/usr/include/tirpc
pankso@16284 29 --without-tcp-wrappers CC_FOR_BUILD=${HOST_SYSTEM}-gcc" ;;
pankso@16236 30 esac
pankso@16236 31
pascal@6250 32 # Rules to configure and make the package.
pascal@6250 33 compile_rules()
pascal@6250 34 {
pankso@16237 35 #sh autogen.sh
pankso@16237 36 ./configure \
pankso@16237 37 --disable-nfsv4 \
pankso@16237 38 --disable-gss \
pankso@16237 39 $CONFIGURE_ARGS ${ARCH_ARGS} &&
pankso@16237 40 make && make install
pascal@6250 41 }
pascal@6250 42
pascal@6250 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@6250 44 genpkg_rules()
pascal@6250 45 {
pascal@6250 46 mkdir -p $fs/usr
pascal@7285 47 cp -a stuff/* $fs
pascal@15000 48 cp -a $install/var $fs
pascal@15000 49 cp -a $install/sbin $fs
pascal@15000 50 cp -a $install/usr/sbin $fs/usr
pascal@6250 51 }
pascal@7285 52
pascal@7285 53 post_install()
pascal@7285 54 {
pascal@7285 55 grep ^nfs $1/etc/services ||
pascal@7285 56 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' $1/etc/services
pascal@7285 57 [ -s $1/etc/exports ] || cat > $1/etc/exports <<EOT
pascal@7285 58 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
pascal@7285 59 EOT
pascal@7285 60 }