wok annotate hashcat/receipt @ rev 23959

Add hashcat
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 01 13:38:59 2020 +0000 (2020-10-01)
parents
children 55e41ff9f4ed
rev   line source
pascal@23959 1 # SliTaz package receipt.
pascal@23959 2
pascal@23959 3 PACKAGE="hashcat"
pascal@23959 4 VERSION="6.1.1"
pascal@23959 5 CATEGORY="security"
pascal@23959 6 SHORT_DESC="Advanced password recovery"
pascal@23959 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@23959 8 LICENSE="MIT"
pascal@23959 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@23959 10 WEB_SITE="https://hashcat.net/hashcat/"
pascal@23959 11 WGET_URL="https://hashcat.net/files/$TARBALL"
pascal@23959 12
pascal@23959 13 current_version()
pascal@23959 14 {
pascal@23959 15 wget -O - $WEB_SITE 2>/dev/null | \
pascal@23959 16 sed '/tar.gz/!d;s|.*cat-||;s|.tar.gz.*||;q'
pascal@23959 17 }
pascal@23959 18
pascal@23959 19 # Rules to configure and make the package.
pascal@23959 20 compile_rules()
pascal@23959 21 {
pascal@23959 22 grep -rl /usr/local $src | xargs sed -i 's|/usr/local|/usr|'
pascal@23959 23 make &&
pascal@23959 24 make DESTDIR=$DESTDIR install
pascal@23959 25 }
pascal@23959 26
pascal@23959 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@23959 28 genpkg_rules()
pascal@23959 29 {
pascal@23959 30 cp -a $install/usr $fs
pascal@23959 31 }