wok view nfs-utils/receipt @ rev 19880
obexftp: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 02 17:28:17 2017 +0200 (2017-04-02) |
parents | b0f93805d8bb |
children | ce3da0799929 |
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 }