summaryrefslogtreecommitdiff
path: root/packages/app-security/medusa/medusa-2.2_rc1-r1.exheres-0
blob: 9181ab71f89e49f56f39677abfb72dff4dade141 (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
# Copyright 2012-2015 Wouter van Kesteren <woutershep@gmail.com>
# Distributed under the terms of the GNU General Public License v2

require github [ user="jmk-foofus" suffix="tar.gz" release="${PV}" ]
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]

SUMMARY="Medusa is intended to be a speedy, massively parallel, modular, login brute-forcer."
HOMEPAGE="http://www.foofus.net/?page_id=51"
UPSTREAM_DOCUMENTATION="http://www.foofus.net/~jmk/medusa/medusa.html"

LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS="
    afp        [[ description = [ Module for brute-forcing afpfs ] ]]
    postgresql [[ description = [ Module for brute-forcing postgresql ] ]]
    rdp        [[ description = [ Module for brute-forcing rdp ] ]]
    ssh        [[ description = [ Module for brute-forcing ssh ] ]]
    subversion [[ description = [ Module for brute-forcing subversion ] ]]
"

DEPENDENCIES="
    build+run:
        dev-libs/openssl
        afp? ( sys-fs/afpfs-ng[>=0.8.1-r1] )
        postgresql? ( dev-db/postgresql-client )
        rdp? ( net-remote/FreeRDP[>=1.2] )
        ssh? ( net-libs/libssh2 )
        subversion? (
            dev-scm/subversion
            dev-libs/apr:1
        )
"

# TODO: add ncp to unwritten
DEFAULT_SRC_CONFIGURE_PARAMS=(
    --disable-debug
    --disable-module-ncp
)

DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
    'afp module-afp'
    'postgresql module-postgres'
    'ssh module-ssh'
    'subversion module-svn'
    'rdp module-rdp'
)

src_prepare() {
    # our 1.2-beta seems to have things in different libraries than what medusa expects.
    option rdp && \
    edo sed -e "/nego_set_restricted_admin_mode_required/s/freerdp-client/freerdp/" \
            -e "s/-lfreerdp-client -lfreerdp-gdi/$("${PKG_CONFIG}" --libs freerdp)/" \
            -i configure.ac
    autotools_src_prepare
}