wok-current view net-tools/receipt @ rev 15380
Add perl-thread
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 21 10:20:30 2013 +0000 (2013-10-21) |
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 }