1997-02-02 01:28:04 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: Crack
|
|
|
|
# Version required: 5.0
|
|
|
|
# Date created: 12 Jan 1997
|
|
|
|
# Whom: David O'Brien <obrien@FreeBSD.org>
|
|
|
|
# Whom: Yukihiro Nakai <nakai@mlab.t.u-tokyo.ac.jp>
|
1997-02-06 07:14:48 +00:00
|
|
|
#
|
1998-10-10 03:42:59 +00:00
|
|
|
# $Id: Makefile,v 1.6 1997/11/26 01:42:55 obrien Exp $
|
1997-02-06 07:14:48 +00:00
|
|
|
#
|
1997-02-02 01:28:04 +00:00
|
|
|
|
|
|
|
DISTNAME= crack5.0
|
|
|
|
PKGNAME= crack-5.0
|
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= ftp://ftp.win.tue.nl/pub/security/ \
|
|
|
|
ftp://ftp.ox.ac.uk/pub/comp/security/software/crackers/ \
|
1997-06-09 15:13:41 +00:00
|
|
|
ftp://ftp.auscert.org.au/pub/coast/mirrors/cert.org/tools/crack/ \
|
|
|
|
ftp://ftp.riken.go.jp/pub/net/cert_security_tools/crack/
|
1997-02-02 01:28:04 +00:00
|
|
|
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
|
|
|
|
|
|
RESTRICTED= "contains crypto (libdes)"
|
|
|
|
WRKSRC= ${WRKDIR}/c50a
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if !defined(USE_DES)
|
1997-02-02 11:11:51 +00:00
|
|
|
@/bin/mv -f ${WRKSRC}/src/libdes ${WRKSRC}/src/libdes.notused
|
1997-02-02 02:22:47 +00:00
|
|
|
@/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
|
1997-02-02 01:28:04 +00:00
|
|
|
.endif
|
1998-10-10 03:42:59 +00:00
|
|
|
@echo "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile
|
1997-02-02 01:28:04 +00:00
|
|
|
|
|
|
|
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)
|
1997-02-02 02:22:47 +00:00
|
|
|
@#(cd ${WRKSRC} ; ./Crack -fgnd -fmt bsd ${FILESDIR}/pw-md5.test)
|
1997-02-02 01:28:04 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
1997-02-02 02:22:47 +00:00
|
|
|
@${MKDIR} ${PREFIX}/crack
|
|
|
|
@${RM} -f ${WRKSRC}/Run/*
|
|
|
|
@(cd ${WRKSRC} ; tar cf - . | (cd ${PREFIX}/crack; tar xfBp -))
|
1997-02-02 01:28:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|