wok view nfs-utils/receipt @ rev 25063

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