wok-6.x view nfs-utils/receipt @ rev 24461
updated daloradius (0.9-9 -> 1.1-2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 17:15:55 2022 +0100 (2022-02-16) |
parents | 3f496ebee343 |
children | a3c074272684 |
line source
1 # SliTaz package receipt.
3 PACKAGE="nfs-utils"
4 VERSION="2.4.3"
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="http://nfs.sourceforge.net/"
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"
18 CONFIG_FILES="/etc/exports"
20 HOST_ARCH="i486 arm"
22 # Handle SliTaz arch.
23 case "$SLITAZ_ARCH" in
24 i?86) DEPENDS="$DEPENDS linux-nfsd" ;;
25 esac
27 # Handle cross compilation.
28 case "$ARCH" in
29 arm*)
30 ARCH_ARGS="--with-tirpcinclude=/cross/$ARCH/sysroot/usr/include/tirpc
31 --without-tcp-wrappers CC_FOR_BUILD=${HOST_SYSTEM}-gcc" ;;
32 esac
34 # What is the latest version available today?
35 current_version()
36 {
37 wget -O - https://sourceforge.net/projects/nfs/files/nfs-utils/ 2>/dev/null | \
38 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
39 sed '/scope="row/!d;s|.*/nfs-utils/||;s|/.*||;q'
40 }
42 # Rules to configure and make the package.
43 compile_rules()
44 {
45 #sh autogen.sh
46 ./configure \
47 --disable-nfsv4 \
48 --disable-gss \
49 $CONFIGURE_ARGS \
50 ${ARCH_ARGS} &&
51 make &&
52 make install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr
60 cp -a stuff/* $fs
61 cp -a $install/var $fs
62 cp -a $install/sbin $fs
63 cp -a $install/usr/sbin $fs/usr
64 }
66 post_install()
67 {
68 grep ^nfs "$1/etc/services" ||
69 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services"
70 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT
71 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
72 EOT
73 }