wok-current view nfs-utils/receipt @ rev 16236
ARM: add libtirpc, libcap, rpcbind (we want pkgs for a NAS)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 02 10:08:04 2014 +0200 (2014-04-02) |
parents | 380ffe05937a |
children | 4cd474907d60 |
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"
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*) ARCH_ARGS="--with-tirpcinclude=/cross/arm/sysroot/usr/include/tirpc" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 sh autogen.sh
34 ./configure --prefix=/usr --infodir=/usr/share/info \
35 --disable-nfsv4 --disable-gss \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS ${ARCH_ARGS} &&
38 make &&
39 make DESTDIR=$DESTDIR 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 }