summaryrefslogtreecommitdiff
path: root/security/crack/Makefile
blob: 5f63995195912887c0fdb4cb465b1984cf76efc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ex:ts=8
# Ports collection makefile for:  Crack
# Date created:			  12 Jan 1997
# Whom:				  David O'Brien <obrien@FreeBSD.org>
#				  & Yukihiro Nakai <nakai@mlab.t.u-tokyo.ac.jp>
#
# $FreeBSD$
#

PORTNAME=	crack
PORTVERSION=	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/
DISTNAME=	${PORTNAME}${PORTVERSION}	

MAINTAINER=	obrien@FreeBSD.org

RESTRICTED=	"contains crypto (libdes)"
WRKSRC=		${WRKDIR}/c50a

pre-configure:
.if !defined(WITH_DES)
	@${MV} -f ${WRKSRC}/src/libdes ${WRKSRC}/src/libdes.notused
	@${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
	@${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(WITH_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>