opt/john/Pkgfile

34 lines
788 B
Plaintext
Raw Normal View History

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
# 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
release=2
2017-07-27 09:58:36 +02:00
source=(http://www.openwall.com/$name/j/$name-$version.tar.xz
gcc5.patch)
2014-05-14 12:35:10 +02:00
build() {
cd $name-$version/src
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
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
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
chmod 0755 $PKG/usr/bin/john
/usr/bin/python -mcompileall $PKG
2014-05-14 12:35:10 +02:00
}