wok view nfs-utils/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents afae00265386
children 2b38bdfd12b2
line source
1 # SliTaz package receipt.
3 PACKAGE="nfs-utils"
4 VERSION="2.6.1"
5 CATEGORY="system-tools"
6 TAGS="filesystem"
7 SHORT_DESC="Network FileSystem tools."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://sourceforge.net/projects/nfs/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL"
15 DEPENDS="libcap libtirpc libwrap rpcbind util-linux-blkid util-linux-uuid"
16 BUILD_DEPENDS="libcap-dev libtirpc-dev libwrap-dev util-linux-blkid
17 util-linux-blkid-dev util-linux-uuid-dev"
19 CONFIG_FILES="/etc/exports"
21 HOST_ARCH="i486 arm"
23 # Handle SliTaz arch.
24 case "$SLITAZ_ARCH" in
25 i?86) DEPENDS="$DEPENDS linux-nfsd" ;;
26 esac
28 # Handle cross compilation.
29 case "$ARCH" in
30 arm*)
31 ARCH_ARGS="--with-tirpcinclude=/cross/$ARCH/sysroot/usr/include/tirpc
32 --without-tcp-wrappers CC_FOR_BUILD=${HOST_SYSTEM}-gcc" ;;
33 esac
35 # What is the latest version available today?
36 current_version()
37 {
38 wget -O - https://sourceforge.net/projects/nfs/files/nfs-utils/ 2>/dev/null | \
39 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
40 sed '/scope="row/!d;s|.*/nfs-utils/||;s|/.*||;q'
41 }
43 # Rules to configure and make the package.
44 compile_rules()
45 {
46 #sh autogen.sh
47 ./configure \
48 --disable-nfsv4 \
49 --disable-gss \
50 $CONFIGURE_ARGS \
51 $ARCH_ARGS &&
52 make &&
53 make install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr
61 cp -a stuff/* $fs
62 cp -a $install/var $fs
63 cp -a $install/sbin $fs
64 cp -a $install/usr/sbin $fs/usr
65 }
67 post_install()
68 {
69 grep ^nfs "$1/etc/services" ||
70 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services"
71 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT
72 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
73 EOT
74 }