head	1.15;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.8
	RELEASE_8_2_0:1.8
	RELEASE_6_EOL:1.8
	RELEASE_8_1_0:1.8
	RELEASE_7_3_0:1.6
	RELEASE_8_0_0:1.5
	RELEASE_7_2_0:1.4
	RELEASE_7_1_0:1.4
	RELEASE_6_4_0:1.4
	RELEASE_5_EOL:1.2;
locks; strict;
comment	@# @;


1.15
date	2013.03.11.13.39.04;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.11.17.06.01.09;	author svnexp;	state Exp;
branches;
next	1.13;

1.13
date	2012.09.04.06.57.36;	author linimon;	state Exp;
branches;
next	1.12;

1.12
date	2012.06.06.06.44.22;	author miwi;	state Exp;
branches;
next	1.11;

1.11
date	2012.06.01.05.24.06;	author dinoex;	state Exp;
branches;
next	1.10;

1.10
date	2012.05.10.17.32.33;	author danfe;	state Exp;
branches;
next	1.9;

1.9
date	2011.08.11.14.18.57;	author danfe;	state Exp;
branches;
next	1.8;

1.8
date	2010.06.22.09.03.13;	author danfe;	state Exp;
branches;
next	1.7;

1.7
date	2010.03.28.06.43.26;	author dinoex;	state Exp;
branches;
next	1.6;

1.6
date	2010.02.05.11.43.51;	author dinoex;	state Exp;
branches;
next	1.5;

1.5
date	2009.07.31.13.55.43;	author dinoex;	state Exp;
branches;
next	1.4;

1.4
date	2008.09.17.11.30.08;	author danfe;	state Exp;
branches;
next	1.3;

1.3
date	2008.06.06.14.00.59;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2008.03.16.11.00.08;	author danfe;	state Exp;
branches;
next	1.1;

1.1
date	2008.03.14.15.47.59;	author danfe;	state Exp;
branches;
next	;


desc
@@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313854
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Alexey Dokuchaev <danfe@@FreeBSD.org>
# $FreeBSD: head/security/ophcrack/Makefile 313854 2013-03-11 04:04:11Z danfe $

PORTNAME=	ophcrack
PORTVERSION=	3.4.1
CATEGORIES=	security
MASTER_SITES=	SF

MAINTAINER=	danfe@@FreeBSD.org
COMMENT=	Windows password cracker based on rainbow tables

LICENSE=	AL2 GPLv2
LICENSE_COMB=	multi

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_OPENSSL=	yes

PLIST_FILES=	bin/ophcrack
PORTDOCS=	*

OPTIONS_DEFINE=	X11 GRAPH DOCS
OPTIONS_DEFAULT=	X11 GRAPH

X11_DESC=	Build GUI frontend (Qt4-based)
GRAPH_DESC=	Graph rendering support via Qwt

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MX11} || ${PORT_OPTIONS:MGRAPH}
USE_QT4=	moc_build qmake_build rcc_build uic_build corelib gui
.else
CONFIGURE_ARGS+=	--disable-gui
.endif

.if ${PORT_OPTIONS:MGRAPH}
LIB_DEPENDS=	qwt:${PORTSDIR}/x11-toolkits/qwt5
.else
CONFIGURE_ARGS+=	--disable-graph
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${DOCSDIR}
.endif

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN=		Does not compile on ia64, powerpc, or sparc64
.endif

.include <bsd.port.mk>
@


1.14
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	ophcrack
# Date created:				14 Mar 2008
# Whom:					Alexey Dokuchaev <danfe@@FreeBSD.org>
#
# $FreeBSD: head/security/ophcrack/Makefile 303640 2012-09-04 06:57:36Z linimon $
#
d5 1
a5 2
PORTVERSION=	3.4.0
PORTREVISION=	1
d12 2
a13 1
LICENSE=	GPLv2
d23 5
a27 3
OPTIONS=	GUI	"Build GUI frontend (Qt4 based)"	on \
		GRAPH	"Enable graph rendering with Qwt"	on \
		DEBUG	"Make debug build"			off
d31 1
a31 1
.if defined(WITH_GUI) || defined(WITH_GRAPH)
d37 2
a38 2
.if defined(WITH_GRAPH)
LIB_DEPENDS=	qwt.5:${PORTSDIR}/x11-toolkits/qwt5
a42 4
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-debug
.endif

d44 1
a44 1
.if !defined(NOPORTDOCS)
a48 2
.include <bsd.port.pre.mk>

d53 1
a53 1
.include <bsd.port.post.mk>
@


1.13
log
@SVN rev 303640 on 2012-09-04 06:57:36Z by linimon

Mark as broken on powerpc and sparc64 (and, presumably, ia64).

Hat:		portmgr
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.12
log
@- Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4

Review by:	bapt, David Naylor (kde team)
@
text
@d55 7
a61 1
.include <bsd.port.mk>
@


1.11
log
@- update png to 1.5.10
@
text
@d34 1
a34 2
USE_QT_VER=	4
QT_COMPONENTS=	moc_build qmake_build rcc_build uic_build corelib gui
@


1.10
log
@Update to version 3.4.0
@
text
@d10 1
@


1.9
log
@Remove now longer applicable warning and enable graph option by default as
qt-designer plugin was split some time ago; add LICENSE (GPLv2).
@
text
@d9 1
a9 1
PORTVERSION=	3.3.1
d26 1
a26 1
OPTIONS=	GUI	"Build GUI frontend (Qt4)"		on \
@


1.8
log
@- Update to version 3.3.1, now with Qt4 GUI instead of Gtk+2!
- Introduce OPTIONS (enable GUI, but disable graph rendering since
 `x11-toolkits/qwt5' is built with Qt Designer plugin by default, which
  pulls rather heavy `devel/qt4-designer' dependency)
- Remove now-inaccurate pkg-message; please consult README instead
- Get rid of pkg-plist and simplify port overall

Feature safe:	yes
@
text
@d16 2
d27 1
a27 1
		GRAPH	"Enable graph rendering with Qwt"	off \
a38 1
# Enable with care, will pull Qt Designer by default, which is pretty heavy
@


1.7
log
@- update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
@
text
@d9 1
a9 2
PORTVERSION=	2.4.1
PORTREVISION=	4
a11 2
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} bkhive-${TOOLS_VER}${EXTRACT_SUFX} \
		samdump2-${TOOLS_VER}${EXTRACT_SUFX}
d16 3
a18 1
USE_GNOME=	gtk20
d20 2
a21 2
GNU_CONFIGURE=	yes
SUB_FILES+=	pkg-message
a22 1
MAN1=		bkhive.1 samdump2.1
d24 12
a35 1
TOOLS_VER=	1.1.1
d37 10
a46 32
post-patch:
	@@${REINPLACE_CMD} -e '/^CFLAGS=/d' ${WRKSRC}/${CONFIGURE_SCRIPT}
# Do not install any Linux binaries: we build and install native ones;
# mute their banner as well in favor of our nice pkg-message
	@@${REINPLACE_CMD} -e 's/ install-exec-local// ; 605,617d' \
		${WRKSRC}/Makefile.in
# Hint the tools about correct endianness
	@@${REINPLACE_CMD} -e '22s,^$$,#include <sys/endian.h>,' \
		${WRKDIR}/bkhive-${TOOLS_VER}/bkhive.c
	@@${REINPLACE_CMD} -e '26s,^$$,#include <sys/endian.h>,' \
		${WRKDIR}/bkhive-${TOOLS_VER}/hive.c
	@@${REINPLACE_CMD} -e '27s,^$$,#include <sys/endian.h>,' \
		${WRKDIR}/samdump2-${TOOLS_VER}/samdump2.c
# FreeBSD does not have <byteswap.h>
	@@${REINPLACE_CMD} -e '/byteswap\.h/d' \
		${WRKDIR}/bkhive-${TOOLS_VER}/bkhive.c \
		${WRKDIR}/bkhive-${TOOLS_VER}/hive.c \
		${WRKDIR}/samdump2-${TOOLS_VER}/samdump2.c
# And our swap function names are prettier
	@@${REINPLACE_CMD} -E 's,__bswap_([[:digit:]]+),bswap\1,' \
		${WRKDIR}/bkhive-${TOOLS_VER}/hive.c \
		${WRKDIR}/samdump2-${TOOLS_VER}/samdump2.c
# Link to file instead of patching identical copy
	@@${LN} -sf ../bkhive-${TOOLS_VER}/hive.c \
		${WRKDIR}/samdump2-${TOOLS_VER}/hive.c

post-build:
# Build auxiliary tools (useful: e.g., samdump2 is called at runtime)
	(cd ${WRKDIR}/bkhive-${TOOLS_VER} && ${CC} ${CFLAGS} -o bkhive \
		hive.c bkhive.c)
	(cd ${WRKDIR}/samdump2-${TOOLS_VER} && ${CC} ${CFLAGS} -o samdump2 \
		hive.c samdump2.c -lssl)
a48 6
# Install auxiliary tools and their manpages
	${INSTALL_PROGRAM} ${WRKDIR}/bkhive-${TOOLS_VER}/bkhive \
		${WRKDIR}/samdump2-${TOOLS_VER}/samdump2 ${PREFIX}/bin
	${INSTALL_MAN} ${WRKDIR}/bkhive-${TOOLS_VER}/bkhive.1 \
		${WRKDIR}/samdump2-${TOOLS_VER}/samdump2.1 \
			${MANPREFIX}/man/man1
a52 3
	@@${ECHO_MSG}
	@@${CAT} ${PKGMESSAGE}
	@@${ECHO_MSG}
@


1.6
log
@- update to jpeg-8
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.5
log
@- bump all port that indirectly depends on libjpeg and have not yet been bumped or updated
Requested by:	edwin
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.4
log
@- Unbreak on big-endian architectures
- Avoid patching things at extract phase

Based on a patch from:	gahr
Approved by:		portmgr (pav)
Tested on:		amd64, sparc64
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.3
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d28 1
a28 1
post-extract:
d35 8
a42 1
	@@${REINPLACE_CMD} -e '27s,^$$,#include <machine/endian.h>,' \
d44 5
d50 3
@


1.2
log
@- Kill superfluous line (debug leftover)
- Optimize away extra REINPLACE_CMD call
@
text
@d10 1
@


1.1
log
@Add a port of ophcrack, a Windows password cracker based on rainbow tables,
with GTK+ GUI.

WWW: http://ophcrack.sourceforge.net/
@
text
@a20 1
CONFIGURE_ENV+=	CFLAGS="${CFLAGS}"
d34 2
a35 3
	@@${REINPLACE_CMD} -e '27s,^,#include <machine/endian.h>,' \
		${WRKDIR}/bkhive-${TOOLS_VER}/bkhive.c
	@@${REINPLACE_CMD} -e '34s,^,#include <machine/endian.h>,' \
@

