wok annotate traceroute/receipt @ rev 24365
created recipe for rubberband-2.0.2
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 04 17:35:01 2022 +0100 (2022-02-04) |
parents | cbc92cce4d38 |
children | 7dd01dedad38 |
rev | line source |
---|---|
samuel_trassare@13554 | 1 # SliTaz package receipt. |
samuel_trassare@13554 | 2 |
samuel_trassare@13554 | 3 PACKAGE="traceroute" |
Hans-G?nter@22046 | 4 VERSION="2.1.0" |
samuel_trassare@13554 | 5 CATEGORY="network" |
samuel_trassare@13554 | 6 SHORT_DESC="The full-featured traceroute program." |
samuel_trassare@13554 | 7 MAINTAINER="samuel_trassare@yahoo.com" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@22046 | 9 WEB_SITE="http://traceroute.sourceforge.net/" |
Hans-G?nter@22046 | 10 |
samuel_trassare@13554 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
samuel_trassare@13554 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
samuel_trassare@13554 | 13 |
pascal@24340 | 14 # What is the latest version available today? |
pascal@24340 | 15 current_version() |
pascal@24340 | 16 { |
pascal@24340 | 17 wget -O - https://sourceforge.net/projects/traceroute/files/traceroute/ 2>/dev/null | \ |
pascal@24340 | 18 sed '/scope="row/!d;/unstable/d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 19 sed '/scope="row/!d;s|.*/traceroute-||;s|/.*||;q' |
pascal@24340 | 20 } |
pascal@24340 | 21 |
samuel_trassare@13554 | 22 # Rules to configure and make the package. |
samuel_trassare@13554 | 23 compile_rules() |
samuel_trassare@13554 | 24 { |
Hans-G?nter@22046 | 25 make && |
Hans-G?nter@22046 | 26 make prefix=/usr DESTDIR=$DESTDIR install |
samuel_trassare@13554 | 27 } |
samuel_trassare@13554 | 28 |
samuel_trassare@13554 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
samuel_trassare@13554 | 30 genpkg_rules() |
samuel_trassare@13554 | 31 { |
samuel_trassare@13554 | 32 mkdir -p $fs/usr/bin |
slaxemulator@15819 | 33 cp $install/usr/bin/traceroute $fs/usr/bin |
samuel_trassare@13554 | 34 } |
samuel_trassare@13554 | 35 |
samuel_trassare@13554 | 36 post_remove() |
samuel_trassare@13554 | 37 { |
Hans-G?nter@22046 | 38 # Restore the symbolic link to busybox. |
samuel_trassare@13554 | 39 ln -s /bin/busybox /usr/bin/traceroute |
samuel_trassare@13554 | 40 } |