wok-next view john/receipt @ rev 20661

Unification of the patch system
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 10 21:12:00 2018 +0300 (2018-05-10)
parents d43bf7aae921
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="john"
4 VERSION="1.7.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="Fast password cracker"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.openwall.com/john/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="${WEB_SITE}g/$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 [ -s $SRC/$(basename $PATCH) ] ||
21 wget -P $SRC $PATCH
22 zcat $SRC/$(basename $PATCH) | patch -p1
24 cd $src/src
25 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
27 case $ARCH in
28 x86_64) Arch='nocona';;
29 *) Arch="$ARCH";;
30 esac
31 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$Arch -DJOHN_SYSTEMWIDE=1|" Makefile
32 make clean generic || return 1
34 mkdir -p $install/usr/sbin $install/etc/john $install/usr/share/john
35 cp -a $src/run/john $install/usr/sbin
36 cp -a $src/run/mailer $install/usr/sbin
37 cp -a $src/run/unafs $install/usr/sbin
38 cp -a $src/run/unique $install/usr/sbin
39 cp -a $src/run/unshadow $install/usr/sbin
40 cp -a $src/run/*.chr $install/usr/share/john
41 cp -a $src/run/dumb??.conf $install/usr/share/john
42 cp -a $src/run/generic.conf $install/usr/share/john
43 cp -a $src/run/password.lst $install/usr/share/john
44 cp $src/run/john.conf $install/etc/john
45 sed -i 's|$JOHN|/usr/share/john|g' $install/etc/john/john.conf
46 }
48 genpkg_rules() {
49 copy @std
50 DEPENDS="openssl libdes"
51 CONFIG_FILES="/etc/john/john.conf"
52 }