wok annotate net-tools/receipt @ rev 24837
updated libtdb and libtdb-dev (1.4.3 -> 1.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 25 07:38:22 2022 +0100 (2022-03-25) |
parents | 9dbba587fe4e |
children | 3f8f42d47b65 |
rev | line source |
---|---|
pascal@11215 | 1 # SliTaz package receipt. |
pascal@11215 | 2 |
pascal@11215 | 3 PACKAGE="net-tools" |
pascal@11215 | 4 VERSION="1.60" |
pascal@11215 | 5 CATEGORY="network" |
pascal@11215 | 6 SHORT_DESC="Network toolbox." |
pascal@11215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15584 | 8 LICENSE="GPL2" |
pascal@11215 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20560 | 10 WEB_SITE="https://web.archive.org/web/20130512153334if_/http://www.tazenda.demon.co.uk/phil/net-tools" |
pascal@11215 | 11 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@11215 | 12 |
pascal@24465 | 13 # What is the latest version available today? |
pascal@24465 | 14 current_version() |
pascal@24465 | 15 { |
pascal@24465 | 16 wget -O - https://sourceforge.net/projects/net-tools/files/ 2>/dev/null | \ |
pascal@24465 | 17 sed '/scope="row/!d;/net-tools-/!d;s|.*/net-tools-||;s|.tar.*||;q' |
pascal@24465 | 18 } |
pascal@24465 | 19 |
pascal@11215 | 20 # Rules to configure and make the package. |
pascal@11215 | 21 compile_rules() |
pascal@11215 | 22 { |
pascal@15584 | 23 mkdir $DESTDIR |
pascal@11215 | 24 enabled="HAVE_AFUNIX HAVE_AFINET HAVE_HWETHER HAVE_HWPPP \ |
pascal@11215 | 25 HAVE_HWTUNNEL HAVE_FW_MASQUERADE HAVE_IP_TOOLS HAVE_MII" |
pascal@11215 | 26 sed '/HAVE_/!d;s/.*\(HAVE.*\)../\1/' < config.in | while read name; do |
pascal@11215 | 27 val=0 |
pascal@11215 | 28 case " $enabled " in |
pascal@11215 | 29 *\ $name\ *) val=1 ;; |
pascal@11215 | 30 esac |
pascal@11215 | 31 echo "#define $name $val" |
pascal@11215 | 32 echo "$name=$val" 1>&2 |
pascal@11215 | 33 done > config.h 2> config.make |
pascal@11215 | 34 sed -i 's/default:/&;/' hostname.c lib/inet_sr.c |
pascal@11215 | 35 sed -i '/"usage/,/10baseT/s/.*/&\\n\\/' mii-tool.c |
pascal@16601 | 36 make -j 1 && |
pascal@15584 | 37 make BASEDIR=$DESTDIR install |
pascal@11215 | 38 } |
pascal@11215 | 39 |
pascal@11215 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11215 | 41 genpkg_rules() |
pascal@11215 | 42 { |
pascal@15584 | 43 cp -a $install/bin $fs |
pascal@15584 | 44 cp -a $install/sbin $fs |
pascal@11215 | 45 } |