head	1.10;
access;
symbols
	RELEASE_8_3_0:1.7
	RELEASE_9_0_0:1.7
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.6
	RELEASE_8_1_0:1.6
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.6
	RELEASE_7_1_0:1.5
	RELEASE_6_4_0:1.5
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.4
	RELEASE_6_3_0:1.4
	PRE_XORG_7:1.4
	RELEASE_4_EOL:1.4
	RELEASE_6_2_0:1.4
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.1;
locks; strict;
comment	@# @;


1.10
date	2013.03.09.01.57.58;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2013.01.15.13.46.58;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.11.17.06.01.15;	author svnexp;	state Exp;
branches;
next	1.7;

1.7
date	2011.06.21.14.07.47;	author ehaupt;	state Exp;
branches;
next	1.6;

1.6
date	2009.03.27.09.53.31;	author ehaupt;	state Exp;
branches;
next	1.5;

1.5
date	2008.03.27.19.27.30;	author ehaupt;	state Exp;
branches;
next	1.4;

1.4
date	2006.06.01.12.13.50;	author ehaupt;	state Exp;
branches;
next	1.3;

1.3
date	2006.02.19.11.39.11;	author ehaupt;	state Exp;
branches;
next	1.2;

1.2
date	2005.10.06.11.57.06;	author ehaupt;	state Exp;
branches;
next	1.1;

1.1
date	2005.07.28.10.32.17;	author garga;	state Exp;
branches;
next	;


desc
@@


1.10
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313649
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Emanuel Haupt <ehaupt@@critical.ch>
# $FreeBSD: head/security/pkcrack/Makefile 313649 2013-03-08 14:00:30Z ehaupt $

PORTNAME=	pkcrack
PORTVERSION=	1.2.2
CATEGORIES=	security
MASTER_SITES=	http://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/ \
		CRITICAL

MAINTAINER=	ehaupt@@FreeBSD.org
COMMENT=	Utility for breaking pkzip encryption

USE_GMAKE=	yes
MAKE_JOBS_SAFE=	yes

WRKSRC=		${WRKDIR}/${DISTNAME}/src
PLIST_FILES=	bin/pkextract bin/pkfindkey bin/pkmakekey bin/pkcrack bin/zipdecrypt
PORTDOCS=	README pkzip.ps.gz

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

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 ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/doc/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>
@


1.9
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310443
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/security/pkcrack/Makefile 310443 2013-01-15 13:40:28Z ehaupt $
d11 1
a11 1
COMMENT=	A utility for breaking pkzip encryption
@


1.8
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	pkcrack
# Date created:				27 Jul 2005
# Whom:					Emanuel Haupt <ehaupt@@critical.ch>
#
# $FreeBSD: head/security/pkcrack/Makefile 300897 2012-07-14 14:29:18Z beat $
#
d20 4
d33 1
a33 1
.if !defined(NOPORTDOCS)
@


1.7
log
@Fix build with clang.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.6
log
@Mark MAKE_JOBS_SAFE
@
text
@a23 11
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

@


1.5
log
@Use MASTER_SITE_CRITICAL
@
text
@d18 1
@


1.4
log
@Add an additional mirror.
@
text
@d12 1
a12 2
		http://critical.ch/distfiles/ \
		http://energy.critical.ch/distfiles/
@


1.3
log
@Remove deprecated USE_REINPLACE
@
text
@d11 3
a13 1
MASTER_SITES=	http://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack/
@


1.2
log
@Change MAINTAINER address for my ports.

Approved by:	novel (mentor)
@
text
@a16 1
USE_REINPLACE=	yes
@


1.1
log
@This package implements an algorithm for breaking the PkZip cipher that was
devised by Eli Biham and Paul Kocher.

This program applies a known plaintext attack to an encrypted file.
A known-plaintext-attack recovers a password using the encrypted file and
(part of) the unencrypted file.

Please note that cryptographers use the word 'plaintext' for any kind of
unencrypted data - not necessarily readable ASCII text.

Before you ask why somebody may want to know the password when he already knows
the plaintext think of the following situations:

 - Usually there's a large number of files in a ZIP-archive. Usually all these
   files are encrypted using the same password. So if you know one of the files,
   you can recover the password and decrypt the other files.
 - You need to know only a part of the plaintext (at least 13 bytes). Many files
   have commonly known headers, like DOS .EXE-files. Knowing a reasonably long
   header you can recover the password and decrypt the entire file.

WWW: http://www.unix-ag.uni-kl.de/~conrad/krypto/pkcrack.html

PR:		ports/84192
Submitted by:	Emanuel Haupt <ehaupt@@critical.ch>
@
text
@d13 1
a13 1
MAINTAINER=	ehaupt@@critical.ch
@

