wok-current view nfs-utils/receipt @ rev 24107
updated adminer (4.7.5 -> 4.8.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Sep 25 17:50:51 2021 +0100 (2021-09-25) |
parents | ce3da0799929 |
children | afae00265386 |
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 # 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 \
42 ${ARCH_ARGS} &&
43 make &&
44 make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
52 cp -a stuff/* $fs
53 cp -a $install/var $fs
54 cp -a $install/sbin $fs
55 cp -a $install/usr/sbin $fs/usr
56 }
58 post_install()
59 {
60 grep ^nfs "$1/etc/services" ||
61 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services"
62 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT
63 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
64 EOT
65 }