1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/security/crack/Makefile

51 lines
1.5 KiB
Makefile
Raw Normal View History

# 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
#
1999-08-31 01:53:22 +00:00
# $FreeBSD$
1997-02-06 07:14:48 +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/ \
ftp://ftp.auscert.org.au/pub/coast/mirrors/cert.org/tools/crack/ \
ftp://ftp.riken.go.jp/pub/net/cert_security_tools/crack/
MAINTAINER= obrien@FreeBSD.org
RESTRICTED= "contains crypto (libdes)"
WRKSRC= ${WRKDIR}/c50a
pre-configure:
.if !defined(USE_DES)
@${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
.endif
@${ECHO} "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile
pre-build:
@(if [ ! -f /usr/share/dict/words ];then \
${ECHO_MSG} "You may want to install the dict distribution into /usr/share/dict" ; \
${ECHO_MSG} "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)
.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 -))
.include <bsd.port.mk>