diff options
author | Kent Fritz <fritz.kent@gmail.com> | 2015-02-28 03:16:20 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-02-28 03:16:20 +0700 |
commit | 63dec0b40891462bb85bccd751a93d0d75a4292f (patch) | |
tree | be493299cf93b2d7e5d878c651d7a8dc55092de7 /system/john/john.SlackBuild | |
parent | a526598a932113addc6c94107c7cefca7fa2bd2f (diff) |
system/john: Support for AVX instructions, remove MERGEWORDS.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/john/john.SlackBuild')
-rw-r--r-- | system/john/john.SlackBuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/system/john/john.SlackBuild b/system/john/john.SlackBuild index 035bc8dd1a984..1a6178179680b 100644 --- a/system/john/john.SlackBuild +++ b/system/john/john.SlackBuild @@ -8,10 +8,14 @@ # Thanks a lot Kent Fritz for patch with many improvements # 19/Dec/2011 * Updated for version 1.7.9 and jambo-patch 5 # 10/Nov/2013 * Updated for version 1.8.0 +# 24/Feb/2015 * Added support for AVX instructions -- thanks to Matthijs +# Schuurman for the patch +# Also removed "MERGEWORDS" option, as it's harmful for cracking +# slow hashes. PRGNAM=john VERSION=${VERSION:-1.8.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -28,7 +32,9 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - if grep -q ^flags.*sse2 /proc/cpuinfo; then + if grep -q ^flags.*avx /proc/cpuinfo; then + TARGET=linux-x86-avx + elif grep -q ^flags.*sse2 /proc/cpuinfo; then TARGET=linux-x86-sse2 elif grep -q ^flags.*mmx /proc/cpuinfo; then TARGET=linux-x86-mmx @@ -37,7 +43,11 @@ if [ "$ARCH" = "i486" ]; then fi LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - TARGET=linux-x86-64 + if grep -q ^flags.*avx /proc/cpuinfo; then + TARGET=linux-x86-64-avx + else + TARGET=linux-x86-64 + fi LIBDIRSUFFIX="64" else TARGET=generic @@ -68,16 +78,6 @@ rm $PKG/usr/share/john/mailer make -j1 -C src clean $TARGET CFLAGS="-DJOHN_SYSTEMWIDE=1 -c -Wall -O2 -fomit-frame-pointer" -# Merge /usr/share/dict/words into password list? -if [ "$MERGEWORDS" = "1" ]; then - mv run/password.lst run/password.lst.orig - grep -h -v '^#!comment:' run/password.lst.orig /usr/share/dict/words | \ - run/unique run/password.lst - cp -a run/password.lst.orig $PKG/usr/share/john - cp -a run/password.lst $PKG/usr/share/john - chmod 644 $PKG/usr/share/john/password.lst -fi - mkdir -p $PKG/usr/bin cp -a run/$PRGNAM run/mailer $PKG/usr/bin ln -s $PRGNAM $PKG/usr/bin/unafs |