wok annotate nfs-utils/receipt @ rev 21873

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