2010-05-22 13:08:09 +02:00
|
|
|
# New ports collection makefile for: John the Ripper
|
2007-06-30 20:47:13 +02:00
|
|
|
# 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
|
2010-06-22 04:44:28 +02:00
|
|
|
PORTVERSION= 1.7.6
|
2010-11-06 14:33:56 +01:00
|
|
|
PORTREVISION= 1
|
1997-03-09 22:34:26 +01:00
|
|
|
CATEGORIES= security
|
2010-05-22 13:08:09 +02:00
|
|
|
MASTER_SITES= http://www.openwall.com/john/g/ \
|
|
|
|
http://mirrors.kernel.org/openwall/projects/john/${PORTVERSION}/ \
|
|
|
|
http://distro.ibiblio.org/pub/linux/distributions/openwall/projects/john/${PORTVERSION}/ \
|
|
|
|
http://gd.tuwien.ac.at/opsys/linux/openwall/projects/john/${PORTVERSION}/
|
1997-03-09 22:34:26 +01:00
|
|
|
|
2010-05-22 13:08:09 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITES:H:H:S/$/\/contrib\//}
|
2010-11-06 14:33:56 +01:00
|
|
|
PATCHFILES= john-${PORTVERSION}-jumbo-7.diff.gz
|
2010-05-22 13:08:09 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
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
|
|
|
|
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
|
|
|
|
2006-05-04 10:26:22 +02:00
|
|
|
USE_BZIP2= yes
|
2010-05-22 13:08:09 +02:00
|
|
|
BUILD_WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
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
|
|
|
|
2010-05-22 13:08:09 +02:00
|
|
|
PORTDOCS= CHANGES CONFIG EXAMPLES EXTERNAL FAQ MODES OPTIONS README \
|
|
|
|
RULES CONTACT CREDITS
|
|
|
|
|
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
|
|
|
|
|
2010-06-04 04:23:30 +02:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64
|
|
|
|
.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' \
|
2010-05-22 13:08:09 +02:00
|
|
|
${WRKSRC}/src/Makefile
|
|
|
|
@${REINPLACE_CMD} -i '' -e 's|/usr/bin|${LOCALBASE}/bin|' \
|
|
|
|
${WRKSRC}/run/*.rb
|
1998-12-07 09:59:21 +01:00
|
|
|
|
2003-01-16 03:31:42 +01:00
|
|
|
pre-build:
|
2010-06-22 04:44:28 +02:00
|
|
|
@${ECHO_CMD}
|
|
|
|
@${ECHO_CMD} "Building for ${ALL_TARGET}"
|
|
|
|
@${ECHO_CMD}
|
1998-12-07 09:59:21 +01:00
|
|
|
|
1997-03-09 22:34:26 +01:00
|
|
|
do-install:
|
2010-05-22 13:08:09 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/run/john ${PREFIX}/bin
|
|
|
|
${LN} -sf john ${PREFIX}/bin/xtract
|
|
|
|
${LN} -sf john ${PREFIX}/bin/unshadow
|
2006-05-13 06:28:02 +02:00
|
|
|
@${MKDIR} ${DATADIR}
|
2010-05-22 13:08:09 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/run/*.??? ${DATADIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/run/*.?? ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/run/john.conf \
|
2005-12-31 05:28:08 +01:00
|
|
|
${PREFIX}/etc/john.conf.default
|
|
|
|
.if !exists(${PREFIX}/etc/john.conf)
|
2010-05-22 13:08:09 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/run/john.conf \
|
2005-12-31 05:28:08 +01:00
|
|
|
${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}
|
2010-05-22 13:08:09 +02:00
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
|
1997-03-09 22:34:26 +01:00
|
|
|
.endif
|
|
|
|
|
1998-12-07 09:59:21 +01:00
|
|
|
.include <bsd.port.post.mk>
|