wok annotate fping/receipt @ rev 24436
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 13 13:09:42 2022 +0000 (2022-02-13) |
parents | 03cab65f327a |
children | cdc74335c27a |
rev | line source |
---|---|
pascal@1317 | 1 # SliTaz package receipt. |
pascal@1317 | 2 |
pascal@1317 | 3 PACKAGE="fping" |
Hans-G?nter@22772 | 4 VERSION="4.2" |
pascal@1317 | 5 CATEGORY="system-tools" |
pascal@1317 | 6 SHORT_DESC="ICMP echo with multiple hosts." |
pascal@1317 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15593 | 8 LICENSE="other" |
Hans-G?nter@22772 | 9 WEB_SITE="http://fping.org/" |
Hans-G?nter@22772 | 10 |
slaxemulator@12936 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@12936 | 12 WGET_URL="${WEB_SITE}dist/$TARBALL" |
pascal@1317 | 13 |
pascal@24436 | 14 # What is the latest version available today? |
pascal@24436 | 15 current_version() |
pascal@24436 | 16 { |
pascal@24436 | 17 wget -O - https://github.com/schweikert/fping/releases 2>/dev/null | \ |
pascal@24436 | 18 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24436 | 19 } |
pascal@24436 | 20 |
pascal@1317 | 21 # Rules to configure and make the package. |
pascal@1317 | 22 compile_rules() |
pascal@1317 | 23 { |
Hans-G?nter@22772 | 24 ./configure \ |
Hans-G?nter@22772 | 25 --prefix=/usr \ |
Hans-G?nter@22772 | 26 --infodir=/usr/share/info \ |
Hans-G?nter@22772 | 27 --mandir=/usr/share/man \ |
Hans-G?nter@22772 | 28 $CONFIGURE_ARGS 2>&1 | sed 's|: No such|: no such|' && |
Hans-G?nter@22772 | 29 make && |
Hans-G?nter@22772 | 30 make DESTDIR=$DESTDIR install |
pascal@1317 | 31 } |
pascal@1317 | 32 |
pascal@1317 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1317 | 34 genpkg_rules() |
pascal@1317 | 35 { |
Hans-G?nter@22772 | 36 mkdir -p $fs/usr |
Hans-G?nter@22772 | 37 mkdir -p $fs/etc |
Hans-G?nter@22772 | 38 |
Hans-G?nter@22772 | 39 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22772 | 40 cp $stuff/protocols $fs/etc |
pascal@1317 | 41 } |