openbsd-ports/security/john/Makefile

76 lines
2.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.33 2005/09/15 22:52:01 aanriot Exp $
COMMENT= "extremely fast password cracker"
1999-05-31 12:12:22 -04:00
DISTNAME= john-1.6.39
CATEGORIES= security
2002-10-28 12:35:01 -05:00
HOMEPAGE= http://www.openwall.com/john/
# GPL & Public Domain
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-12-27 08:28:33 -05:00
WANTLIB= c m
MASTER_SITES= ${HOMEPAGE}c/
DISTFILES= ${DISTNAME}.tar.gz \
john-1.6.tar.gz
1999-05-31 12:12:22 -04:00
NO_REGRESS= Yes
WRKSRC= ${WRKDIST}/src
MAKE_FLAGS= CC=${CC} AS=${CC} LD=${CC} \
CFLAGS="${CFLAGS} -c"
.if ${MACHINE_ARCH} == "i386"
FLAVORS= no_mmx
FLAVOR?=
.if ${FLAVOR:L:Mno_mmx}
ALL_TARGET= openbsd-x86-any-elf
.else
ALL_TARGET= openbsd-x86-mmx-elf
.endif
.elif ${MACHINE_ARCH} == "sparc"
ALL_TARGET= openbsd-sparc
.elif ${MACHINE_ARCH} == "vax"
ALL_TARGET= openbsd-vax
.elif ${MACHINE_ARCH} == "alpha"
ALL_TARGET= linux-alpha
.elif ${MACHINE_ARCH} == "powerpc"
ALL_TARGET= linux-ppc32
.elif ${MACHINE_ARCH} == "powerpc64"
ALL_TARGET= linux-ppc64
.elif ${MACHINE_ARCH} == "hppa"
ALL_TARGET= hpux-pa-risc-${CC}
.elif ${MACHINE_ARCH} == "sparc64"
ALL_TARGET= "openbsd-sparc64"
1999-05-31 12:12:22 -04:00
.else
ALL_TARGET= generic
1999-05-31 12:12:22 -04:00
.endif
do-configure:
@perl -pi -e "s,%%PREFIX%%,${PREFIX},;" \
-e "s,%%SYSCONFDIR%%,${SYSCONFDIR},;" ${WRKSRC}/params.h
@perl -pi -e 's,%%JOHN%%,${PREFIX}\/share\/john,g;' \
${WRKDIST}/run/john.conf
1999-05-31 12:12:22 -04:00
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/john
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/john
${INSTALL_DATA_DIR} ${PREFIX}/share/john
${INSTALL_PROGRAM} ${WRKDIST}/run/john ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIST}/run/mailer ${PREFIX}/bin
@cd ${PREFIX}/bin && \
ln -sf john unshadow && \
ln -sf john unafs && \
ln -sf john unique
${INSTALL_DATA} ${WRKDIST}/run/john.conf ${PREFIX}/share/examples/john
${INSTALL_DATA} ${WRKDIR}/john-1.6/doc/* ${PREFIX}/share/doc/john
${INSTALL_DATA} ${WRKDIST}/doc/* ${PREFIX}/share/doc/john
${INSTALL_DATA} ${WRKDIR}/john-1.6/run/*.chr ${PREFIX}/share/john
1999-05-31 12:12:22 -04:00
.include <bsd.port.mk>