1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: s1gma <s1gma@mindslicer.com>
7 pkgdesc='Speedy, massively parallel and modular login brute-forcer for network'
8 url='http://www.foofus.net/jmk/medusa/medusa.html'
12 # TODO: revisit rdp if freerdp2 is supported
14 'openssl: HTTP, MSSQL, SMBNT and SSL-based connection support'
15 'libssh2: SSH support'
16 'postgresql-libs: PostgreSQL support'
17 'afpfs-ng: AFP support'
18 'subversion: Subversion support')
19 makedepends=('libssh2' 'libpqxx' 'afpfs-ng' 'subversion' 'freerdp')
20 source=(${pkgname}-${pkgver}.tar.gz::http://www.foofus.net/jmk/tools/${pkgname}-${pkgver}.tar.gz
21 ${pkgname}-openssl-1.1.patch::https://github.com/jmk-foofus/medusa/commit/349ef7f0c24b627c6dbba8bcd5b47173806473a2.patch)
22 sha512sums=('4117c95e9a93c1cdf275c33f86046811b7100bfc4430464d66051e736dcf105a0733855d896ee0ea85c02a6dd3d3c060c8a84bb795f9870ec589fd9a87232690'
23 'df94ab0c31da5b552da5ff4998909f7df31054516154010c22a3f7f076525757e079891310647fd0d704e5850b508b5708084489f84b38c49e79e7b4ecf7e85a')
26 cd ${pkgname}-${pkgver}
27 patch -p1 < "${srcdir}/${pkgname}-openssl-1.1.patch"
32 cd ${pkgname}-${pkgver}
33 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
34 ./configure --prefix=/usr \
35 CFLAGS="${CFLAGS} $(pkg-config --cflags freerdp2)"
40 cd ${pkgname}-${pkgver}
41 make DESTDIR="${pkgdir}" install
42 install -Dm 644 misc/zsh/_medusa "${pkgdir}/usr/share/zsh/site-functions/_medusa"
43 install -Dm 644 doc/*.html README NEWS ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}"