wok annotate nfs-utils/receipt @ rev 25656
Up fwknop (2.6.11)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 09 11:08:06 2024 +0000 (7 months ago) |
parents | 2b38bdfd12b2 |
children |
rev | line source |
---|---|
pascal@6250 | 1 # SliTaz package receipt. |
pascal@6250 | 2 |
pascal@6250 | 3 PACKAGE="nfs-utils" |
Hans-G?nter@24989 | 4 VERSION="2.6.1" |
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" |
pascal@25063 | 10 #WEB_SITE="https://sourceforge.net/projects/nfs/" |
pascal@25063 | 11 WEB_SITE="http://linux-nfs.org/wiki/index.php/Main_Page" |
Hans-G?nter@21541 | 12 |
pascal@6250 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@6250 | 14 WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL" |
Hans-G?nter@21541 | 15 |
Hans-G?nter@21541 | 16 DEPENDS="libcap libtirpc libwrap rpcbind util-linux-blkid util-linux-uuid" |
Hans-G?nter@24989 | 17 BUILD_DEPENDS="libcap-dev libtirpc-dev libwrap-dev util-linux-blkid |
Hans-G?nter@21541 | 18 util-linux-blkid-dev util-linux-uuid-dev" |
Hans-G?nter@24989 | 19 |
pascal@15000 | 20 CONFIG_FILES="/etc/exports" |
Hans-G?nter@21541 | 21 |
pankso@16236 | 22 HOST_ARCH="i486 arm" |
pascal@15000 | 23 |
pankso@16236 | 24 # Handle SliTaz arch. |
pankso@16236 | 25 case "$SLITAZ_ARCH" in |
pankso@16236 | 26 i?86) DEPENDS="$DEPENDS linux-nfsd" ;; |
pankso@16236 | 27 esac |
pankso@16236 | 28 |
pankso@16236 | 29 # Handle cross compilation. |
pankso@16236 | 30 case "$ARCH" in |
pankso@16237 | 31 arm*) |
pankso@16284 | 32 ARCH_ARGS="--with-tirpcinclude=/cross/$ARCH/sysroot/usr/include/tirpc |
pankso@16284 | 33 --without-tcp-wrappers CC_FOR_BUILD=${HOST_SYSTEM}-gcc" ;; |
pankso@16236 | 34 esac |
pankso@16236 | 35 |
pascal@24402 | 36 # What is the latest version available today? |
pascal@24402 | 37 current_version() |
pascal@24402 | 38 { |
pascal@24402 | 39 wget -O - https://sourceforge.net/projects/nfs/files/nfs-utils/ 2>/dev/null | \ |
pascal@25606 | 40 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24402 | 41 sed '/scope="row/!d;s|.*/nfs-utils/||;s|/.*||;q' |
pascal@24402 | 42 } |
pascal@24402 | 43 |
pascal@6250 | 44 # Rules to configure and make the package. |
pascal@6250 | 45 compile_rules() |
pascal@6250 | 46 { |
pankso@16237 | 47 #sh autogen.sh |
Hans-G?nter@21541 | 48 ./configure \ |
Hans-G?nter@21541 | 49 --disable-nfsv4 \ |
Hans-G?nter@21541 | 50 --disable-gss \ |
Hans-G?nter@23241 | 51 $CONFIGURE_ARGS \ |
Hans-G?nter@24989 | 52 $ARCH_ARGS && |
Hans-G?nter@21541 | 53 make && |
Hans-G?nter@21541 | 54 make install |
pascal@6250 | 55 } |
pascal@6250 | 56 |
pascal@6250 | 57 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@6250 | 58 genpkg_rules() |
pascal@6250 | 59 { |
pascal@6250 | 60 mkdir -p $fs/usr |
Hans-G?nter@21541 | 61 |
Hans-G?nter@21541 | 62 cp -a stuff/* $fs |
Hans-G?nter@21541 | 63 cp -a $install/var $fs |
Hans-G?nter@21541 | 64 cp -a $install/sbin $fs |
Hans-G?nter@21541 | 65 cp -a $install/usr/sbin $fs/usr |
pascal@6250 | 66 } |
pascal@7285 | 67 |
pascal@7285 | 68 post_install() |
pascal@7285 | 69 { |
pascal@18730 | 70 grep ^nfs "$1/etc/services" || |
pascal@18730 | 71 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services" |
pascal@18730 | 72 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT |
pascal@7285 | 73 #/home 192.168.0.0/255.255.255.0(rw,subtree_check) |
pascal@7285 | 74 EOT |
pascal@7285 | 75 } |