blob: f6c23f5c6b1ee2cfd8540384e1f0273b96af7c18 (
plain) (
blame)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# ex:ts=8
# Ports collection makefile for: hydra
# Date created: Tue Oct 08, 2002
# Whom: Laurent LEVIER (llevier@argosnet.com)
#
# $FreeBSD$
#
PORTNAME= hydra
PORTVERSION= 7.3
CATEGORIES= security
MASTER_SITES= http://freeworld.thc.org/releases/ \
PACKETSTORM/groups/thc/
MAINTAINER= rm@FreeBSD.org
COMMENT= Brute force attack utility working on multiple network services
LICENSE= GPLv3
LIB_DEPENDS= idn:${PORTSDIR}/dns/libidn \
pcre:${PORTSDIR}/devel/pcre \
sasl2:${PORTSDIR}/security/cyrus-sasl2
CONFLICTS= hydra-[0-9]*
NO_LATEST_LINK= yes
PLIST_FILES= bin/hydra bin/pw-inspector bin/dpl4hydra.sh
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_OPENSSL= yes
WANT_GNOME= yes
MAKE_JOBS_SAFE= yes
MAN1= hydra.1 pw-inspector.1
OPTIONS_DEFINE= FIREBIRD SSH SVN X11
FIREBIRD_DESC= Enable firebird support
OPTIONS_EXCLUDE=NLS DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFIREBIRD}
LIB_DEPENDS+= fbclient:${PORTSDIR}/databases/firebird20-client
.endif
.if ${PORT_OPTIONS:MSSH}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libssh.so.4:${PORTSDIR}/security/libssh
RUN_DEPENDS+= ${LOCALBASE}/lib/libssh.so.4:${PORTSDIR}/security/libssh
CFLAGS+= -I${LOCALBASE}/include
.endif
.if ${PORT_OPTIONS:MSVN}
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion
.endif
.if ${PORT_OPTIONS:MX11}
USE_GNOME= gtk20 pkgconfig
PLIST_FILES+= bin/xhydra
MAN1+= xhydra.1
.else
CONFIGURE_ARGS+= --disable-xhydra
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|CC = gcc||; \
s|-O2|${CFLAGS}|; s|md4\..||g' \
${WRKSRC}/Makefile.am
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/hydra ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/pw-inspector ${PREFIX}/bin
@${INSTALL_SCRIPT} ${WRKSRC}/dpl4hydra.sh ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/hydra.1 ${MANPREFIX}/man/man1/hydra.1
@${INSTALL_MAN} ${WRKSRC}/pw-inspector.1 ${MANPREFIX}/man/man1/pw-inspector.1
.if ${PORT_OPTIONS:MX11}
@${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/xhydra.1 ${MANPREFIX}/man/man1/xhydra.1
.endif
.include <bsd.port.mk>
|