john.paketlendi

This commit is contained in:
milisbir 2016-07-31 06:15:51 +00:00
parent 4e958541b8
commit 8222270f01
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# Description: John the Ripper is a fast password cracker
# URL: http://www.openwall.com/john/
# Packager: milisarge
# Depends on:
name=john
_version=1.8.0-jumbo-1
version=1.8.0
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
}