wok view net-tools/receipt @ rev 18638
freetype-dev: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 29 16:45:24 2015 +0100 (2015-11-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 }