wok-6.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="asleap"
4 VERSION="2.2"
5 CATEGORY="network"
6 SHORT_DESC="Actively recover LEAP/PPTP passwords."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 DEPENDS="openssl libpcap"
10 BUILD_DEPENDS="openssl-dev libpcap-dev"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 # WEB_SITE="http://www.willhackforsushi.com/Asleap.html"
13 WEB_SITE="https://www.willhackforsushi.com/?page_id=41"
14 WGET_URL="http://www.willhackforsushi.com/code/$PACKAGE/$VERSION/$TARBALL"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/code\/asleap/!d;/MD5/!d;s|.*asleap-||;s|.tgz.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 make
28 install -D asleap $DESTDIR/usr/bin/asleap
29 install -D genkeys $DESTDIR/usr/bin/genkeys
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 }