pkgsrc/security/john/Makefile
sborrill 7ebc7857d8 Update to john-1.7.2 and enable per-arch optimization for NetBSD and
OpenBSD.

Changes:
The following changes have been made between John 1.7.1 and 1.7.2:

* Bitslice DES assembly code for x86-64 making use of the 64-bit mode
extended SSE2 with 16 XMM registers has been added for better performance
at DES-based crypt(3) hashes with x86-64 builds on AMD processors.
* New make target for FreeBSD/x86-64.

The following changes have been made between John 1.7.0.2 and 1.7.1:

* Bitslice DES code for x86 with SSE2 has been added for better performance
at DES-based crypt(3) hashes on Pentium 4 and SSE2-capable AMD processors.
* Assorted high-level changes have been applied to improve performance
on current x86-64 processors.
* New make target for NetBSD/SPARC64.
* Minor source code cleanups.
2007-02-03 17:09:20 +00:00

101 lines
2.6 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2007/02/03 17:09:20 sborrill Exp $
#
DISTNAME= john-1.7.2
CATEGORIES= security textproc
MASTER_SITES= http://www.openwall.com/john/f/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= DawS@irc.pl
HOMEPAGE= http://www.openwall.com/john/
COMMENT= Unix Password Cracker
NO_CONFIGURE= yes
BUILD_DIRS= src
.include "../../mk/compiler.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc"
. if !empty(CC_VERSION:MSun)
. if defined(SPARC_TARGET_ARCH) && ${SPARC_TARGET_ARCH} == "sparcv9"
BUILD_TARGET= solaris-sparc-v9-cc
. else
BUILD_TARGET= solaris-sparc-v8-cc
. endif
. else
BUILD_TARGET= solaris-sparc-gcc
. endif
.elif ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "i386"
BUILD_TARGET= solaris-x86-any
.elif ${OPSYS} == "NetBSD"
. if ${MACHINE_ARCH} == "i386"
BUILD_TARGET= openbsd-x86-any
. elif ${MACHINE_ARCH} == "x86_64"
BUILD_TARGET= openbsd-x86-64
. elif ${MACHINE_ARCH} == "sparc64"
BUILD_TARGET= netbsd-sparc64
. elif ${MACHINE_ARCH} == "sparc"
BUILD_TARGET= openbsd-sparc
. elif ${MACHINE_ARCH} == "alpha"
BUILD_TARGET= openbsd-alpha
. elif ${MACHINE_ARCH} == "powerpc"
BUILD_TARGET= openbsd-ppc32
. elif ${MACHINE_ARCH} == "powerpc64"
BUILD_TARGET= openbsd-ppc64
. elif ${MACHINE_ARCH} == "vax"
BUILD_TARGET= netbsd-vax
. else
BUILD_TARGET= generic
. endif
.elif ${OPSYS} == "OpenBSD"
. if ${MACHINE_ARCH} == "i386"
BUILD_TARGET= openbsd-x86-any
. elif ${MACHINE_ARCH} == "x86_64"
BUILD_TARGET= openbsd-x86-64
. elif ${MACHINE_ARCH} == "sparc64"
BUILD_TARGET= openbsd-sparc64
. elif ${MACHINE_ARCH} == "sparc"
BUILD_TARGET= openbsd-sparc
. elif ${MACHINE_ARCH} == "alpha"
BUILD_TARGET= openbsd-alpha
. elif ${MACHINE_ARCH} == "powerpc"
BUILD_TARGET= openbsd-ppc32
. elif ${MACHINE_ARCH} == "powerpc64"
BUILD_TARGET= openbsd-ppc64
. else
BUILD_TARGET= generic
. endif
.else
BUILD_TARGET= generic
.endif
INSTALLATION_DIRS= bin
SUBST_CLASSES+= john
SUBST_STAGE.john= pre-build
SUBST_FILES.john= src/params.h
SUBST_SED.john= -e "s+@PREFIX@+${PREFIX}+g"
do-install:
# programs and scripts
${INSTALL_PROGRAM} ${WRKSRC:Q}/run/john ${PREFIX:Q}/bin
${INSTALL_SCRIPT} ${WRKSRC:Q}/run/mailer ${PREFIX:Q}/bin
# data directory
${INSTALL_DATA_DIR} ${PREFIX:Q}/share/john
# configuration file
${INSTALL_DATA} ${WRKSRC:Q}/run/john.conf ${PREFIX:Q}/share/john
# symbolic links
.for i in unafs unique unshadow
${LN} -sf ${PREFIX:Q}/bin/john ${PREFIX:Q}/bin/${i:Q}
.endfor
# data files
.for i in all.chr alnum.chr alpha.chr digits.chr lanman.chr password.lst
${INSTALL_DATA} ${WRKSRC:Q}/run/${i:Q} ${PREFIX:Q}/share/john
.endfor
.include "../../mk/bsd.pkg.mk"