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
|
|
|
|
# Packager: Jose V Beneyto, sepen at crux dot nu
|
|
|
|
|
|
|
|
name=john
|
2016-07-27 03:58:28 +02:00
|
|
|
version=1.8.0-jumbo-1
|
2014-05-14 12:35:10 +02:00
|
|
|
release=1
|
2016-07-27 03:58:28 +02:00
|
|
|
source=(http://www.openwall.com/$name/j/$name-$version.tar.xz)
|
2014-05-14 12:35:10 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
|
|
|
|
sed -i 's|/usr/libexec|/usr/lib|g' $name-$version/src/params.h
|
|
|
|
|
|
|
|
cd $name-$version/src
|
|
|
|
|
2016-07-27 03:58:28 +02:00
|
|
|
# fix compilation with gcc 5.x
|
|
|
|
./configure CFLAGS=-std=gnu89
|
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/bin
|
|
|
|
install -d $PKG/usr/lib/$name
|
|
|
|
install -m 755 ../run/* $PKG/usr/lib/$name
|
|
|
|
echo -e '#!/bin/sh\n/usr/lib/john/john "$@"\n' > $PKG/usr/bin/john
|
|
|
|
chmod 755 $PKG/usr/bin/john
|
|
|
|
}
|