diff options
Diffstat (limited to 'community/john')
-rw-r--r-- | community/john/PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/community/john/PKGBUILD b/community/john/PKGBUILD index 20e0a3d7c..89cc68c17 100644 --- a/community/john/PKGBUILD +++ b/community/john/PKGBUILD @@ -6,10 +6,10 @@ pkgname=john pkgver=1.7.9 -pkgrel=7 +pkgrel=7.1 _jumbover=7 pkgdesc="John The Ripper - A fast password cracker (jumbo-$_jumbover included)" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.openwall.com/$pkgname/" license=('GPL2' 'custom') depends=('openssl') @@ -39,6 +39,9 @@ build() { 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 + elif [ "$CARCH" == "mips64el" ]; then + sed -i 's|CFLAGS = -c -Wall -O2|CFLAGS = -c -Wall -O2 -march=mips3 -mtune=loongson2f -DJOHN_SYSTEMWIDE=1|' Makefile + #sed -i 's|^LDFLAGS =\(.*\)|LDFLAGS =\1 -lm|' 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 @@ -51,6 +54,8 @@ build() { # build john if [ "$CARCH" == "x86_64" ]; then make linux-x86-64 + elif [ "$CARCH" == "mips64el" ]; then + make generic else make linux-x86-mmx fi } |