blob: 626c99e5c40a51d3129fd794e802d0b23edf3ef3 (
plain)
1 # Description: John the Ripper is a fast password cracker
2 # URL: http://www.openwall.com/john/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Depends on: libpcap python
5
6 name=john
7 version=1.8.0-jumbo-1
8 release=2
9 source=(http://www.openwall.com/$name/j/$name-$version.tar.xz
10 gcc5.patch)
11
12 build() {
13 cd $name-$version/src
14
15 sed -i 's|/usr/libexec|/usr/lib|g' params.h
16
17 # fix compilation with gcc 5.x
18 patch -p2 -i $SRC/gcc5.patch
19
20 CONFIG_SHELL=/bin/bash \
21 ./configure --prefix=/usr CFLAGS="${CFLAGS}"
22
23 make
24
25 install -d $PKG/usr/lib/$name
26 install -m 0755 -t $PKG/usr/lib/$name ../run/*
27
28 install -d $PKG/usr/bin
29 echo -e '#!/bin/sh\n/usr/lib/john/john "$@"\n' > $PKG/usr/bin/john
30 chmod 0755 $PKG/usr/bin/john
31
32 /usr/bin/python -mcompileall $PKG
33 }
|