2007-06-30 20:47:13 +02:00
|
|
|
# Ports collection makefile for: John the Ripper
|
|
|
|
# Date created: Sun Mar 09, 1997
|
|
|
|
# Whom: David O'Brien <obrien@FreeBSD.org>
|
1997-03-09 22:34:26 +01:00
|
|
|
#
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1997-03-09 22:34:26 +01:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:34:06 +02:00
|
|
|
PORTNAME= john
|
2006-06-19 17:22:50 +02:00
|
|
|
PORTVERSION= 1.7.2
|
Add the contrib patchset which adds support for many more message digest
algorithms to john. New algorithms are: NT, PO, raw-MD5, IPB2, raw-sha1,
salt-sha1, md5a, KRB5, bfegg, nsldap, ssha, oracle, MYSQL, mysql-sha1,
mscash, lotus5, DOMINOSEC, NETLM, NETNTLM, mssql, mssql05.
PR: ports/119824
Submitted by: Daniel Roethlisberger
2008-01-21 07:11:11 +01:00
|
|
|
PORTREVISION= 1
|
1997-03-09 22:34:26 +01:00
|
|
|
CATEGORIES= security
|
2006-05-04 10:26:22 +02:00
|
|
|
MASTER_SITES= http://www.openwall.com/john/f/ \
|
2006-06-19 17:22:50 +02:00
|
|
|
ftp://ftp.ru.openwall.com/pub/projects/john/${PORTVERSION}/ \
|
|
|
|
ftp://ftp.se.openwall.com/pub/projects/john/${PORTVERSION}/ \
|
|
|
|
http://distro.ibiblio.org/pub/linux/distributions/openwall/projects/john/${PORTVERSION}/
|
1997-03-09 22:34:26 +01:00
|
|
|
|
Add the contrib patchset which adds support for many more message digest
algorithms to john. New algorithms are: NT, PO, raw-MD5, IPB2, raw-sha1,
salt-sha1, md5a, KRB5, bfegg, nsldap, ssha, oracle, MYSQL, mysql-sha1,
mscash, lotus5, DOMINOSEC, NETLM, NETNTLM, mssql, mssql05.
PR: ports/119824
Submitted by: Daniel Roethlisberger
2008-01-21 07:11:11 +01:00
|
|
|
PATCH_SITES= ftp://ftp.openwall.com/pub/projects/john/contrib/ \
|
|
|
|
http://www.mirrorgeek.com/openwall/projects/john/contrib/ \
|
|
|
|
ftp://ftp.cert.dfn.de/pub/tools/net/Openwall/projects/john/contrib/ \
|
|
|
|
http://ftp.sunet.se/pub/security/tools/net/Openwall/projects/john/contrib/
|
|
|
|
PATCHFILES= john-${PORTVERSION}-all-9.diff.gz
|
|
|
|
PATCH_DIST_STRIP= -p2
|
|
|
|
|
2007-06-30 20:47:13 +02:00
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Featureful Unix password cracker
|
1997-03-09 22:34:26 +01:00
|
|
|
|
2005-12-31 05:28:08 +01:00
|
|
|
DATAFILES= all.chr alnum.chr alpha.chr digits.chr lanman.chr password.lst
|
2006-02-18 19:16:16 +01:00
|
|
|
PORTDOCS= CHANGES CONFIG EXAMPLES EXTERNAL FAQ MODES OPTIONS README \
|
|
|
|
RULES CONTACT CREDITS
|
2005-12-31 05:28:08 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
2006-05-04 10:26:22 +02:00
|
|
|
USE_BZIP2= yes
|
2003-01-16 03:31:42 +01:00
|
|
|
|
2006-05-04 10:26:22 +02:00
|
|
|
OSNAME= ${OPSYS:L}
|
2006-05-09 08:18:39 +02:00
|
|
|
CFLAGS+= -DJOHN_SYSTEMWIDE=1 \
|
|
|
|
-DJOHN_SYSTEMWIDE_HOME=\\"${DATADIR}\\" \
|
|
|
|
-DCFG_FULL_NAME=\\"${PREFIX}/etc/${PORTNAME}.conf\\"
|
1998-12-07 09:59:21 +01:00
|
|
|
|
2006-05-13 06:28:02 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-05-13 16:59:11 +02:00
|
|
|
.if ${ARCH} == "i386"
|
2007-06-30 20:47:13 +02:00
|
|
|
. if ${MACHINE_CPU:Msse2}
|
2006-05-13 06:28:02 +02:00
|
|
|
ALL_TARGET= ${OSNAME}-x86-sse2
|
2007-06-30 20:47:13 +02:00
|
|
|
. elif ${MACHINE_CPU:Mmmx}
|
2006-05-09 08:18:39 +02:00
|
|
|
ALL_TARGET= ${OSNAME}-x86-mmx
|
2006-05-13 16:59:11 +02:00
|
|
|
. else
|
|
|
|
ALL_TARGET= ${OSNAME}-x86-any
|
2002-10-05 23:48:44 +02:00
|
|
|
. endif
|
2006-05-13 16:59:11 +02:00
|
|
|
.elif ${ARCH} == "amd64"
|
|
|
|
ALL_TARGET= ${OSNAME}-x86-64
|
2004-08-12 00:10:50 +02:00
|
|
|
.elif ${ARCH} == "alpha"
|
2003-01-16 03:31:42 +01:00
|
|
|
ALL_TARGET= ${OSNAME}-alpha
|
2006-05-13 06:28:02 +02:00
|
|
|
.else
|
2006-05-13 16:59:11 +02:00
|
|
|
ALL_TARGET= generic
|
2006-05-09 08:18:39 +02:00
|
|
|
.endif
|
|
|
|
|
2005-12-31 05:28:08 +01:00
|
|
|
post-patch:
|
2006-05-13 06:28:02 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|= gcc|= ${CC}|g' \
|
2006-05-09 08:18:39 +02:00
|
|
|
-e 's|CFLAGS =.*|CFLAGS = -c ${CFLAGS}|g' \
|
|
|
|
${WRKSRC}/Makefile
|
1998-12-07 09:59:21 +01:00
|
|
|
|
2003-01-16 03:31:42 +01:00
|
|
|
pre-build:
|
2006-05-13 16:59:11 +02:00
|
|
|
@${ECHO}
|
1998-12-07 09:59:21 +01:00
|
|
|
@${ECHO} "Building for ${ALL_TARGET}"
|
2006-05-13 16:59:11 +02:00
|
|
|
@${ECHO}
|
1998-12-07 09:59:21 +01:00
|
|
|
|
1997-03-09 22:34:26 +01:00
|
|
|
do-install:
|
2005-12-31 05:28:08 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/run/john ${PREFIX}/bin
|
|
|
|
.for l in xtract unshadow
|
|
|
|
${LN} -sf ${PREFIX}/bin/john ${PREFIX}/bin/${l}
|
|
|
|
.endfor
|
2006-05-13 06:28:02 +02:00
|
|
|
@${MKDIR} ${DATADIR}
|
2005-12-31 05:28:08 +01:00
|
|
|
.for f in ${DATAFILES}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/run/${f} ${DATADIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/run/john.conf \
|
|
|
|
${PREFIX}/etc/john.conf.default
|
|
|
|
.if !exists(${PREFIX}/etc/john.conf)
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/run/john.conf \
|
|
|
|
${PREFIX}/etc/john.conf
|
|
|
|
.endif
|
|
|
|
|
1997-03-09 22:34:26 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-05-13 06:28:02 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-12-31 05:28:08 +01:00
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
1997-03-09 22:34:26 +01:00
|
|
|
.endif
|
|
|
|
|
1998-12-07 09:59:21 +01:00
|
|
|
.include <bsd.port.post.mk>
|