2000-11-05 02:38:51 +01:00
|
|
|
# New ports collection makefile for: l0phtcrack
|
|
|
|
# Date created: 2000-10-31
|
|
|
|
# Whom: Trevor Johnson
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= l0phtcrack
|
|
|
|
PORTVERSION= 1.5
|
|
|
|
CATEGORIES= security
|
2002-05-21 11:01:09 +02:00
|
|
|
MASTER_SITES= http://www.atstake.com/research/lc/dist/
|
2000-11-05 02:38:51 +01:00
|
|
|
DISTNAME= lcsrc
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
2003-10-12 06:16:08 +02:00
|
|
|
COMMENT= Cracks SAMBA or Windows NT passwords
|
2000-11-05 02:38:51 +01:00
|
|
|
|
|
|
|
DOCDIR= share/doc/${PORTNAME}
|
|
|
|
NO_PACKAGE= "uses GNU getopt with BSDish-licensed code from OpenSSL"
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
USE_ZIP= yes
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${RM} ${WRKDIR}/*exe
|
|
|
|
${PERL} -pi -e "s:\r::g" ${WRKDIR}/*
|
|
|
|
${PERL} -pi -e "s:ommited:omitted:g" ${WRKDIR}/util.c
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKDIR} && ${CC} ${CFLAGS} -DMPU8086 *.c -o lc_CLI
|
|
|
|
|
|
|
|
pre-install:
|
2002-01-29 12:58:52 +01:00
|
|
|
${ECHO_CMD} bin/lc_CLI > ${PLIST}
|
2000-11-05 02:38:51 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
for i in `find ${WRKDIR} -name '*txt'`; \
|
2002-01-29 12:58:52 +01:00
|
|
|
do ${ECHO_CMD} ${DOCDIR}/`${BASENAME} $${i}` >> ${PLIST}; \
|
2000-11-05 02:38:51 +01:00
|
|
|
done
|
2002-01-29 12:58:52 +01:00
|
|
|
${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
|
2000-11-05 02:38:51 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lc_CLI ${PREFIX}/bin
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
|
|
|
cd ${WRKSRC} && pax -r -w *txt ${PREFIX}/${DOCDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|