1997-02-02 01:28:04 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: Crack
|
2000-02-13 03:25:05 +00:00
|
|
|
# Date created: 12 Jan 1997
|
|
|
|
# Whom: David O'Brien <obrien@FreeBSD.org>
|
|
|
|
# & Yukihiro Nakai <nakai@mlab.t.u-tokyo.ac.jp>
|
1997-02-06 07:14:48 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1997-02-06 07:14:48 +00:00
|
|
|
#
|
1997-02-02 01:28:04 +00:00
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= crack
|
2000-04-21 08:19:33 +00:00
|
|
|
PORTVERSION= 5.0
|
1997-02-02 01:28:04 +00:00
|
|
|
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/
|
2000-04-09 18:34:06 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
1997-02-02 01:28:04 +00:00
|
|
|
|
2000-02-13 03:25:05 +00:00
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
1997-02-02 01:28:04 +00:00
|
|
|
|
|
|
|
RESTRICTED= "contains crypto (libdes)"
|
|
|
|
WRKSRC= ${WRKDIR}/c50a
|
|
|
|
|
|
|
|
pre-configure:
|
2000-04-17 00:19:02 +00:00
|
|
|
.if !defined(WITH_DES)
|
1999-08-28 02:42:41 +00:00
|
|
|
@${MV} -f ${WRKSRC}/src/libdes ${WRKSRC}/src/libdes.notused
|
|
|
|
@${MV} -f ${WRKSRC}/src/util/elcid.c ${WRKSRC}/src/util/elcid.c.orig
|
1997-02-02 02:22:47 +00:00
|
|
|
@${CP} -p ${WRKSRC}/src/util/elcid.c,bsd ${WRKSRC}/src/util/elcid.c
|
1997-02-02 01:28:04 +00:00
|
|
|
.endif
|
1999-08-27 22:30:39 +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 \
|
2000-02-13 03:25:05 +00:00
|
|
|
${ECHO_MSG} "You may want to install the dict distribution into /usr/share/dict" ; \
|
|
|
|
${ECHO_MSG} "to increase the size of the cracking dictionary." ; \
|
1997-02-02 01:28:04 +00:00
|
|
|
fi)
|
|
|
|
|
|
|
|
do-build:
|
2000-02-13 03:25:05 +00:00
|
|
|
cd ${WRKSRC} ; ./Crack -makeonly
|
|
|
|
cd ${WRKSRC} ; ./Crack -makedict
|
2000-04-17 00:19:02 +00:00
|
|
|
.if !defined(WITH_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/*
|
2000-02-13 03:25:05 +00:00
|
|
|
@cd ${WRKSRC} ; tar cf - . | (cd ${PREFIX}/crack; tar xfBp -)
|
1997-02-02 01:28:04 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|