wok-next view john/receipt @ rev 20582
Up libjson-c (0.13.1-20180305)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 10:00:23 2018 +0300 (2018-04-14) |
parents | e1c0edabdcb2 |
children | d6378d455338 |
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 patch -Np0 -i $stuff/params.h.patch
26 sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
28 case $ARCH in
29 x86_64) Arch='nocona';;
30 *) Arch="$ARCH";;
31 esac
32 sed -i "s|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=$Arch -DJOHN_SYSTEMWIDE=1|" Makefile
33 make clean generic || return 1
35 mkdir -p $install/usr/sbin $install/etc/john $install/usr/share/john
36 cp -a $src/run/john $install/usr/sbin
37 cp -a $src/run/mailer $install/usr/sbin
38 cp -a $src/run/unafs $install/usr/sbin
39 cp -a $src/run/unique $install/usr/sbin
40 cp -a $src/run/unshadow $install/usr/sbin
41 cp -a $src/run/*.chr $install/usr/share/john
42 cp -a $src/run/dumb??.conf $install/usr/share/john
43 cp -a $src/run/generic.conf $install/usr/share/john
44 cp -a $src/run/password.lst $install/usr/share/john
45 cp $src/run/john.conf $install/etc/john
46 sed -i 's|$JOHN|/usr/share/john|g' $install/etc/john/john.conf
47 }
49 genpkg_rules() {
50 copy @std
51 DEPENDS="openssl libdes"
52 CONFIG_FILES="/etc/john/john.conf"
53 }