wok-current view net-tools/receipt @ rev 11257
iron-linux: Cookutils uses wget -O $SRC/$TARBALL so we can change TARBALL to save source as TARBALL. This needs to be done for iron-linux cause other wise it will just find iron-linux.tar.gz and use the old version.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Nov 07 11:21:08 2011 +0000 (2011-11-07) |
parents | |
children | 3765f181a6d5 |
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.tazenda.demon.co.uk/phil/net-tools"
10 WGET_URL="$WEB_SITE/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 mkdir _pkg
17 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \
18 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII"
19 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do
20 val=0
21 case " $enabled " in
22 *\ $name\ *) val=1 ;;
23 esac
24 echo "#define $name $val"
25 echo "$name=$val" 1>&2
26 done > config.h 2> config.make
27 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c
28 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
29 make &&
30 make BASEDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $_pkg/bin $fs
37 cp -a $_pkg/sbin $fs
38 }