2002-03-21 16:25:50 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2002/03/21 21:25:51 espie Exp $
|
2001-05-05 23:45:31 -04:00
|
|
|
|
|
|
|
COMMENT= "extremely fast password cracker"
|
1999-05-31 12:12:22 -04:00
|
|
|
|
|
|
|
DISTNAME= john-1.6
|
|
|
|
CATEGORIES= security
|
2002-03-21 16:25:50 -05:00
|
|
|
NEED_VERSION= 1.515
|
1999-11-29 11:40:26 -05:00
|
|
|
MASTER_SITES= http://www.openwall.com/john/ \
|
|
|
|
http://www.false.com/security/john/ \
|
1999-05-31 12:12:22 -04:00
|
|
|
ftp://ftp.false.com/pub/security/john/
|
|
|
|
|
2000-10-22 10:02:46 -04:00
|
|
|
MAINTAINER= Dug Song <dugsong@monkey.org>
|
2000-09-12 06:38:51 -04:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MAKE_FLAGS= CC="${CC}" LD="${CC}" \
|
2000-10-31 09:53:58 -05:00
|
|
|
CFLAGS="-c -Wall ${CFLAGS} -fomit-frame-pointer"
|
1999-05-31 12:12:22 -04:00
|
|
|
|
2001-08-29 22:53:50 -04:00
|
|
|
FLAVORS= k6
|
2000-10-31 09:53:58 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "k6"
|
2001-08-29 22:53:50 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2000-10-31 09:53:58 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
. if ${FLAVOR:L} == "k6"
|
1999-05-31 12:12:22 -04:00
|
|
|
ALL_TARGET= openbsd-x86-k6
|
2000-10-31 09:53:58 -05:00
|
|
|
. else
|
1999-05-31 12:12:22 -04:00
|
|
|
ALL_TARGET= openbsd-x86-any
|
2000-10-31 09:53:58 -05:00
|
|
|
. endif
|
|
|
|
.elif ${MACHINE_ARCH} == "alpha"
|
1999-05-31 12:12:22 -04:00
|
|
|
ALL_TARGET= linux-alpha
|
|
|
|
.else
|
|
|
|
ALL_TARGET= generic
|
|
|
|
.endif
|
|
|
|
|
2000-09-12 06:38:51 -04:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
|
2000-10-31 09:53:58 -05:00
|
|
|
do-configure:
|
2001-08-29 22:53:50 -04:00
|
|
|
@cd ${WRKDIST} && \
|
|
|
|
sed -e 's,@JOHN_HOME@,${PREFIX}/share/john,' < params.h > \
|
|
|
|
params.h.new && mv -f params.h.new params.h
|
2000-10-31 09:53:58 -05:00
|
|
|
|
1999-05-31 12:12:22 -04:00
|
|
|
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
|
2000-09-12 06:38:51 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/../run/john ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/../run/mailer ${PREFIX}/bin
|
|
|
|
@cd ${PREFIX}/bin && ln -sf john unshadow && \
|
|
|
|
ln -sf john unafs && \
|
|
|
|
ln -sf john unique
|
1999-11-29 11:40:26 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../run/* ${PREFIX}/share/john
|
2000-09-12 06:38:51 -04:00
|
|
|
@sed -e s#~/#${PREFIX}/share/john/#g ${WRKSRC}/../run/john.ini > \
|
1999-11-29 11:40:26 -05:00
|
|
|
${PREFIX}/share/john/john.ini
|
1999-05-31 12:12:22 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/../doc/* ${PREFIX}/share/doc/john
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|