9b052163d0
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
90 lines
2.4 KiB
Makefile
90 lines
2.4 KiB
Makefile
# Ports collection makefile for: John the Ripper
|
|
# Date created: Sun Mar 09, 1997
|
|
# Whom: David O'Brien <obrien@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= john
|
|
PORTVERSION= 1.7.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.openwall.com/john/f/ \
|
|
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}/
|
|
|
|
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
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Featureful Unix password cracker
|
|
|
|
DATAFILES= all.chr alnum.chr alpha.chr digits.chr lanman.chr password.lst
|
|
PORTDOCS= CHANGES CONFIG EXAMPLES EXTERNAL FAQ MODES OPTIONS README \
|
|
RULES CONTACT CREDITS
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
USE_BZIP2= yes
|
|
|
|
OSNAME= ${OPSYS:L}
|
|
CFLAGS+= -DJOHN_SYSTEMWIDE=1 \
|
|
-DJOHN_SYSTEMWIDE_HOME=\\"${DATADIR}\\" \
|
|
-DCFG_FULL_NAME=\\"${PREFIX}/etc/${PORTNAME}.conf\\"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
. if ${MACHINE_CPU:Msse2}
|
|
ALL_TARGET= ${OSNAME}-x86-sse2
|
|
. elif ${MACHINE_CPU:Mmmx}
|
|
ALL_TARGET= ${OSNAME}-x86-mmx
|
|
. else
|
|
ALL_TARGET= ${OSNAME}-x86-any
|
|
. endif
|
|
.elif ${ARCH} == "amd64"
|
|
ALL_TARGET= ${OSNAME}-x86-64
|
|
.elif ${ARCH} == "alpha"
|
|
ALL_TARGET= ${OSNAME}-alpha
|
|
.else
|
|
ALL_TARGET= generic
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|= gcc|= ${CC}|g' \
|
|
-e 's|CFLAGS =.*|CFLAGS = -c ${CFLAGS}|g' \
|
|
${WRKSRC}/Makefile
|
|
|
|
pre-build:
|
|
@${ECHO}
|
|
@${ECHO} "Building for ${ALL_TARGET}"
|
|
@${ECHO}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/run/john ${PREFIX}/bin
|
|
.for l in xtract unshadow
|
|
${LN} -sf ${PREFIX}/bin/john ${PREFIX}/bin/${l}
|
|
.endfor
|
|
@${MKDIR} ${DATADIR}
|
|
.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
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|