diff options
author | bouyer <bouyer@pkgsrc.org> | 1999-09-29 14:21:13 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 1999-09-29 14:21:13 +0000 |
commit | bafe8a211c8fb0f2e1cc97fd8adf45a42313e084 (patch) | |
tree | 73477d9b14bfa2cf40b2e3463e2641d509c44f2a /security/crack/Makefile | |
parent | 62f435774c7575800a105636986df3466a295f79 (diff) | |
download | pkgsrc-bafe8a211c8fb0f2e1cc97fd8adf45a42313e084.tar.gz |
Import crack from FreeBSD.
Diffstat (limited to 'security/crack/Makefile')
-rw-r--r-- | security/crack/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/security/crack/Makefile b/security/crack/Makefile new file mode 100644 index 00000000000..41667964aef --- /dev/null +++ b/security/crack/Makefile @@ -0,0 +1,50 @@ +# 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> +# +# $FreeBSD: ports/security/crack/Makefile,v 1.11 1999/09/04 19:24:50 obrien Exp $ +# + +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 + @${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) + @#(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> |