openbsd-ports/security/crack/Makefile

57 lines
1.7 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.26 2007/09/15 23:29:58 merdely Exp $
# Original from: Ejovi Nuwere <ejovi@ejovi.net>
1997-11-19 19:18:15 -05:00
COMMENT= sensible unix password cracker
1997-11-19 19:18:15 -05:00
DISTNAME= crack5.0
PKGNAME= crack-5.0p2
1997-11-19 19:18:15 -05:00
CATEGORIES= security
HOMEPAGE= http://www.crypticide.com/users/alecm/security/
MASTER_SITES= ftp://ftp.cerias.purdue.edu/pub/tools/unix/pwdutils/crack/ \
${MASTER_SITE_PACKETSTORM:=Crackers/crack/}
1997-11-19 19:18:15 -05:00
# Artistic
PERMIT_PACKAGE_CDROM= Yes
2000-03-22 23:28:18 -05:00
PERMIT_PACKAGE_FTP= Yes
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
@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 \
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
NO_REGRESS= Yes
1997-11-19 19:18:15 -05:00
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/crack
@rm -f ${WRKSRC}/Run/*
@${INSTALL_SCRIPT} ${FILESDIR}/openbsd2spf ${WRKSRC}/scripts
1997-11-19 19:18:15 -05:00
@(cd ${WRKSRC} ; tar cf - . | (cd ${PREFIX}/crack; tar xfBp -))
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/crack
${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>