summaryrefslogtreecommitdiffstats
path: root/security/ophcrack/Makefile
blob: f89a8f5a8e7572a65d8a8559765873bf10852763 (plain)
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
50
51
52
53
54
55
56
# New ports collection makefile for:	ophcrack
# Date created:				14 Mar 2008
# Whom:					Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	ophcrack
PORTVERSION=	3.4.0
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	SF

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

LICENSE=	GPLv2

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

PLIST_FILES=	bin/ophcrack
PORTDOCS=	*

OPTIONS=	GUI	"Build GUI frontend (Qt4 based)"	on \
		GRAPH	"Enable graph rendering with Qwt"	on \
		DEBUG	"Make debug build"			off

.include <bsd.port.options.mk>

.if defined(WITH_GUI) || defined(WITH_GRAPH)
USE_QT_VER=	4
QT_COMPONENTS=	moc_build qmake_build rcc_build uic_build corelib gui
.else
CONFIGURE_ARGS+=	--disable-gui
.endif

.if defined(WITH_GRAPH)
LIB_DEPENDS=	qwt.5:${PORTSDIR}/x11-toolkits/qwt5
.else
CONFIGURE_ARGS+=	--disable-graph
.endif

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-debug
.endif

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud