wok-6.x view net-tools/receipt @ rev 19964

Up pyhn (0.3.9)
author Paul Issott <paul@slitaz.org>
date Mon May 29 17:32:03 2017 +0100 (2017-05-29)
parents 3765f181a6d5
children 9dbba587fe4e
line source
1 # SliTaz package receipt.
3 PACKAGE="net-tools"
4 VERSION="1.60"
5 CATEGORY="network"
6 SHORT_DESC="Network toolbox."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.tazenda.demon.co.uk/phil/net-tools"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 mkdir $DESTDIR
18 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \
19 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII"
20 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do
21 val=0
22 case " $enabled " in
23 *\ $name\ *) val=1 ;;
24 esac
25 echo "#define $name $val"
26 echo "$name=$val" 1>&2
27 done > config.h 2> config.make
28 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c
29 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
30 make -j 1 &&
31 make BASEDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/bin $fs
38 cp -a $install/sbin $fs
39 }