wok-current view nfs-utils/receipt @ rev 22469
updated activeresource (3.2.6 -> 5.1.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 27 16:57:16 2019 +0100 (2019-12-27) |
parents | 9e01bc6321ea |
children | 3f496ebee343 |
line source
1 # SliTaz package receipt.
3 PACKAGE="nfs-utils"
4 VERSION="2.3.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 # Rules to configure and make the package.
35 compile_rules()
36 {
37 #sh autogen.sh
38 ./configure \
39 --disable-nfsv4 \
40 --disable-gss \
41 $CONFIGURE_ARGS ${ARCH_ARGS} &&
42 make &&
43 make install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
51 cp -a stuff/* $fs
52 cp -a $install/var $fs
53 cp -a $install/sbin $fs
54 cp -a $install/usr/sbin $fs/usr
55 }
57 post_install()
58 {
59 grep ^nfs "$1/etc/services" ||
60 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services"
61 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT
62 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
63 EOT
64 }