2014-05-14 12:35:10 +02:00
|
|
|
# Description: John the Ripper is a fast password cracker
|
|
|
|
# URL: http://www.openwall.com/john/
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
2017-07-02 10:12:23 +10:00
|
|
|
# Depends on: libpcap python
|
2014-05-14 12:35:10 +02:00
|
|
|
|
|
|
|
name=john
|
2016-07-27 03:58:28 +02:00
|
|
|
version=1.8.0-jumbo-1
|
2017-07-02 10:12:23 +10:00
|
|
|
release=2
|
2017-07-27 09:58:36 +02:00
|
|
|
source=(http://www.openwall.com/$name/j/$name-$version.tar.xz
|
2017-07-02 10:12:23 +10:00
|
|
|
gcc5.patch)
|
2014-05-14 12:35:10 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version/src
|
2017-07-02 10:12:23 +10:00
|
|
|
|
|
|
|
sed -i 's|/usr/libexec|/usr/lib|g' params.h
|
2014-05-14 12:35:10 +02:00
|
|
|
|
2016-07-27 03:58:28 +02:00
|
|
|
# fix compilation with gcc 5.x
|
2017-07-02 10:12:23 +10:00
|
|
|
patch -p2 -i $SRC/gcc5.patch
|
|
|
|
|
|
|
|
CONFIG_SHELL=/bin/bash \
|
|
|
|
./configure --prefix=/usr CFLAGS="${CFLAGS}"
|
2014-05-14 12:35:10 +02:00
|
|
|
|
2016-07-27 03:58:28 +02:00
|
|
|
make
|
|
|
|
|
2014-05-14 12:35:10 +02:00
|
|
|
install -d $PKG/usr/lib/$name
|
2017-07-02 10:12:23 +10:00
|
|
|
install -m 0755 -t $PKG/usr/lib/$name ../run/*
|
|
|
|
|
|
|
|
install -d $PKG/usr/bin
|
2014-05-14 12:35:10 +02:00
|
|
|
echo -e '#!/bin/sh\n/usr/lib/john/john "$@"\n' > $PKG/usr/bin/john
|
2017-07-02 10:12:23 +10:00
|
|
|
chmod 0755 $PKG/usr/bin/john
|
|
|
|
|
|
|
|
/usr/bin/python -mcompileall $PKG
|
2014-05-14 12:35:10 +02:00
|
|
|
}
|