2004-04-16 13:26:16 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2004/04/16 17:26:16 naddy Exp $
|
2001-05-05 23:45:31 -04:00
|
|
|
|
2003-09-26 13:57:38 -04:00
|
|
|
COMMENT= "extremely fast password cracker"
|
1999-05-31 12:12:22 -04:00
|
|
|
|
2004-04-16 13:26:16 -04:00
|
|
|
DISTNAME= john-1.6.37
|
2003-09-26 13:57:38 -04:00
|
|
|
CATEGORIES= security
|
2002-10-28 12:35:01 -05:00
|
|
|
|
2003-09-26 13:57:38 -04:00
|
|
|
HOMEPAGE= http://www.openwall.com/john/
|
2000-09-12 06:38:51 -04:00
|
|
|
|
2003-09-26 13:57:38 -04:00
|
|
|
# GPL & Public Domain
|
2000-09-12 06:38:51 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2004-04-16 13:26:16 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}a/
|
2003-04-05 22:44:11 -05:00
|
|
|
|
2003-09-26 13:57:38 -04:00
|
|
|
DISTFILES= ${DISTNAME}.tar.gz \
|
2003-09-27 02:47:52 -04:00
|
|
|
john-1.6.tar.gz
|
1999-05-31 12:12:22 -04:00
|
|
|
|
2003-09-26 13:57:38 -04:00
|
|
|
NO_REGRESS= Yes
|
2000-10-31 09:53:58 -05:00
|
|
|
|
2003-09-26 13:57:38 -04:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME}
|
|
|
|
WRKSRC= ${WRKDIST}/src
|
|
|
|
OLDJOHN= ${WRKDIR}/john-1.6
|
2004-04-16 13:26:16 -04:00
|
|
|
MAKE_FLAGS= CC=${CC} AS=${CC} LD=${CC} \
|
|
|
|
CFLAGS="${CFLAGS} -c"
|
2000-10-31 09:53:58 -05:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2004-04-16 13:26:16 -04:00
|
|
|
ALL_TARGET= openbsd-x86-any-elf
|
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"
|
2003-09-26 13:57:38 -04:00
|
|
|
ALL_TARGET= linux-alpha
|
|
|
|
.elif ${MACHINE_ARCH} == "powerpc"
|
|
|
|
ALL_TARGET= linux-ppc
|
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
|
|
|
|
|
|
|
|
do-install:
|
2000-09-12 06:38:51 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/john
|
1999-11-29 11:40:26 -05: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
|
2003-09-26 13:57:38 -04:00
|
|
|
${INSTALL_DATA} ${OLDJOHN}/run/* ${PREFIX}/share/john
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/run/* ${PREFIX}/share/john
|
|
|
|
${INSTALL_DATA} ${OLDJOHN}/doc/* ${PREFIX}/share/doc/john
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/doc/* ${PREFIX}/share/doc/john
|
1999-05-31 12:12:22 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|