wok view net-tools/receipt @ rev 24825

updated libsdl2-ttf and libsdl2-ttf-dev (2.0.15 -> 2.0.18)
author Hans-G?nter Theisgen
date Wed Mar 23 17:04:32 2022 +0100 (2022-03-23)
parents 9dbba587fe4e
children 3f8f42d47b65
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 # What is the latest version available today?
14 current_version()
15 {
16 wget -O - https://sourceforge.net/projects/net-tools/files/ 2>/dev/null | \
17 sed '/scope="row/!d;/net-tools-/!d;s|.*/net-tools-||;s|.tar.*||;q'
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 mkdir $DESTDIR
24 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \
25 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII"
26 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do
27 val=0
28 case " $enabled " in
29 *\ $name\ *) val=1 ;;
30 esac
31 echo "#define $name $val"
32 echo "$name=$val" 1>&2
33 done > config.h 2> config.make
34 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c
35 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c
36 make -j 1 &&
37 make BASEDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/bin $fs
44 cp -a $install/sbin $fs
45 }