opt/john/Pkgfile
2016-07-27 03:58:28 +02:00

28 lines
703 B
Plaintext

# 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
version=1.8.0-jumbo-1
release=1
source=(http://www.openwall.com/$name/j/$name-$version.tar.xz)
build() {
sed -i 's|/usr/libexec|/usr/lib|g' $name-$version/src/params.h
cd $name-$version/src
# fix compilation with gcc 5.x
./configure CFLAGS=-std=gnu89
make
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
}