wok-next annotate nfs-utils/receipt @ rev 21151

Add/update some Lua packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 31 00:34:43 2019 +0200 (2019-01-31)
parents d43bf7aae921
children 85b44ac91d12
rev   line source
al@20513 1 # SliTaz package receipt v2.
pascal@6250 2
pascal@6250 3 PACKAGE="nfs-utils"
pankso@16237 4 VERSION="1.3.0"
pascal@6250 5 CATEGORY="system-tools"
al@20513 6 SHORT_DESC="Network FileSystem tools"
pascal@13025 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20513 9 WEB_SITE="http://nfs.sourceforge.net/"
al@20513 10
pascal@6250 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@20513 12 WGET_URL="$SF_MIRROR/nfs/$TARBALL"
pascal@15000 13
pankso@16236 14 BUILD_DEPENDS="libtirpc-dev libcap-dev libwrap-dev util-linux-blkid-dev \
pascal@12580 15 util-linux-uuid-dev util-linux-blkid"
pascal@6250 16
al@20513 17 compile_rules() {
pankso@16237 18 #sh autogen.sh
pankso@16237 19 ./configure \
pankso@16237 20 --disable-nfsv4 \
pankso@16237 21 --disable-gss \
al@21020 22 $CONFIGURE_ARGS &&
al@21020 23 make &&
al@21020 24 make install || return 1
al@20513 25
al@20513 26 cp -a $stuff/* $install
pascal@6250 27 }
pascal@6250 28
al@20513 29 genpkg_rules() {
al@20513 30 copy @std
al@20513 31 DEPENDS="libtirpc libwrap libcap util-linux-blkid util-linux-uuid rpcbind \
al@20513 32 linux-nfsd"
al@20513 33 CONFIG_FILES="/etc/exports"
al@20513 34 TAGS="filesystem"
pascal@6250 35 }
pascal@7285 36
al@20513 37 post_install() {
pascal@18730 38 grep ^nfs "$1/etc/services" ||
pascal@18730 39 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services"
al@20513 40 [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT
pascal@7285 41 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
pascal@7285 42 EOT
pascal@7285 43 }