wok-6.x annotate airgeddon/receipt @ rev 24308
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 18:18:17 2022 +0000 (2022-01-17) |
parents | 9d26ae79ba48 |
children |
rev | line source |
---|---|
pascal@19210 | 1 # SliTaz package receipt. |
pascal@19210 | 2 |
pascal@19210 | 3 PACKAGE="airgeddon" |
Hans-G?nter@20701 | 4 VERSION="8.12" |
pascal@19210 | 5 HASH="5d18ec5583c8870fd92e7e60bd50af3e6175b6b5" |
pascal@19210 | 6 CATEGORY="network" |
pascal@19210 | 7 SHORT_DESC="Multi-use bash script for Linux systems to audit wireless networks." |
pascal@19210 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19210 | 9 LICENSE="GPL2" |
pascal@19210 | 10 TARBALL="$PACKAGE-$HASH.sh" |
pascal@19210 | 11 WEB_SITE="https://github.com/v1s1t0r1sh3r3/airgeddon" |
pascal@19212 | 12 WGET_URL="$WEB_SITE/raw/$HASH/$PACKAGE.sh" |
pascal@19210 | 13 |
pascal@19210 | 14 DEPENDS="bash iw aircrack-ng curl crunch mdk3" |
pascal@19210 | 15 |
pascal@24308 | 16 # What is the latest version available today? |
pascal@24308 | 17 current_version() |
pascal@24308 | 18 { |
pascal@24308 | 19 wget -O - $WEB_SITE/releases 2>/dev/null | \ |
pascal@24308 | 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 21 } |
pascal@24308 | 22 |
pascal@19210 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@19210 | 24 genpkg_rules() |
pascal@19210 | 25 { |
pascal@19210 | 26 mkdir -p $fs/usr/sbin |
pascal@19210 | 27 cp -a $src/$TARBALL $fs/usr/sbin/$PACKAGE |
pascal@19210 | 28 chmod +x $fs/usr/sbin/$PACKAGE |
pascal@19210 | 29 } |