wok-current annotate arping/receipt @ rev 24540
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 16:54:57 2022 +0000 (2022-02-23) |
parents | 5ea0ce1cecc0 |
children |
rev | line source |
---|---|
slaxemulator@11039 | 1 # SliTaz package receipt. |
slaxemulator@11039 | 2 |
slaxemulator@11039 | 3 PACKAGE="arping" |
Hans-G?nter@22494 | 4 VERSION="2.20" |
slaxemulator@11039 | 5 CATEGORY="network" |
Hans-G?nter@22494 | 6 SHORT_DESC="ARP ping utility." |
slaxemulator@11039 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15201 | 8 LICENSE="GPL2" |
Hans-G?nter@22494 | 9 WEB_SITE="https://github.com/ThomasHabets/arping" |
Hans-G?nter@22494 | 10 |
slaxemulator@11039 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22494 | 12 WGET_URL="$WEB_SITE/archive/$TARBALL" |
slaxemulator@11039 | 13 |
Hans-G?nter@22494 | 14 DEPENDS="libcap libnet libpcap" |
Hans-G?nter@22494 | 15 BUILD_DEPENDS="autoconf automake libcap-dev libnet-dev libpcap-dev" |
slaxemulator@11039 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24299 | 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/arping-\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
slaxemulator@11039 | 23 # Rules to configure and make the package. |
slaxemulator@11039 | 24 compile_rules() |
slaxemulator@11039 | 25 { |
Hans-G?nter@22494 | 26 ./bootstrap.sh && |
slaxemulator@11039 | 27 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22494 | 28 make && |
Hans-G?nter@22494 | 29 make DESTDIR=$DESTDIR install |
slaxemulator@11039 | 30 } |
slaxemulator@11039 | 31 |
slaxemulator@11039 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@11039 | 33 genpkg_rules() |
slaxemulator@11039 | 34 { |
slaxemulator@11039 | 35 mkdir -p $fs/usr |
Hans-G?nter@22494 | 36 cp -a $install/usr/sbin $fs/usr |
slaxemulator@11039 | 37 } |