2007-09-15 19:29:57 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.26 2007/09/15 23:29:58 merdely Exp $
|
1999-04-06 15:44:57 -04:00
|
|
|
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
|
1997-11-19 19:18:15 -05:00
|
|
|
|
2007-09-15 19:29:57 -04:00
|
|
|
COMMENT= sensible unix password cracker
|
2001-05-05 23:45:31 -04:00
|
|
|
|
1997-11-19 19:18:15 -05:00
|
|
|
DISTNAME= crack5.0
|
2006-06-20 08:59:12 -04:00
|
|
|
PKGNAME= crack-5.0p2
|
1997-11-19 19:18:15 -05:00
|
|
|
CATEGORIES= security
|
2001-11-19 16:48:37 -05:00
|
|
|
|
2006-06-20 08:59:12 -04:00
|
|
|
HOMEPAGE= http://www.crypticide.com/users/alecm/security/
|
2001-11-19 16:48:37 -05:00
|
|
|
|
|
|
|
MASTER_SITES= ftp://ftp.cerias.purdue.edu/pub/tools/unix/pwdutils/crack/ \
|
2002-05-13 05:06:08 -04:00
|
|
|
${MASTER_SITE_PACKETSTORM:=Crackers/crack/}
|
1997-11-19 19:18:15 -05:00
|
|
|
|
2003-11-18 14:07:53 -05:00
|
|
|
# Artistic
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-03-22 23:28:18 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2003-11-18 14:07:53 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2000-03-22 23:28:18 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-27 08:28:33 -05:00
|
|
|
WANTLIB= c
|
2000-03-22 23:28:18 -05:00
|
|
|
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/c50a
|
1997-11-19 19:18:15 -05:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
.if !defined(USE_DES)
|
|
|
|
@/bin/mv -f ${WRKSRC}/src/libdes ${WRKSRC}/src/libdes.notused
|
|
|
|
@/bin/mv -f ${WRKSRC}/src/util/elcid.c ${WRKSRC}/src/util/elcid.c.orig
|
2000-02-10 20:09:59 -05:00
|
|
|
@cp -p ${WRKSRC}/src/util/elcid.c,bsd ${WRKSRC}/src/util/elcid.c
|
1997-11-19 19:18:15 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@(if [ ! -f /usr/share/dict/words ];then \
|
2003-11-18 14:07:53 -05:00
|
|
|
echo "You may want to install the miscXX.tgz fileset" ; \
|
1997-11-19 19:18:15 -05:00
|
|
|
echo "to increase the size of the cracking dictionary." ; \
|
|
|
|
fi)
|
|
|
|
|
|
|
|
do-build:
|
2001-03-12 10:20:13 -05:00
|
|
|
(cd ${WRKSRC} ; CC="${CC}" CFLAGS="${CFLAGS}" ./Crack -makeonly)
|
1997-11-19 19:18:15 -05:00
|
|
|
(cd ${WRKSRC} ; ./Crack -makedict)
|
|
|
|
.if !defined(USE_DES)
|
|
|
|
@#(cd ${WRKSRC} ; ./Crack -fgnd -fmt bsd ${FILESDIR}/pw-md5.test)
|
|
|
|
.endif
|
|
|
|
|
2001-11-19 16:48:37 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1997-11-19 19:18:15 -05:00
|
|
|
do-install:
|
2001-03-22 17:06:35 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/crack
|
2000-02-10 20:09:59 -05:00
|
|
|
@rm -f ${WRKSRC}/Run/*
|
2003-11-18 14:07:53 -05:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/openbsd2spf ${WRKSRC}/scripts
|
1997-11-19 19:18:15 -05:00
|
|
|
@(cd ${WRKSRC} ; tar cf - . | (cd ${PREFIX}/crack; tar xfBp -))
|
2005-09-25 05:22:49 -04:00
|
|
|
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/crack
|
2003-11-18 14:07:53 -05:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/crack
|
|
|
|
@perl -pi -e "s,%%TRUEPREFIX%%,${TRUEPREFIX}," ${PREFIX}/crack/README.OpenBSD
|
|
|
|
@perl -pi -e "s,^make.*,# make removed for runtime," ${PREFIX}/crack/Crack
|
1997-11-19 19:18:15 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|