wok-4.x view net-tools/receipt @ rev 12347
gnome-vfs: repaired (from unwork state); added gnome-vfs-i18n (optional lang files)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Oct 22 01:17:33 2012 +0000 (2012-10-22) |
parents | |
children |
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 }