2011-01-07 11:26:26 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.42 2011/01/07 16:26:26 benoit Exp $
|
2001-05-05 23:45:31 -04:00
|
|
|
|
2011-01-07 11:26:26 -05:00
|
|
|
COMMENT = extremely fast password cracker
|
1999-05-31 12:12:22 -04:00
|
|
|
|
2011-01-07 11:26:26 -05:00
|
|
|
DISTNAME = john-1.7.6
|
2009-09-24 06:32:40 -04:00
|
|
|
CATEGORIES = security
|
2002-10-28 12:35:01 -05:00
|
|
|
|
2009-09-24 06:32:40 -04:00
|
|
|
HOMEPAGE = http://www.openwall.com/john/
|
2000-09-12 06:38:51 -04:00
|
|
|
|
2009-09-24 06:32:40 -04:00
|
|
|
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
|
2006-01-05 23:26:09 -05:00
|
|
|
|
2003-09-26 13:57:38 -04:00
|
|
|
# GPL & Public Domain
|
2009-09-24 06:32:40 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2009-03-08 07:57:53 -04:00
|
|
|
|
2009-09-24 06:32:40 -04:00
|
|
|
WANTLIB = c
|
2000-09-12 06:38:51 -04:00
|
|
|
|
2009-09-24 06:32:40 -04:00
|
|
|
MASTER_SITES = ${HOMEPAGE}/g/
|
1999-05-31 12:12:22 -04:00
|
|
|
|
2009-09-24 06:32:40 -04:00
|
|
|
WRKSRC = ${WRKDIST}/src
|
2000-10-31 09:53:58 -05:00
|
|
|
|
2009-09-24 06:32:40 -04:00
|
|
|
MAKE_FLAGS = CC=${CC} AS=${CC} LD=${CC} \
|
2006-01-05 23:26:09 -05:00
|
|
|
CFLAGS="${CFLAGS} -c" LDFLAGS="${LDFLAGS}"
|
2000-10-31 09:53:58 -05:00
|
|
|
|
2009-09-24 06:32:40 -04:00
|
|
|
REGRESS_TARGET = check
|
|
|
|
|
2000-10-31 09:53:58 -05:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2006-01-05 23:26:09 -05:00
|
|
|
ALL_TARGET= openbsd-x86-mmx
|
|
|
|
.elif ${MACHINE_ARCH} == "amd64"
|
|
|
|
ALL_TARGET= openbsd-x86-64
|
2003-09-26 13:57:38 -04:00
|
|
|
.elif ${MACHINE_ARCH} == "sparc"
|
|
|
|
ALL_TARGET= openbsd-sparc
|
|
|
|
.elif ${MACHINE_ARCH} == "vax"
|
|
|
|
ALL_TARGET= openbsd-vax
|
2000-10-31 09:53:58 -05:00
|
|
|
.elif ${MACHINE_ARCH} == "alpha"
|
2006-01-05 23:26:09 -05:00
|
|
|
ALL_TARGET= openbsd-alpha
|
2003-09-26 13:57:38 -04:00
|
|
|
.elif ${MACHINE_ARCH} == "powerpc"
|
2006-01-05 23:26:09 -05:00
|
|
|
ALL_TARGET= openbsd-ppc32
|
2005-05-31 04:08:52 -04:00
|
|
|
.elif ${MACHINE_ARCH} == "powerpc64"
|
2006-01-05 23:26:09 -05:00
|
|
|
ALL_TARGET= openbsd-ppc64
|
2005-05-31 04:08:52 -04:00
|
|
|
.elif ${MACHINE_ARCH} == "hppa"
|
2006-01-05 23:26:09 -05:00
|
|
|
ALL_TARGET= openbsd-pa-risc
|
2005-05-31 04:08:52 -04:00
|
|
|
.elif ${MACHINE_ARCH} == "sparc64"
|
2006-01-05 23:26:09 -05:00
|
|
|
ALL_TARGET= openbsd-sparc64
|
1999-05-31 12:12:22 -04:00
|
|
|
.else
|
2003-09-26 13:57:38 -04:00
|
|
|
ALL_TARGET= generic
|
1999-05-31 12:12:22 -04:00
|
|
|
.endif
|
|
|
|
|
2005-05-31 04:08:52 -04:00
|
|
|
do-configure:
|
2010-07-17 18:46:00 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/params.h
|
2005-05-31 04:08:52 -04:00
|
|
|
|
1999-05-31 12:12:22 -04:00
|
|
|
do-install:
|
2006-01-05 23:26:09 -05:00
|
|
|
@grep -h -v '^#!comment:' ${WRKDIST}/run/password.lst \
|
|
|
|
/usr/share/dict/words | \
|
|
|
|
${WRKDIST}/run/unique ${WRKDIST}/run/words.lst
|
2000-09-12 06:38:51 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/john
|
2005-05-31 04:08:52 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/john
|
2005-09-06 16:20:26 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/john
|
2003-09-26 13:57:38 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKDIST}/run/john ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIST}/run/mailer ${PREFIX}/bin
|
|
|
|
@cd ${PREFIX}/bin && \
|
|
|
|
ln -sf john unshadow && \
|
2000-09-12 06:38:51 -04:00
|
|
|
ln -sf john unafs && \
|
|
|
|
ln -sf john unique
|
2005-05-31 04:08:52 -04:00
|
|
|
${INSTALL_DATA} ${WRKDIST}/run/john.conf ${PREFIX}/share/examples/john
|
2003-09-26 13:57:38 -04:00
|
|
|
${INSTALL_DATA} ${WRKDIST}/doc/* ${PREFIX}/share/doc/john
|
2006-01-05 23:26:09 -05:00
|
|
|
${INSTALL_DATA} ${WRKDIST}/run/*.chr ${PREFIX}/share/john
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/run/words.lst ${PREFIX}/share/john/password.lst
|
1999-05-31 12:12:22 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|