wok view john/receipt @ rev 25517
updated gvim 8.2 -> 9.0.0133
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 23 10:53:50 2023 +0100 (21 months ago) |
parents | 12552b2d1c54 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="john"
4 VERSION="1.9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast password cracker."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.openwall.com/john/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="${WEB_SITE}k/$TARBALL"
14 DEPENDS="libdes openssl"
15 BUILD_DEPENDS="libdes-dev openssl-dev"
16 CONFIG_FILES="/etc/john/john.conf"
18 #PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz"
19 #EXTRA_SOURCE_FILES="$PATCH"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/openwall/john/tags 2>/dev/null | \
25 sed '/archive.*tar/!d;/tags\/[0-9\.]*.tar/!d;s|.*/\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # cd $src
32 # [ -s $SOURCES_REPOSITORY/$(basename $PATCH) ] ||
33 # wget -P $SOURCES_REPOSITORY $PATCH
34 # zcat $SRC/$(basename $PATCH) | patch -p1
36 cd $src/src
37 patch -Np0 -i $stuff/params.h.patch
38 # sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
39 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$ARCH -DJOHN_SYSTEMWIDE=1|" Makefile
41 make clean generic
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p \
48 $fs/usr/sbin \
49 $fs/etc/john \
50 $fs/usr/share/john
52 cp -a $src/run/john $fs/usr/sbin
53 cp -a $src/run/mailer $fs/usr/sbin
54 cp -a $src/run/unafs $fs/usr/sbin
55 cp -a $src/run/unique $fs/usr/sbin
56 cp -a $src/run/unshadow $fs/usr/sbin
57 cp -a $src/run/*.chr $fs/usr/share/john
58 # cp -a $src/run/dumb??.conf $fs/usr/share/john
59 # cp -a $src/run/generic.conf $fs/usr/share/john
60 cp -a $src/run/password.lst $fs/usr/share/john
61 cp $src/run/john.conf $fs/etc/john
63 sed -i 's|$JOHN|/usr/share/john|g' $fs/etc/john/john.conf
64 }