[arch-commits] Commit in john/trunk (PKGBUILD)
Eric Belanger
eric at archlinux.org
Sat Aug 16 04:44:21 UTC 2008
Date: Saturday, August 16, 2008 @ 00:44:21
Author: eric
Revision: 8723
adding md5sums, adding changes in x86_64 branch to trunk
Modified:
john/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-08-16 04:35:22 UTC (rev 8722)
+++ PKGBUILD 2008-08-16 04:44:21 UTC (rev 8723)
@@ -7,12 +7,15 @@
pkgver=1.7.0.2
pkgrel=3
pkgdesc="John the Ripper is a fast password cracker. Additional patches (NTLM, MySQL, Kerberos V5, etc.) included."
+arch=(i686 x86_64)
url="http://www.openwall.com/$pkgname/"
depends=('openssl')
source=(http://www.openwall.com/$pkgname/f/$pkgname-$pkgver.tar.gz \
http://www.openwall.com/john/contrib/john-1.7-all-4.diff.gz \
http://www2.psy.uq.edu.au/~ftp/Crypto/DES/libdes-4.04b.tar.gz \
params.h.patch)
+md5sums=('084fa03f265491ef7e32c05e9fb027db' '4429722ba242a5a33ca8ebf45fd42797'\
+ 'c8d5c69f86c2eedb485583b0305284a1' 'f69ed632eba8fb9e45847a4b4a323787')
build() {
# jumbo patch
@@ -22,13 +25,21 @@
# patch default params
patch -p0 < ${startdir}/src/params.h.patch
- sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=i686 -DJOHN_SYSTEMWIDE=1|' Makefile
+ if [ "$CARCH" == "x86_64" ]; then
+ sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=x86-64 -DJOHN_SYSTEMWIDE=1|' Makefile
+ sed -i 's|^LDFLAGS =\(.*\)|LDFLAGS =\1 -lm|' Makefile
+ sed -i -e 's|-m486||g' Makefile
+ else sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=i686 -DJOHN_SYSTEMWIDE=1|' Makefile
+ fi
sed -i 's|LIBS = -ldes|LIBS = -ldes -Ldes|' Makefile
sed -i 's|#include <des.h>|#include "des/des.h"|' KRB5_fmt.c
sed -i 's|#include <des.h>|#include "des/des.h"|' KRB5_std.h
# build john
- make linux-x86-mmx || return 1
+ if [ "$CARCH" == "x86_64" ]; then
+ make linux-x86-64 || return 1
+ else make linux-x86-mmx || return 1
+ fi
# config file
mkdir -p ${startdir}/pkg/etc/john
@@ -43,7 +54,10 @@
# install binaries
mkdir -p ${startdir}/pkg/usr/bin
- make linux-x86-mmx || return 1
+ if [ "$CARCH" == "x86_64" ]; then
+ make linux-x86-64 || return 1
+ else make linux-x86-mmx || return 1
+ fi
install -m755 ${startdir}/src/john-$pkgver/run/john ${startdir}/pkg/usr/bin/john
install -m755 ${startdir}/src/john-$pkgver/run/mailer ${startdir}/pkg/usr/bin/john-mailer
cd ${startdir}/pkg/usr/bin
More information about the arch-commits
mailing list