wok view net-tools/receipt @ rev 20932
updated fop (1.0 -> 2.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 02 14:33:42 2019 +0100 (2019-03-02) |
parents | f499057669ab |
children | 535c806240cc |
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="https://web.archive.org/web/20130512153334if_/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 mkdir $DESTDIR
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 -j 1 &&
30 make BASEDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/bin $fs
37 cp -a $install/sbin $fs
38 }