wok-6.x annotate airsnort/receipt @ rev 24340
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 31 11:41:46 2022 +0000 (2022-01-31) |
parents | 11b5e93cb5f2 |
children |
rev | line source |
---|---|
slaxemulator@7186 | 1 # SliTaz package receipt. |
slaxemulator@7186 | 2 |
slaxemulator@7186 | 3 PACKAGE="airsnort" |
slaxemulator@7186 | 4 VERSION="0.2.7e" |
slaxemulator@7186 | 5 CATEGORY="network" |
slaxemulator@7186 | 6 SHORT_DESC="A wireless LAN (WLAN) tool which recovers encryption keys." |
slaxemulator@7186 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15362 | 8 LICENSE="GPL2" |
al@19275 | 9 WEB_SITE="http://airsnort.shmoo.com/" |
slaxemulator@7186 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@7186 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7186 | 12 |
pascal@15362 | 13 DEPENDS="gtk+ libpcap" |
pascal@15362 | 14 BUILD_DEPENDS="gtk+-dev libpcap-dev" |
pascal@15362 | 15 |
pascal@24340 | 16 # What is the latest version available today? |
pascal@24340 | 17 current_version() |
pascal@24340 | 18 { |
pascal@24340 | 19 wget -O - https://sourceforge.net/projects/airsnort/files/airsnort/ 2>/dev/null | \ |
pascal@24340 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24340 | 21 sed '/scope="row/!d;s|.*airsnort-||;s|.tar.*||;q' |
pascal@24340 | 22 } |
pascal@24340 | 23 |
slaxemulator@7186 | 24 # Rules to configure and make the package. |
slaxemulator@7186 | 25 compile_rules() |
slaxemulator@7186 | 26 { |
slaxemulator@7186 | 27 ./configure \ |
slaxemulator@7186 | 28 --prefix=/usr \ |
slaxemulator@7186 | 29 --infodir=/usr/share/info \ |
slaxemulator@7186 | 30 --mandir=/usr/share/man \ |
slaxemulator@7186 | 31 $CONFIGURE_ARGS && |
pascal@15362 | 32 make && make DESTDIR=$DESTDIR install |
slaxemulator@7186 | 33 } |
slaxemulator@7186 | 34 |
slaxemulator@7186 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7186 | 36 genpkg_rules() |
slaxemulator@7186 | 37 { |
slaxemulator@7186 | 38 mkdir -p $fs/usr |
pascal@15362 | 39 cp -a $install/usr/bin $fs/usr |
slaxemulator@7186 | 40 } |