openbsd-ports/security/crack/Makefile

44 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 1999/04/06 19:44:58 rohee Exp $
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
DISTNAME= crack5.0
PKGNAME= crack-5.0
CATEGORIES= security
NO_CDROM= "CRYPTO: Third party crypto not allowed."
MASTER_SITES= ftp://ftp.ox.ac.uk/pub/comp/security/software/crackers/ \
ftp://ftp.auscert.org.au/pub/coast/mirrors/cert.org/tools/crack/ \
MAINTAINER= ports@OpenBSD.ORG
RESTRICTED= "contains crypto (libdes)"
WRKSRC= ${WRKDIR}/c50a
pre-configure:
.if !defined(USE_DES)
@/bin/mv -f ${WRKSRC}/src/libdes ${WRKSRC}/src/libdes.notused
@/bin/mv -f ${WRKSRC}/src/util/elcid.c ${WRKSRC}/src/util/elcid.c.orig
@${CP} -p ${WRKSRC}/src/util/elcid.c,bsd ${WRKSRC}/src/util/elcid.c
.endif
pre-build:
@(if [ ! -f /usr/share/dict/words ];then \
echo "You may want to install the dict distribution into /usr/share/dict" ; \
echo "to increase the size of the cracking dictionary." ; \
fi)
do-build:
(cd ${WRKSRC} ; ./Crack -makeonly)
(cd ${WRKSRC} ; ./Crack -makedict)
.if !defined(USE_DES)
@#(cd ${WRKSRC} ; ./Crack -fgnd -fmt bsd ${FILESDIR}/pw-md5.test)
.endif
do-install:
@${MKDIR} ${PREFIX}/crack
@${RM} -f ${WRKSRC}/Run/*
@(cd ${WRKSRC} ; tar cf - . | (cd ${PREFIX}/crack; tar xfBp -))
.include <bsd.port.mk>