2000-02-10 20:09:59 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2000/02/11 01:10:12 espie Exp $
|
1999-04-06 15:44:57 -04:00
|
|
|
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
|
1997-11-19 19:18:15 -05:00
|
|
|
|
|
|
|
DISTNAME= crack5.0
|
|
|
|
PKGNAME= crack-5.0
|
|
|
|
CATEGORIES= security
|
1998-04-12 17:40:56 -04:00
|
|
|
NO_CDROM= "CRYPTO: Third party crypto not allowed."
|
|
|
|
|
1999-03-12 17:04:18 -05:00
|
|
|
MASTER_SITES= ftp://ftp.ox.ac.uk/pub/comp/security/software/crackers/ \
|
1997-11-19 19:18:15 -05:00
|
|
|
ftp://ftp.auscert.org.au/pub/coast/mirrors/cert.org/tools/crack/ \
|
2000-02-10 19:37:15 -05:00
|
|
|
NEED_VERSION= 1.191
|
1997-11-19 19:18:15 -05:00
|
|
|
|
1999-04-06 15:44:57 -04:00
|
|
|
MAINTAINER= ports@OpenBSD.ORG
|
1997-11-19 19:18:15 -05:00
|
|
|
|
|
|
|
RESTRICTED= "contains crypto (libdes)"
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/c50a
|
1997-11-19 19:18:15 -05:00
|
|
|
|
|
|
|
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
|
2000-02-10 20:09:59 -05:00
|
|
|
@cp -p ${WRKSRC}/src/util/elcid.c,bsd ${WRKSRC}/src/util/elcid.c
|
1997-11-19 19:18:15 -05:00
|
|
|
.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:
|
2000-02-10 20:09:59 -05:00
|
|
|
@mkdir -p ${PREFIX}/crack
|
|
|
|
@rm -f ${WRKSRC}/Run/*
|
1997-11-19 19:18:15 -05:00
|
|
|
@(cd ${WRKSRC} ; tar cf - . | (cd ${PREFIX}/crack; tar xfBp -))
|
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|