1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/security/crack/Makefile

50 lines
1.4 KiB
Makefile
Raw Normal View History

# 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
#
PORTNAME= crack
PORTVERSION= 5.0
CATEGORIES= security
MASTER_SITES= ftp://ftp.cerias.purdue.edu/pub/tools/unix/pwdutils/crack/ \
2004-04-10 17:26:55 +00:00
${MASTER_SITE_PACKETSTORM}
MASTER_SITE_SUBDIR= Crackers/crack
2004-04-10 17:26:55 +00:00
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
2003-02-20 19:00:52 +00:00
COMMENT= The "Sensible" Unix Password Cracker
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
1997-02-02 02:22:47 +00:00
@${CP} -p ${WRKSRC}/src/util/elcid.c,bsd ${WRKSRC}/src/util/elcid.c
.endif
@${ECHO_CMD} "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile
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." ; \
fi)
do-build:
2000-02-13 03:25:05 +00:00
cd ${WRKSRC} ; ./Crack -makeonly
cd ${WRKSRC} ; ./Crack -makedict
.if !defined(WITH_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>