blob: d598e8769288f26b41ef733a195a95f1b14f5864 (
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
|
# Created by: David Thiel <lx@redundancy.redundancy.org>
# $FreeBSD$
PORTNAME= medusa
PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.foofus.net/~jmk/tools/ \
http://redundancy.redundancy.org/mirror/
MAINTAINER= lx@FreeBSD.org
COMMENT= Speedy, massively parallel, modular, login brute-forcer
OPTIONS_DEFINE= SVN PGSQL DOCS
LIB_DEPENDS+= ssh2:${PORTSDIR}/security/libssh2 \
pcre:${PORTSDIR}/devel/pcre
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-module-ncp=no --enable-module-afp=no
MAN1= medusa.1
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= Does not build on ia64
.endif
.if ${PORT_OPTIONS:MSVN}
PLIST_SUB+= SVN=""
LIB_DEPENDS+= svn_client-1:${PORTSDIR}/devel/subversion
CFLAGS+= -I${LOCALBASE}/include/subversion-1 -I${LOCALBASE}/include/apr-1
.else
CONFIGURE_ARGS+= --enable-module-svn=no
PLIST_SUB+= SVN="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
PLIST_SUB+= POSTGRESQL=""
USE_PGSQL= yes
CONFIGURE_ARGS+= --enable-module-postgres
.else
CONFIGURE_ARGS+= --enable-module-postgres=no
PLIST_SUB+= POSTGRESQL="@comment "
.endif
post-install:
${MKDIR} ${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/misc/zsh/_medusa ${PREFIX}/share/zsh/site-functions/_medusa
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|