wok-current view nfs-utils/receipt @ rev 16274

Up: git (1.9.1)
author Alexander Medvedev <devl547@gmail.com>
date Sat Apr 05 21:34:07 2014 +0000 (2014-04-05)
parents ac2ee8823dfa
children b0f93805d8bb
line source
1 # SliTaz package receipt.
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 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"
14 HOST_ARCH="i486 arm"
16 DEPENDS="libtirpc libwrap libcap util-linux-blkid util-linux-uuid rpcbind"
17 BUILD_DEPENDS="libtirpc-dev libcap-dev libwrap-dev util-linux-blkid-dev \
18 util-linux-uuid-dev util-linux-blkid"
20 # Handle SliTaz arch.
21 case "$SLITAZ_ARCH" in
22 i?86) DEPENDS="$DEPENDS linux-nfsd" ;;
23 esac
25 # Handle cross compilation.
26 case "$ARCH" in
27 arm*)
28 ARCH_ARGS="--with-tirpcinclude=/cross/$ARCH/sysroot/usr/include/tirpc" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 #sh autogen.sh
35 ./configure \
36 --disable-nfsv4 \
37 --disable-gss \
38 $CONFIGURE_ARGS ${ARCH_ARGS} &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a stuff/* $fs
47 cp -a $install/var $fs
48 cp -a $install/sbin $fs
49 cp -a $install/usr/sbin $fs/usr
50 }
52 post_install()
53 {
54 grep ^nfs $1/etc/services ||
55 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' $1/etc/services
56 [ -s $1/etc/exports ] || cat > $1/etc/exports <<EOT
57 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
58 EOT
59 }