blob: 27fcd428240338cae0fe15b953de24115b8b95f5 (
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
57
58
59
60
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= ophcrack
PORTVERSION= 3.6.0
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= danfe@FreeBSD.org
COMMENT= Windows password cracker based on rainbow tables
LICENSE= APACHE20 GPLv2
LICENSE_COMB= multi
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
USES= gmake tar:bzip2
GNU_CONFIGURE= yes
USE_OPENSSL= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
PLIST_FILES= bin/ophcrack
PORTDOCS= ChangeLog README
OPTIONS_DEFINE= X11 GRAPH DOCS
OPTIONS_DEFAULT= X11 GRAPH
X11_DESC= Build Qt 4 GUI frontend
GRAPH_DESC= Enable graph rendering 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+= libqwt.so:${PORTSDIR}/x11-toolkits/qwt5
.else
CONFIGURE_ARGS+= --disable-graph
.endif
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
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|