wok-next view john/receipt @ rev 21607

updated duviz (09032015 -> 1.1.1)
author Hans-G?nter Theisgen
date Thu Jun 25 09:45:57 2020 +0100 (2020-06-25)
parents adf9af989d97
children
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="libdes-dev openssl-dev zlib-dev"
16 #PATCH="http://www.openwall.com/john/g/$PACKAGE-$VERSION-jumbo-7.diff.gz"
17 #EXTRA_SOURCE_FILES="$PATCH"
19 compile_rules()
20 {
21 # [ -s $SRC/$(basename $PATCH) ] ||
22 # wget -P $SRC $PATCH
23 # zcat $SRC/$(basename $PATCH) | patch -p1
25 cd $src/src
26 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' \
27 Makefile
29 case $ARCH in
30 x86_64) Arch='nocona';;
31 *) Arch="$ARCH";;
32 esac
33 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$Arch -DJOHN_SYSTEMWIDE=1|" Makefile
35 make clean generic || return 1
37 mkdir -p $install/usr/sbin
38 mkdir -p $install/etc/john
39 mkdir -p $install/usr/share/john
41 cp -a $src/run/john $install/usr/sbin
42 cp -a $src/run/mailer $install/usr/sbin
43 cp -a $src/run/unafs $install/usr/sbin
44 cp -a $src/run/unique $install/usr/sbin
45 cp -a $src/run/unshadow $install/usr/sbin
46 cp -a $src/run/*.chr $install/usr/share/john
47 cp -a $src/run/dumb??.conf $install/usr/share/john
48 cp -a $src/run/generic.conf $install/usr/share/john
49 cp -a $src/run/password.lst $install/usr/share/john
50 cp $src/run/john.conf $install/etc/john
52 sed -i 's|$JOHN|/usr/share/john|g' $install/etc/john/john.conf
53 }
55 genpkg_rules()
56 {
57 copy @std
58 DEPENDS="libdes openssl"
59 CONFIG_FILES="/etc/john/john.conf"
60 }