2013-03-11 05:04:11 +01:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2008-03-14 16:47:59 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ophcrack
|
2013-06-08 15:32:23 +02:00
|
|
|
PORTVERSION= 3.6.0
|
2008-03-14 16:47:59 +01:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= SF
|
|
|
|
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
|
|
COMMENT= Windows password cracker based on rainbow tables
|
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20 GPLv2
|
2013-03-11 05:04:11 +01:00
|
|
|
LICENSE_COMB= multi
|
2011-08-11 16:18:57 +02:00
|
|
|
|
2014-03-10 10:45:28 +01:00
|
|
|
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
|
2013-05-16 05:56:29 +02:00
|
|
|
|
2014-03-10 10:45:28 +01:00
|
|
|
USES= gmake
|
2010-06-22 11:03:13 +02:00
|
|
|
USE_BZIP2= yes
|
2008-03-14 16:47:59 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2010-06-22 11:03:13 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
|
2013-05-16 05:56:29 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
2010-06-22 11:03:13 +02:00
|
|
|
PLIST_FILES= bin/ophcrack
|
2014-03-10 10:45:28 +01:00
|
|
|
PORTDOCS= ChangeLog README
|
2008-03-14 16:47:59 +01:00
|
|
|
|
2013-03-11 05:04:11 +01:00
|
|
|
OPTIONS_DEFINE= X11 GRAPH DOCS
|
|
|
|
OPTIONS_DEFAULT= X11 GRAPH
|
|
|
|
|
2013-06-08 15:32:23 +02:00
|
|
|
X11_DESC= Build Qt 4 GUI frontend
|
|
|
|
GRAPH_DESC= Enable graph rendering via Qwt
|
2010-06-22 11:03:13 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2008-03-14 16:47:59 +01:00
|
|
|
|
2013-03-11 05:04:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MX11} || ${PORT_OPTIONS:MGRAPH}
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= moc_build qmake_build rcc_build uic_build corelib gui
|
2010-06-22 11:03:13 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gui
|
|
|
|
.endif
|
|
|
|
|
2013-03-11 05:04:11 +01:00
|
|
|
.if ${PORT_OPTIONS:MGRAPH}
|
2013-05-16 05:56:29 +02:00
|
|
|
LIB_DEPENDS+= qwt:${PORTSDIR}/x11-toolkits/qwt5
|
2010-06-22 11:03:13 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-graph
|
|
|
|
.endif
|
2008-03-14 16:47:59 +01:00
|
|
|
|
2014-03-10 12:40:33 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E '/#include <byteswap\.h>/d ; \
|
|
|
|
/#include/s,"bswap\.h",<machine/endian.h>, ; \
|
|
|
|
s,bswap_([[:digit:]]+),bswap\1, ' \
|
|
|
|
${WRKSRC}/src/samdump2/bkhive.c \
|
|
|
|
${WRKSRC}/src/samdump2/hive.c \
|
|
|
|
${WRKSRC}/src/samdump2/samdump2.c \
|
|
|
|
${WRKSRC}/src/misc.h
|
|
|
|
|
2008-03-14 16:47:59 +01:00
|
|
|
post-install:
|
2014-03-10 10:45:28 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2008-03-14 16:47:59 +01:00
|
|
|
|
2013-03-11 05:04:11 +01:00
|
|
|
.include <bsd.port.mk>
|