mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
726b8893ff
redirects").
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# New ports collection makefile for: l0phtcrack
|
|
# Date created: 2000-10-31
|
|
# Whom: Trevor Johnson
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= l0phtcrack
|
|
PORTVERSION= 1.5
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.atstake.com/research/lc3/dist/
|
|
DISTNAME= lcsrc
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
|
|
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:
|
|
${ECHO} bin/lc_CLI > ${PLIST}
|
|
.if !defined(NOPORTDOCS)
|
|
for i in `find ${WRKDIR} -name '*txt'`; \
|
|
do ${ECHO} ${DOCDIR}/`${BASENAME} $${i}` >> ${PLIST}; \
|
|
done
|
|
${ECHO} @dirrm ${DOCDIR} >> ${PLIST}
|
|
.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>
|