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

open-vm-tools: more attempts to get linux64 build to work on cooker
author Nathan Neulinger <nneul@neulinger.org>
date Sat Sep 19 15:44:21 2015 +0000 (2015-09-19)
parents 4cd474907d60
children 9e01bc6321ea
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 --without-tcp-wrappers CC_FOR_BUILD=${HOST_SYSTEM}-gcc" ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 #sh autogen.sh
36 ./configure \
37 --disable-nfsv4 \
38 --disable-gss \
39 $CONFIGURE_ARGS ${ARCH_ARGS} &&
40 make && make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 cp -a stuff/* $fs
48 cp -a $install/var $fs
49 cp -a $install/sbin $fs
50 cp -a $install/usr/sbin $fs/usr
51 }
53 post_install()
54 {
55 grep ^nfs $1/etc/services ||
56 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' $1/etc/services
57 [ -s $1/etc/exports ] || cat > $1/etc/exports <<EOT
58 #/home 192.168.0.0/255.255.255.0(rw,subtree_check)
59 EOT
60 }