wok-next diff nfs-utils/receipt @ rev 20678
Up clisp (2.50)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 15 02:59:03 2018 +0300 (2018-05-15) |
parents | c4e53a39395a |
children | d5aab818505e |
line diff
1.1 --- a/nfs-utils/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/nfs-utils/receipt Tue May 15 02:59:03 2018 +0300 1.3 @@ -1,59 +1,52 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="nfs-utils" 1.8 VERSION="1.3.0" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="Network FileSystem tools." 1.11 +SHORT_DESC="Network FileSystem tools" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://nfs.sourceforge.net/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 -WEB_SITE="http://nfs.sourceforge.net/" 1.18 -WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL" 1.19 -CONFIG_FILES="/etc/exports" 1.20 -TAGS="filesystem" 1.21 +WGET_URL="$SF_MIRROR/nfs/$TARBALL" 1.22 1.23 -DEPENDS="libtirpc libwrap libcap util-linux-blkid util-linux-uuid rpcbind" 1.24 BUILD_DEPENDS="libtirpc-dev libcap-dev libwrap-dev util-linux-blkid-dev \ 1.25 util-linux-uuid-dev util-linux-blkid" 1.26 1.27 -# Handle SliTaz arch. 1.28 -case "$SLITAZ_ARCH" in 1.29 - i?86) DEPENDS="$DEPENDS linux-nfsd" ;; 1.30 -esac 1.31 +compile_rules() { 1.32 + case "$ARCH" in 1.33 + arm*) 1.34 + ARCH_ARGS="--with-tirpcinclude=/cross/$ARCH/sysroot/usr/include/tirpc 1.35 + --without-tcp-wrappers CC_FOR_BUILD=${HOST_SYSTEM}-gcc" ;; 1.36 + esac 1.37 1.38 -# Handle cross compilation. 1.39 -case "$ARCH" in 1.40 - arm*) 1.41 - ARCH_ARGS="--with-tirpcinclude=/cross/$ARCH/sysroot/usr/include/tirpc 1.42 - --without-tcp-wrappers CC_FOR_BUILD=${HOST_SYSTEM}-gcc" ;; 1.43 -esac 1.44 - 1.45 -# Rules to configure and make the package. 1.46 -compile_rules() 1.47 -{ 1.48 #sh autogen.sh 1.49 ./configure \ 1.50 --disable-nfsv4 \ 1.51 --disable-gss \ 1.52 - $CONFIGURE_ARGS ${ARCH_ARGS} && 1.53 - make && make install 1.54 + $CONFIGURE_ARGS $ARCH_ARGS && 1.55 + make && make install || return 1 1.56 + 1.57 + cp -a $stuff/* $install 1.58 } 1.59 1.60 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.61 -genpkg_rules() 1.62 -{ 1.63 - mkdir -p $fs/usr 1.64 - cp -a stuff/* $fs 1.65 - cp -a $install/var $fs 1.66 - cp -a $install/sbin $fs 1.67 - cp -a $install/usr/sbin $fs/usr 1.68 +genpkg_rules() { 1.69 + copy @std 1.70 + DEPENDS="libtirpc libwrap libcap util-linux-blkid util-linux-uuid rpcbind \ 1.71 + linux-nfsd" 1.72 + case "$SLITAZ_ARCH" in 1.73 + arm*) DEPENDS="libtirpc libwrap libcap util-linux-blkid \ 1.74 + util-linux-uuid rpcbind";; 1.75 + esac 1.76 + CONFIG_FILES="/etc/exports" 1.77 + TAGS="filesystem" 1.78 } 1.79 1.80 -post_install() 1.81 -{ 1.82 +post_install() { 1.83 grep ^nfs "$1/etc/services" || 1.84 sed -i 's|.* 2401/tcp.*|nfs 2049/tcp\nnfs 2049/udp\n&|' "$1/etc/services" 1.85 - [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT 1.86 + [ -s "$1/etc/exports" ] || cat > "$1/etc/exports" <<EOT 1.87 #/home 192.168.0.0/255.255.255.0(rw,subtree_check) 1.88 EOT 1.89 }