wok view net-tools/receipt @ rev 19596

Up: cmake (3.7.1)
author Alexander Medvedev <devl547@gmail.com>
date Sun Jan 01 17:45:15 2017 +0000 (2017-01-01)
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 }