wok annotate asleap/receipt @ rev 24373

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 05 16:12:08 2022 +0000 (2022-02-05)
parents 364099c9aff2
children e1e1678c5265
rev   line source
slaxemulator@7819 1 # SliTaz package receipt.
slaxemulator@7819 2
slaxemulator@7819 3 PACKAGE="asleap"
slaxemulator@7819 4 VERSION="2.2"
slaxemulator@7819 5 CATEGORY="network"
slaxemulator@7819 6 SHORT_DESC="Actively recover LEAP/PPTP passwords."
slaxemulator@7819 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15000 8 LICENSE="GPL2"
slaxemulator@7819 9 DEPENDS="openssl libpcap"
slaxemulator@7819 10 BUILD_DEPENDS="openssl-dev libpcap-dev"
slaxemulator@7819 11 TARBALL="$PACKAGE-$VERSION.tgz"
hackdorte@20008 12 # WEB_SITE="http://www.willhackforsushi.com/Asleap.html"
pascal@21145 13 WEB_SITE="https://www.willhackforsushi.com/?page_id=41"
slaxemulator@7819 14 WGET_URL="http://www.willhackforsushi.com/code/$PACKAGE/$VERSION/$TARBALL"
slaxemulator@7819 15
pascal@24373 16 # What is the latest version available today?
pascal@24373 17 current_version()
pascal@24373 18 {
pascal@24373 19 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24373 20 sed '/code\/asleap/!d;/MD5/!d;s|.*asleap-||;s|.tgz.*||;q'
pascal@24373 21 }
pascal@24373 22
slaxemulator@7819 23 # Rules to configure and make the package.
slaxemulator@7819 24 compile_rules()
slaxemulator@7819 25 {
slaxemulator@7819 26 cd $src
slaxemulator@7819 27 make
slaxemulator@12869 28 install -D asleap $DESTDIR/usr/bin/asleap
slaxemulator@12869 29 install -D genkeys $DESTDIR/usr/bin/genkeys
slaxemulator@7819 30
slaxemulator@7819 31 }
slaxemulator@7819 32
slaxemulator@7819 33 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7819 34 genpkg_rules()
slaxemulator@7819 35 {
slaxemulator@7819 36 mkdir -p $fs/usr
pascal@15603 37 cp -a $install/usr/bin $fs/usr
slaxemulator@7819 38 }
slaxemulator@7819 39