blob: 7ae2e05f0e492e5f17933c940b6bac7f89492e99 (
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
49
|
# New ports collection makefile for: pkcrack
# Date created: 27 Jul 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= pkcrack
PORTVERSION= 1.2.2
CATEGORIES= security
MASTER_SITES= http://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= A utility for breaking pkzip encryption
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}/src
PLIST_FILES= bin/pkextract bin/pkfindkey bin/pkmakekey bin/pkcrack bin/zipdecrypt
PORTDOCS= README pkzip.ps.gz
post-patch:
@${REINPLACE_CMD} -e 's|^\(#include\ <\)malloc\.h>|\1stdlib.h>|' \
${WRKSRC}/exfunc.c \
${WRKSRC}/readhead.c
@${REINPLACE_CMD} -e '/<malloc\.h>/d' \
${WRKSRC}/extract.c \
${WRKSRC}/main.c \
${WRKSRC}/zipdecrypt.c
@${REINPLACE_CMD} -E 's/^(CC|CFLAGS)=/\1?=/' \
${WRKSRC}/Makefile
do-install:
.for f in pkcrack zipdecrypt
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
# these file names are too generic
.for f in extract findkey makekey
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin/pk${f}
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|