wok view nfs-utils/receipt @ rev 15861

audacious: update TARBALL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 30 09:06:41 2014 +0000 (2014-01-30)
parents 8387b6915400
children ac2ee8823dfa
line source
1 # SliTaz package receipt.
3 PACKAGE="nfs-utils"
4 VERSION="1.2.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Network FileSystem tools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://nfs.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL"
12 CONFIG_FILES="/etc/exports"
13 TAGS="filesystem"
15 DEPENDS="libtirpc libwrap util-linux-blkid util-linux-uuid rpcbind linux-nfsd"
16 BUILD_DEPENDS="libtirpc-dev util-linux-blkid-dev libcap-dev libwrap-dev \
17 util-linux-uuid-dev util-linux-blkid"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure --prefix=/usr --infodir=/usr/share/info \
24 --disable-nfsv4 --disable-gss \
25 --mandir=/usr/share/man \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a stuff/* $fs
36 cp -a $install/var $fs
37 cp -a $install/sbin $fs
38 cp -a $install/usr/sbin $fs/usr
39 }
41 post_install()
42 {
43 grep ^nfs $1/etc/services ||
44 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' $1/etc/services
45 [ -s $1/etc/exports ] || cat > $1/etc/exports <<EOT
46 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
47 EOT
48 }