# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
categories sysutils security
license {GPL-2+ OpenSSLException}
description Featureful Unix password cracker
long_description John the Ripper is a UNIX password cracker, currently available for \
UNIX (tested with Linux x86, FreeBSD x86, Solaris 2.x SPARC, OSF/1 \
Alpha), DOS, WinNT/Win95.
homepage https://www.openwall.com/john/
master_sites http://www.openwall.com/${name}/k/
checksums rmd160 16114db2fe5004ce4044a2d56b46ef209b941dc4 \
sha256 0b266adcfef8c11eed690187e71494baea539efbd632fe221181063ba09508df \
patchfiles patch-src-params.h.diff
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/params.h
build.dir ${worksrcpath}/src
build.args CC=${configure.cc}
switch ${configure.build_arch} {
build.target-append macosx-x86-sse2
# x86_64 is only supported on Leopard and up
build.target-append macosx-x86-64
configure.build_arch i386
build.target-append macosx-x86-sse2
# Use altivec if available
if {![catch {sysctl hw.vectorunit} result] && $result == 1} {
build.target-append macosx-ppc32-altivec
build.target-append macosx-ppc32
build.target-append macosx-ppc64