summaryrefslogtreecommitdiff
path: root/security/crack/Makefile
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1997-02-02 01:28:04 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1997-02-02 01:28:04 +0000
commit7117a1d4ad0f84d5e960408aac36730a062a5510 (patch)
treea50efab612a64dd9a07ec0af8020b35aebf714b4 /security/crack/Makefile
parentRemove gratuitous version softlinking, and add libkaffe_agent to (diff)
This is Alec Muffett's password guessing program.
This version (5.0) supports the 4.4BSD password format, and also FreeBSD's MD5 style passwords.
Notes
Notes: svn path=/head/; revision=5489
Diffstat (limited to 'security/crack/Makefile')
-rw-r--r--security/crack/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/security/crack/Makefile b/security/crack/Makefile
new file mode 100644
index 000000000000..c905d54d6b64
--- /dev/null
+++ b/security/crack/Makefile
@@ -0,0 +1,49 @@
+# 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>
+
+DISTNAME= crack5.0
+PKGNAME= crack-5.0
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.win.tue.nl/pub/security/ \
+ ftp://ftp.lerc.nasa.gov/security/ \
+ ftp://ftp.ox.ac.uk/pub/comp/security/software/crackers/ \
+ ftp://ftp.info.au/security/eindhoven/ \
+ ftp://ftp.iis.u-tokyo.ac.jp/pub/security/
+
+MAINTAINER= obrien@FreeBSD.org
+
+RESTRICTED= "contains crypto (libdes)"
+WRKSRC= ${WRKDIR}/c50a
+
+pre-configure:
+.if !defined(USE_DES)
+ /bin/mv -f ${WRKSRC}/src/libdes ${WRKSRC}/src/libdes.orig
+ /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
+ echo "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile
+.endif
+
+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)
+ #(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>