# Ports collection makefile for: john # Date created: Sun Mar 09, 1997 # Whom: David O'Brien (obrien@FreeBSD.org) # # $FreeBSD$ # PORTNAME= john PORTVERSION= 1.7 PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://www.openwall.com/john/d/ \ ftp://ftp.ru.openwall.com/pub/projects/john/ MAINTAINER= ports@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 .include OSNAME= ${OPSYS:S/F/f/:S/N/n/:S/O/o/:S/B/b/:S/S/s/:S/D/d/} ALL_TARGET= generic .if ${ARCH} == "i386" . if ${MACHINE_CPU:Mmmx} ALL_TARGET= ${OSNAME}-x86-mmx . else ALL_TARGET= ${OSNAME}-x86-any . endif .elif ${ARCH} == "alpha" ALL_TARGET= ${OSNAME}-alpha .endif post-patch: @${REINPLACE_CMD} -e 's|$$JOHN|${DATADIR}|g' \ ${WRKDIR}/${DISTNAME}/run/john.conf @${REINPLACE_CMD} -e \ 's|%%PREFIX%%|${PREFIX}|g; s|%%DATADIR%%|${DATADIR}|g'\ ${WRKSRC}/params.h pre-build: @${ECHO} "Building for ${ALL_TARGET}" 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