wok-6.x view arp-scan/receipt @ rev 24313
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 21 10:59:24 2022 +0000 (2022-01-21) |
parents | d4b5a0494f8a |
children | 8b1706ed1b75 |
line source
1 # SliTaz package receipt.
3 PACKAGE="arp-scan"
4 VERSION="1.9.5"
5 CATEGORY="network"
6 SHORT_DESC="The ARP Scanner"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/royhills/arp-scan"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS="libpcap perl"
15 BUILD_DEPENDS="wget autoconf automake libpcap-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 autoreconf --install
27 ./configure --prefix=/usr $CONFIGURE_ARGS &&
28 make &&
29 make check | sed '/0$/d' &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr $fs/usr/share
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/arp-scan $fs/usr/share
39 }