wok-6.x view nfs-utils/receipt @ rev 14901

Add python-magic
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 31 11:54:19 2013 +0200 (2013-07-31)
parents 2662eed28d15
children 380ffe05937a
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://nfs.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL"
11 DEPENDS="libtirpc libwrap util-linux-blkid util-linux-uuid rpcbind linux-nfsd"
12 BUILD_DEPENDS="libtirpc-dev util-linux-blkid-dev libcap-dev libwrap-dev \
13 util-linux-uuid-dev util-linux-blkid"
14 CONFIG_FILES="/etc/exports"
15 TAGS="filesystem"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --disable-nfsv4 --disable-gss \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a stuff/* $fs
34 cp -a $_pkg/var $fs
35 cp -a $_pkg/sbin $fs
36 cp -a $_pkg/usr/sbin $fs/usr
37 }
39 post_install()
40 {
41 grep ^nfs $1/etc/services ||
42 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' $1/etc/services
43 [ -s $1/etc/exports ] || cat > $1/etc/exports <<EOT
44 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
45 EOT
46 }