wok-next view nfs-utils/receipt @ rev 20690
add missing SHA256sums
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Mon May 21 19:36:47 2018 +0000 (2018-05-21) |
parents | c4e53a39395a |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nfs-utils"
4 VERSION="1.3.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Network FileSystem tools"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://nfs.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/nfs/$TARBALL"
14 BUILD_DEPENDS="libtirpc-dev libcap-dev libwrap-dev util-linux-blkid-dev \
15 util-linux-uuid-dev util-linux-blkid"
17 compile_rules() {
18 case "$ARCH" in
19 arm*)
20 ARCH_ARGS="--with-tirpcinclude=/cross/$ARCH/sysroot/usr/include/tirpc
21 --without-tcp-wrappers CC_FOR_BUILD=${HOST_SYSTEM}-gcc" ;;
22 esac
24 #sh autogen.sh
25 ./configure \
26 --disable-nfsv4 \
27 --disable-gss \
28 $CONFIGURE_ARGS $ARCH_ARGS &&
29 make && make install || return 1
31 cp -a $stuff/* $install
32 }
34 genpkg_rules() {
35 copy @std
36 DEPENDS="libtirpc libwrap libcap util-linux-blkid util-linux-uuid rpcbind \
37 linux-nfsd"
38 case "$SLITAZ_ARCH" in
39 arm*) DEPENDS="libtirpc libwrap libcap util-linux-blkid \
40 util-linux-uuid rpcbind";;
41 esac
42 CONFIG_FILES="/etc/exports"
43 TAGS="filesystem"
44 }
46 post_install() {
47 grep ^nfs "$1/etc/services" ||
48 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services"
49 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT
50 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
51 EOT
52 }