wok-current annotate nfs-utils/receipt @ rev 23244
updated ninja (1.9.0 -> 1.10.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 25 10:19:28 2020 +0100 (2020-03-25) |
parents | ce3da0799929 |
children | afae00265386 |
rev | line source |
---|---|
pascal@6250 | 1 # SliTaz package receipt. |
pascal@6250 | 2 |
pascal@6250 | 3 PACKAGE="nfs-utils" |
Hans-G?nter@23241 | 4 VERSION="2.4.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 \ |
Hans-G?nter@23241 | 41 $CONFIGURE_ARGS \ |
Hans-G?nter@23241 | 42 ${ARCH_ARGS} && |
Hans-G?nter@21541 | 43 make && |
Hans-G?nter@21541 | 44 make install |
pascal@6250 | 45 } |
pascal@6250 | 46 |
pascal@6250 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@6250 | 48 genpkg_rules() |
pascal@6250 | 49 { |
pascal@6250 | 50 mkdir -p $fs/usr |
Hans-G?nter@21541 | 51 |
Hans-G?nter@21541 | 52 cp -a stuff/* $fs |
Hans-G?nter@21541 | 53 cp -a $install/var $fs |
Hans-G?nter@21541 | 54 cp -a $install/sbin $fs |
Hans-G?nter@21541 | 55 cp -a $install/usr/sbin $fs/usr |
pascal@6250 | 56 } |
pascal@7285 | 57 |
pascal@7285 | 58 post_install() |
pascal@7285 | 59 { |
pascal@18730 | 60 grep ^nfs "$1/etc/services" || |
pascal@18730 | 61 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services" |
pascal@18730 | 62 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT |
pascal@7285 | 63 #/home 192.168.0.0/255.255.255.0(rw,subtree_check) |
pascal@7285 | 64 EOT |
pascal@7285 | 65 } |