source: trunk/dports/security/medusa/Portfile @ 82148

Last change on this file since 82148 was 82148, checked in by ryandesign@…, 8 years ago

medusa: fix replacing /usr/local with prefix; add pcre dependency; force subversion variant always on since subversion libraries are always used even when not requested

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Portfile 82148 2011-08-08 20:03:50Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name               medusa
6version            2.0
7revision           1
8categories         security net
9platforms          darwin
10maintainers        pmq openmaintainer
11
12description        Medusa is a speedy, massively parallel, modular, login brute-forcer
13long_description   Medusa is intended to be a speedy, massively parallel, \
14                   modular, login brute-forcer. The goal is to support as \
15                   many services which allow remote authentication as possible. \
16                   The author considers following items as some of the key \
17                   features of this application. Thread-based parallel testing: \
18                   Brute-force testing can be performed against multiple hosts, \
19                   users or passwords concurrently. Flexible user input: Target \
20                   information (host/user/password) can be specified in a variety \
21                   of ways. For example, each item can be either a single entry \
22                   or a file containing multiple entries. Additionally, a \
23                   combination file format allows the user to refine their target \
24                   listing. Modular design: Each service module exists as an \
25                   independent .mod file. This means that no modifications are \
26                   necessary to the core application in order to extend the \
27                   supported list of services for brute-forcing.
28
29homepage           http://www.foofus.net/jmk/medusa/medusa.html
30master_sites       http://www.foofus.net/jmk/tools freebsd:
31checksums           md5     75df63e1cd3b0d18fd2b017f12fc51d7 \
32                    sha1    bdea5e5c81d588af35e564a54d9eb2b77eb92371 \
33                    rmd160  28e27525d704621c1d897c368a58080dac12be45
34# Remove this line at next version update
35dist_subdir        ${name}/${version}_0
36
37depends_lib        port:openssl port:libssh2 port:pcre
38
39livecheck.type     regex
40livecheck.url      ${homepage}
41livecheck.regex    "${name}-(.*?).tar.gz"
42
43use_autoreconf      yes
44
45patchfiles          patch-configure.in.diff
46
47post-patch {
48    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/configure.in
49}
50
51# --enable-untested
52# hopefully the mod-path will be superfluous next release
53configure.args     --with-default-mod-path=${prefix}/lib/medusa/modules \
54                   --enable-module-svn=no \
55                   --enable-module-postgres=no
56
57# All modules end up linked with libsvn_client-1.0.dylib, even if the svn
58# module was not requested.
59default_variants +subversion
60if {![variant_isset subversion]} {
61    variant_set subversion
62}
63
64variant subversion description "Build the Subversion module" {
65    configure.args-delete --enable-module-svn=no
66    configure.args-append --enable-module-svn=yes \
67                          --with-subversion=${prefix}
68    depends_lib-append port:subversion
69}
70
71variant postgresql description "Build the PostgreSQL module" {
72    configure.args-delete --enable-module-postgres=no
73    configure.args-append --enable-module-postgres=yes
74    depends_lib-append port:postgresql83
75}
76
77# FIXME check building afpfs-ng, ncp
Note: See TracBrowser for help on using the repository browser.