wok-next view nfs-utils/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d9fd3e64ab6c
children
line source
1 # SliTaz package receipt v2.
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/$TARBALL"
15 BUILD_DEPENDS="libcap-dev libtirpc-dev libwrap-dev util-linux-blkid
16 util-linux-blkid-dev util-linux-uuid-dev"
18 compile_rules()
19 {
20 #sh autogen.sh
21 ./configure \
22 --disable-nfsv4 \
23 --disable-gss \
24 --with-rpcgen=internal \
25 $CONFIGURE_ARGS &&
26 fix libtool &&
27 make &&
28 make install || return 1
30 cp -a $stuff/* $install
31 }
33 genpkg_rules()
34 {
35 copy @std
37 DEPENDS="libcap libtirpc libwrap linux-nfsd rpcbind util-linux-blkid
38 util-linux-uuid"
39 CONFIG_FILES="/etc/exports"
40 }
42 post_install()
43 {
44 grep ^nfs "$1/etc/services" ||
45 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' \
46 "$1/etc/services"
47 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT
48 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
49 EOT
50 }