blob: 5369dd9041b0ad18df072c3a75c944867f4f7368 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# 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/lc/dist/
DISTNAME= lcsrc
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= trevor@FreeBSD.org
COMMENT=L0pht Heavy Industries' cracker for SAMBA or Windows NT passwords
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_CMD} bin/lc_CLI > ${PLIST}
.if !defined(NOPORTDOCS)
for i in `find ${WRKDIR} -name '*txt'`; \
do ${ECHO_CMD} ${DOCDIR}/`${BASENAME} $${i}` >> ${PLIST}; \
done
${ECHO_CMD} @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>
|