summaryrefslogtreecommitdiff
path: root/net-analyzer/hydra
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/hydra')
-rw-r--r--net-analyzer/hydra/Manifest8
-rw-r--r--net-analyzer/hydra/files/hydra-9.2-respect-cflags-more.patch26
-rw-r--r--net-analyzer/hydra/files/hydra-9.3-pcre2.patch113
-rw-r--r--net-analyzer/hydra/hydra-9.1-r1.ebuild122
-rw-r--r--net-analyzer/hydra/hydra-9.2-r1.ebuild123
-rw-r--r--net-analyzer/hydra/hydra-9.3-r1.ebuild127
6 files changed, 0 insertions, 519 deletions
diff --git a/net-analyzer/hydra/Manifest b/net-analyzer/hydra/Manifest
index 9c4558b6b770..c452fd8787ff 100644
--- a/net-analyzer/hydra/Manifest
+++ b/net-analyzer/hydra/Manifest
@@ -1,12 +1,4 @@
-AUX hydra-9.2-respect-cflags-more.patch 1072 BLAKE2B 4361f339a0cd9ea3a32a9671bb1a31f2775dceb6b2b305885a2a3e72a2329c5337221c895ab49129e920c36941d5b34101877ebf0d35f10f46d601de58981c21 SHA512 b00112c17f025b657111c93decdecc5ee4a10f388e259929ed2f55ca08888d24fb2fac1892df017d00602943ba93a72dcbbb4cf00fa808c2bc05ed1b95cb428a
-AUX hydra-9.3-pcre2.patch 3854 BLAKE2B 3338fcae138b913008857db9e1678977d5809380e5e916b6b9f022b5e3c88f3030d401702fd0e59297916915ab9869e62113464e2a36b91e66605ea15d9b6cba SHA512 7cd1af834d6ad7fc120d600996bf13a8d6feca571b44bbf6194c4a0205e243b489aa8f80be4a21a5dbe19930b933fdeb56e76075649c1827384a1aeb2d46a977
AUX hydra-9.4-implicit-func-decl.patch 1325 BLAKE2B 55f9c8fed3dd32e7049cdc59e592901ee40442d7ec71a00a7214ce6bc0543077711da7481345b8b112be5a52102cf42967f3b432f600db5818aec8c936bf5ca4 SHA512 50d09d1c2a2698303bd051143437c3c582418129ba589c23488707b1fbe7cbb36ee8e6295d1c2c71cf4ea43d94d97326166e4ada2af5a2d82b94799d60e84b75
-DIST hydra-9.1.tar.gz 611846 BLAKE2B 9a5b6dc52b5f4069bf326e86728ebaf8c1fe018536f3943b83493de934703bff6770ae3f7a9a223ee00b5f52f7bd10ee4ddc272e1bbad00c399aa19cc0c083ba SHA512 863176375fe1aae4c0a2b74c11aba297682d66e522c98c926c539348309b0af4e407e460b4cb803d2c83c008787c73f7f1e56ac6aca9791351e1b596c2e4fbb2
-DIST hydra-9.2.tar.gz 614176 BLAKE2B 102c744fbdd3702c624b1c8339178883b689db093d9f1c66d8e04816327eb8095f3e3133f889b2a6ee6dcabb9e5af0c71ec8470731b4b174021fbd79741d05e7 SHA512 ee8ecd854b61ac9d708098c8a0d9a128d8b80b38db1a2ba8eb06de6fbbc6865135d994620ade8e3742fb993899274ed9d8fd0e95bed7a9fbeb1ca9e182540322
-DIST hydra-9.3.tar.gz 829856 BLAKE2B 5ae1ab77f64d2bc17bd8389acf8a47201d84455a82f5ae28ab740594571a13ab145f5981efdfb09ddab3d6cc443e171e4664bff08c1a6b2f08169dea4f87ba54 SHA512 06d2ed61492c76d16ff3b2fbbde3938f79d6038c979a2af949f9b4d116a1506943e0a3a246da4d1bc8848cf440097e6175962e3fdf3e7644dd36ad7c2f6b2ce4
DIST hydra-9.4.tar.gz 833465 BLAKE2B 2ba7f7e4a70c4f6c9dc4ec94d652ab7534cb0fb17b88412dfcf1e651d9f31af573ab9acd2d9cb698da6462f4744f53dfb8f87a437c32bebfa4f9a04f2f9136c0 SHA512 de5a1e73673fdc2f193cfb1aeec337c9d8faad52b06524850f352a797a4a5ef08cba8fc51da96fed1db01d141127e58c2aa874027f51c40a94a474de778d5241
-EBUILD hydra-9.1-r1.ebuild 3564 BLAKE2B 181579f91649555a378c6ada4f88ecb177378c2c77c9bcc7f59410b93c7113aa9b93f0e9d3204bad420db9cbffe144bb74b0d62664f9c9a7db2bd1e3b8abc1dd SHA512 e8b588bdb0e290a082eb26749239fefc988aa003151dd7d8cfde04b8d4952a6667e3d133fd23bd1cb6a1e6bc5575272078e35f553e4b482228d415c51f303379
-EBUILD hydra-9.2-r1.ebuild 3599 BLAKE2B 58ff03bfb0214373529ba1b6bbd9cc6b0f304f01b267d22e6d92a39a77553c49f8c6674528f0db6fc20fecbbcf32875154ec61bb164094568cf3f40dddd71460 SHA512 de54e80aad0c54891c0049503c2319ca9a6e81b35d8fdef6559e5eee14fa49bd28c538ff183a62fa275e4e50ac8247491ee6a77bfbcfb2f585ce23ec5c8005f9
-EBUILD hydra-9.3-r1.ebuild 3913 BLAKE2B 736e7175b81d282703fdbfe63f53aa9fa2b7dff62f40c17f804498fec139e40b787d8d5681dc5bde484946a94792408add0d724cda06461ea1f77c7a4f7ee460 SHA512 69cef15abea195f7fdefd518bfdc68647ed5022438dbb9ac05463ac945171ee802227e0ecbe22a40581bf894780311fcc748f18850923e1032e522fd6ed9e0fc
EBUILD hydra-9.4.ebuild 3929 BLAKE2B 91061de74d83da9d8a33c5dfa59663cd7d6a7c57727e4e229eab12de779d3a24ec0b7184f4e9505ba1f5315550e962a3d9bd969640f1fa67408cdc095d9f6c82 SHA512 f3a6c2f405983550f71ef0afe79a62c6994045dfd37a2cfc99750aff7cbbf710906ea7d9bb5ab057aa32bc95d8284b33130db1c13b882d3a74096aea6a6c82ca
MISC metadata.xml 584 BLAKE2B c408a4a825d860594a10c6ba9a562a5fb96344f2a02a5d7ff12622c986ebb2ba05eeff5a7a3c79c09a437c14fc7024df33196ccd7f6566325f2f7920afe2d545 SHA512 e548b8600a0b3d9a548b963c1b3dc6c917606942f165f7c0859ad7e877c21dbe677c964d54f9548e38452170c4a3b4872ec81436100ec7b55123628bf4383da8
diff --git a/net-analyzer/hydra/files/hydra-9.2-respect-cflags-more.patch b/net-analyzer/hydra/files/hydra-9.2-respect-cflags-more.patch
deleted file mode 100644
index 8d158640803f..000000000000
--- a/net-analyzer/hydra/files/hydra-9.2-respect-cflags-more.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Don't inject hardening CFLAGS. We already have these by default in Gentoo.
---- a/configure
-+++ b/configure
-@@ -1376,22 +1376,6 @@ if [ -n "$CRYPTO_PATH" ]; then
- echo " ... RSA_generate_key()$RSA found"
- fi
-
--echo "Checking for secure compile option support in $CC ..."
--GCCSEC="no"
--LDSEC="no"
--GCCSECOPT="-fstack-protector-all --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
--echo '#include <stdio.h>' > $TMPC.c
--echo 'int main() { printf(""); return 0; }' >> $TMPC.c
--$CC -pie -fPIE $GCCSEPOPT -o $TMPC $TMPC.c > /dev/null 2> $TMPC.c.err
--test -x $TMPC && GCCSEC="yes"
--grep -q fPI $TMPC.c.err || GCCSECOPT="-pie -fPIE $GCCSECOPT"
--rm -f "$TMPC"
--$CC $GCCSECOPT -Wl,-z,now -Wl,-z,relro -o $TMPC $TMPC.c > /dev/null 2> $TMPC.c.err
--test -x $TMPC && { LDSEC="yes" ; GCCSECOPT="$GCCSECOPT -Wl,-z,now -Wl,-z,relro" ; }
--rm -f $TMPC $TMPC.c $TMPC.c.err
--echo " Compiling... $GCCSEC"
--echo " Linking... $LDSEC"
--
- echo
- XDEFINES=""
- XLIBS=""
diff --git a/net-analyzer/hydra/files/hydra-9.3-pcre2.patch b/net-analyzer/hydra/files/hydra-9.3-pcre2.patch
deleted file mode 100644
index bb12936254bb..000000000000
--- a/net-analyzer/hydra/files/hydra-9.3-pcre2.patch
+++ /dev/null
@@ -1,113 +0,0 @@
-https://github.com/vanhauser-thc/thc-hydra/commit/c82e5d51c5595374e6b7801bfc84c26a497d8989.patch
-https://bugs.gentoo.org/838031
-
-From c82e5d51c5595374e6b7801bfc84c26a497d8989 Mon Sep 17 00:00:00 2001
-From: vanhauser-thc <vh@thc.org>
-Date: Tue, 1 Mar 2022 14:56:05 +0100
-Subject: [PATCH] switch to pcre2
-
---- a/configure
-+++ b/configure
-@@ -380,21 +380,21 @@ if [ "X" = "X$CURSES_PATH" -o "X" = "X$CURSES_IPATH" ]; then
- CURSES_IPATH=""
- fi
-
--echo "Checking for pcre (libpcre/pcre.h) ..."
-+echo "Checking for pcre2 (libpcre/pcre.h) ..."
- for i in $LIBDIRS ; do
- if [ "X" = "X$PCRE_PATH" ]; then
-- if [ -f "$i/libpcre.so" -o -f "$i/libpcre.dylib" -o -f "$i/libpcre.a" ]; then
-+ if [ -f "$i/libpcre2-8.so" -o -f "$i/libpcre2-8.dylib" -o -f "$i/libpcre2-8.a" ]; then
- PCRE_PATH="$i"
- fi
- fi
- if [ "X" = "X$PCRE_PATH" ]; then
-- TMP_LIB=`/bin/ls $i/libpcre.so* 2> /dev/null | grep libpcre.`
-+ TMP_LIB=`/bin/ls $i/libpcre2*.so* 2> /dev/null | grep libpcre.`
- if [ -n "$TMP_LIB" ]; then
- PCRE_PATH="$i"
- fi
- fi
- if [ "X" = "X$PCRE_PATH" ]; then
-- TMP_LIB=`/bin/ls $i/libpcre.dll* 2> /dev/null | grep libpcre.`
-+ TMP_LIB=`/bin/ls $i/libpcre2*.dll* 2> /dev/null | grep libpcre.`
- if [ -n "$TMP_LIB" ]; then
- PCRE_PATH="$i"
- fi
-@@ -402,20 +402,20 @@ for i in $LIBDIRS ; do
- done
- for i in $INCDIRS ; do
- if [ "X" != "X$PCRE_PATH" ]; then
-- if [ -f "$i/pcre.h" ]; then
-+ if [ -f "$i/pcre2.h" ]; then
- PCRE_IPATH="$i"
- fi
- fi
- done
- if [ "X" != "X$DEBUG" ]; then
- echo DEBUG: PCRE_PATH=$PCRE_PATH/libpcre
-- echo DEBUG: PCRE_IPATH=$PCRE_IPATH/pcre.h
-+ echo DEBUG: PCRE_IPATH=$PCRE_IPATH/pcre2.h
- fi
- if [ -n "$PCRE_PATH" -a -n "$PCRE_IPATH" ]; then
-- echo " ... found"
-+ echo " ... found"
- fi
- if [ "X" = "X$PCRE_PATH" -o "X" = "X$PCRE_IPATH" ]; then
-- echo " ... NOT found, server response checks will be less reliable"
-+ echo " ... NOT found, server response checks will be less reliable"
- PCRE_PATH=""
- PCRE_IPATH=""
- fi
-@@ -1649,7 +1649,7 @@ if [ -n "$IDN_PATH" ]; then
- XLIBS="$XLIBS -lidn"
- fi
- if [ -n "$PCRE_PATH" ]; then
-- XLIBS="$XLIBS -lpcre"
-+ XLIBS="$XLIBS -lpcre2-8"
- fi
- if [ -n "$MYSQL_PATH" ]; then
- XLIBS="$XLIBS -lmysqlclient"
---- a/hydra-mod.c
-+++ b/hydra-mod.c
-@@ -7,7 +7,8 @@
- #include <openssl/ssl.h>
- #endif
- #ifdef HAVE_PCRE
--#include <pcre.h>
-+#define PCRE2_CODE_UNIT_WIDTH 8
-+#include <pcre2.h>
- #endif
-
- #define MAX_CONNECT_RETRY 1
-@@ -1291,19 +1292,23 @@ void hydra_set_srcport(int32_t port) { src_port = port; }
-
- #ifdef HAVE_PCRE
- int32_t hydra_string_match(char *str, const char *regex) {
-- pcre *re = NULL;
-- int32_t offset_error = 0;
-- const char *error = NULL;
-+ pcre2_code *re = NULL;
-+ int32_t error_code = 0;
-+ PCRE2_SIZE error_offset;
- int32_t rc = 0;
-
-- re = pcre_compile(regex, PCRE_CASELESS | PCRE_DOTALL, &error, &offset_error, NULL);
-+ re = pcre2_compile(regex, PCRE2_ZERO_TERMINATED, PCRE2_CASELESS | PCRE2_DOTALL, &error_code, &error_offset, NULL);
- if (re == NULL) {
-- fprintf(stderr, "[ERROR] PCRE compilation failed at offset %d: %s\n", offset_error, error);
-+ fprintf(stderr, "[ERROR] PCRE compilation failed at offset %d: %d\n", error_offset, error_code);
- return 0;
- }
-
-- rc = pcre_exec(re, NULL, str, strlen(str), 0, 0, NULL, 0);
-- if (rc >= 0) {
-+ pcre2_match_data *match_data = pcre2_match_data_create_from_pattern(re, NULL);
-+ rc = pcre2_match(re, str, PCRE2_ZERO_TERMINATED, 0, 0, match_data, NULL);
-+ pcre2_match_data_free(match_data);
-+ pcre2_code_free(re);
-+
-+ if (rc >= 1) {
- return 1;
- }
- return 0;
diff --git a/net-analyzer/hydra/hydra-9.1-r1.ebuild b/net-analyzer/hydra/hydra-9.1-r1.ebuild
deleted file mode 100644
index 4998a4103fe1..000000000000
--- a/net-analyzer/hydra/hydra-9.1-r1.ebuild
+++ /dev/null
@@ -1,122 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-inherit flag-o-matic toolchain-funcs
-
-DESCRIPTION="Parallelized network login hacker"
-HOMEPAGE="https://github.com/vanhauser-thc/thc-hydra"
-SRC_URI="https://github.com/vanhauser-thc/thc-hydra/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
-IUSE="
- debug firebird gcrypt gtk idn memcached mongodb mysql ncurses
- oracle pcre postgres rdp libssh subversion zlib
-"
-
-RDEPEND="
- gtk? (
- dev-libs/atk
- dev-libs/glib:2
- x11-libs/gdk-pixbuf:2
- x11-libs/gtk+:2
- )
- firebird? ( dev-db/firebird )
- gcrypt? ( dev-libs/libgcrypt )
- idn? ( net-dns/libidn:0= )
- dev-libs/openssl:0=
- memcached? ( dev-libs/libmemcached[sasl] )
- mongodb? ( dev-libs/mongo-c-driver )
- mysql? ( dev-db/mysql-connector-c:0= )
- ncurses? ( sys-libs/ncurses:= )
- oracle? ( dev-db/oracle-instantclient[sdk] )
- pcre? ( dev-libs/libpcre )
- postgres? ( dev-db/postgresql:* )
- rdp? ( net-misc/freerdp )
- libssh? ( >=net-libs/libssh-0.4.0 )
- subversion? ( dev-vcs/subversion )
- zlib? ( sys-libs/zlib )
-"
-DEPEND="
- ${RDEPEND}
- virtual/pkgconfig
-"
-S=${WORKDIR}/thc-${P}
-
-src_prepare() {
- default
-
- # None of the settings in Makefile.unix are useful to us
- mv Makefile.unix{,.gentoo_unused} || die
- touch Makefile.unix || die
-
- sed -i \
- -e 's:|| echo.*$::' \
- -e '/\t-$(CC)/s:-::' \
- -e '/^OPTS/{s|=|+=|;s| -O3||}' \
- -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \
- Makefile.am || die
-}
-
-src_configure() {
- # Note: the top level configure script is not autoconf-based
- tc-export CC PKG_CONFIG
-
- append-cflags -fcommon
-
- export OPTS="${CFLAGS}"
-
- hydra_sed() {
- if use ${1}; then
- einfo "Enabling ${1}"
- if [[ -n "${3}" ]]; then
- sed -i 's#'"${2}"'#'"${3}"'#' configure || die
- fi
- else
- einfo "Disabling ${1}"
- sed -i 's#'"${2}"'##; s#'"${4}"'##' configure || die
- fi
- }
-
- hydra_sed firebird '-lfbclient' '' '-DLIBFIREBIRD'
- hydra_sed gcrypt '-lgcrypt' '$( ${CTARGET:-${CHOST}}-libgcrypt-config --libs )' '-DHAVE_GCRYPT'
- hydra_sed idn '-lidn' '$( "${PKG_CONFIG}" --libs libidn )' '-DLIBIDN -DHAVE_PR29_H'
- hydra_sed libssh '-lssh' '$( "${PKG_CONFIG}" --libs libssh )' '-DLIBSSH'
- hydra_sed memcached '-lmemcached' '$( "${PKG_CONFIG}" --libs libmemcached )' '-DLIBMCACHED'
- hydra_sed mongodb '-lmongoc-1.0' '$( "${PKG_CONFIG}" --libs libmongoc-1.0 )' '-DLIBMONGODB\|-DLIBBSON'
- hydra_sed mysql '-lmysqlclient' '$( ${CTARGET:-${CHOST}}-mysql_config --libs )' '-DLIBMYSQLCLIENT'
- hydra_sed ncurses '-lcurses' '$( "${PKG_CONFIG}" --libs ncurses )' '-DLIBNCURSES'
- hydra_sed pcre '-lpcre' '$( "${PKG_CONFIG}" --libs libpcre )' '-DHAVE_PCRE'
- hydra_sed postgres '-lpq' '$( "${PKG_CONFIG}" --libs libpq )' '-DLIBPOSTGRES'
- hydra_sed oracle '-locci -lclntsh' '' '-DLIBORACLE'
- hydra_sed rdp '-lfreerdp2' '$( "${PKG_CONFIG}" --libs freerdp2 )' '-DLIBFREERDP'
- # TODO: https://bugs.gentoo.org/686148
- #hydra_sed subversion '-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1' '$( "${PKG_CONFIG}" --libs libsvn_client )' '-DLIBSVN'
- hydra_sed subversion '-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1' '' '-DLIBSVN'
- hydra_sed zlib '-lz' '$( "${PKG_CONFIG}" --libs zlib )' '-DHAVE_ZLIB'
-
- sh configure \
- $(use gtk || echo --disable-xhydra) \
- $(usex debug '--debug' '') \
- --nostrip \
- --prefix=/usr \
- || die
-
- if use gtk ; then
- pushd hydra-gtk || die
- econf
- fi
-}
-
-src_compile() {
- emake XLIBPATHS=''
- use gtk && emake -C hydra-gtk
-}
-
-src_install() {
- dobin hydra pw-inspector
- use gtk && dobin hydra-gtk/src/xhydra
- dodoc CHANGES README.md
-}
diff --git a/net-analyzer/hydra/hydra-9.2-r1.ebuild b/net-analyzer/hydra/hydra-9.2-r1.ebuild
deleted file mode 100644
index f5072411a36a..000000000000
--- a/net-analyzer/hydra/hydra-9.2-r1.ebuild
+++ /dev/null
@@ -1,123 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs
-
-DESCRIPTION="Parallelized network login hacker"
-HOMEPAGE="https://github.com/vanhauser-thc/thc-hydra"
-SRC_URI="https://github.com/vanhauser-thc/thc-hydra/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/thc-${P}"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 ~ppc x86"
-IUSE="
- debug firebird gcrypt gtk idn memcached mongodb mysql ncurses
- oracle pcre postgres rdp libssh subversion zlib
-"
-
-RDEPEND="
- gtk? (
- dev-libs/atk
- dev-libs/glib:2
- x11-libs/gdk-pixbuf:2
- x11-libs/gtk+:2
- )
- firebird? ( dev-db/firebird )
- gcrypt? ( dev-libs/libgcrypt )
- idn? ( net-dns/libidn:0= )
- dev-libs/openssl:0=
- memcached? ( dev-libs/libmemcached[sasl] )
- mongodb? ( dev-libs/mongo-c-driver )
- mysql? ( dev-db/mysql-connector-c:0= )
- ncurses? ( sys-libs/ncurses:= )
- oracle? ( dev-db/oracle-instantclient[sdk] )
- pcre? ( dev-libs/libpcre )
- postgres? ( dev-db/postgresql:* )
- rdp? ( net-misc/freerdp )
- libssh? ( >=net-libs/libssh-0.4.0 )
- subversion? ( dev-vcs/subversion )
- zlib? ( sys-libs/zlib )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-9.2-respect-cflags-more.patch
-)
-
-src_prepare() {
- default
-
- # None of the settings in Makefile.unix are useful to us
- mv Makefile.unix{,.gentoo_unused} || die
- touch Makefile.unix || die
-
- sed -i \
- -e 's:|| echo.*$::' \
- -e '/\t-$(CC)/s:-::' \
- -e '/^OPTS/{s|=|+=|;s| -O3||}' \
- -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \
- Makefile.am || die
-}
-
-src_configure() {
- # Note: the top level configure script is not autoconf-based
- tc-export CC PKG_CONFIG
-
- export OPTS="${CFLAGS}"
-
- hydra_sed() {
- if use ${1}; then
- einfo "Enabling ${1}"
- if [[ -n "${3}" ]]; then
- sed -i 's#'"${2}"'#'"${3}"'#' configure || die
- fi
- else
- einfo "Disabling ${1}"
- sed -i 's#'"${2}"'##; s#'"${4}"'##' configure || die
- fi
- }
-
- hydra_sed firebird '-lfbclient' '' '-DLIBFIREBIRD'
- hydra_sed gcrypt '-lgcrypt' '$( ${CTARGET:-${CHOST}}-libgcrypt-config --libs )' '-DHAVE_GCRYPT'
- hydra_sed idn '-lidn' '$( "${PKG_CONFIG}" --libs libidn )' '-DLIBIDN -DHAVE_PR29_H'
- hydra_sed libssh '-lssh' '$( "${PKG_CONFIG}" --libs libssh )' '-DLIBSSH'
- hydra_sed memcached '-lmemcached' '$( "${PKG_CONFIG}" --libs libmemcached )' '-DLIBMCACHED'
- hydra_sed mongodb '-lmongoc-1.0' '$( "${PKG_CONFIG}" --libs libmongoc-1.0 )' '-DLIBMONGODB\|-DLIBBSON'
- hydra_sed mysql '-lmysqlclient' '$( ${CTARGET:-${CHOST}}-mysql_config --libs )' '-DLIBMYSQLCLIENT'
- hydra_sed ncurses '-lcurses' '$( "${PKG_CONFIG}" --libs ncurses )' '-DLIBNCURSES'
- hydra_sed pcre '-lpcre' '$( "${PKG_CONFIG}" --libs libpcre )' '-DHAVE_PCRE'
- hydra_sed postgres '-lpq' '$( "${PKG_CONFIG}" --libs libpq )' '-DLIBPOSTGRES'
- hydra_sed oracle '-locci -lclntsh' '' '-DLIBORACLE'
- hydra_sed rdp '-lfreerdp2' '$( "${PKG_CONFIG}" --libs freerdp2 )' '-DLIBFREERDP'
- # TODO: https://bugs.gentoo.org/686148
- #hydra_sed subversion '-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1' '$( "${PKG_CONFIG}" --libs libsvn_client )' '-DLIBSVN'
- hydra_sed subversion '-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1' '' '-DLIBSVN'
- hydra_sed zlib '-lz' '$( "${PKG_CONFIG}" --libs zlib )' '-DHAVE_ZLIB'
-
- sh configure \
- $(use gtk || echo --disable-xhydra) \
- $(usex debug '--debug' '') \
- --nostrip \
- --prefix=/usr \
- || die
-
- if use gtk ; then
- pushd hydra-gtk || die
- econf
- fi
-}
-
-src_compile() {
- emake XLIBPATHS=''
- use gtk && emake -C hydra-gtk
-}
-
-src_install() {
- dobin hydra pw-inspector
- use gtk && dobin hydra-gtk/src/xhydra
- dodoc CHANGES README.md
-}
diff --git a/net-analyzer/hydra/hydra-9.3-r1.ebuild b/net-analyzer/hydra/hydra-9.3-r1.ebuild
deleted file mode 100644
index 5ce501996e27..000000000000
--- a/net-analyzer/hydra/hydra-9.3-r1.ebuild
+++ /dev/null
@@ -1,127 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit toolchain-funcs
-
-DESCRIPTION="Parallelized network login hacker"
-HOMEPAGE="https://github.com/vanhauser-thc/thc-hydra"
-SRC_URI="https://github.com/vanhauser-thc/thc-hydra/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/thc-${P}"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="debug firebird gcrypt gtk idn memcached mongodb mysql ncurses oracle pcre postgres rdp libssh samba subversion zlib"
-
-RDEPEND="
- dev-libs/openssl:=
- gtk? (
- dev-libs/atk
- dev-libs/glib:2
- x11-libs/gdk-pixbuf:2
- x11-libs/gtk+:2
- )
- firebird? ( dev-db/firebird )
- gcrypt? ( dev-libs/libgcrypt )
- idn? ( net-dns/libidn:0= )
- memcached? ( dev-libs/libmemcached[sasl] )
- mongodb? ( dev-libs/mongo-c-driver )
- mysql? ( dev-db/mysql-connector-c:0= )
- ncurses? ( sys-libs/ncurses:= )
- oracle? ( dev-db/oracle-instantclient[sdk] )
- pcre? ( dev-libs/libpcre2 )
- postgres? ( dev-db/postgresql:* )
- rdp? ( net-misc/freerdp )
- libssh? ( >=net-libs/libssh-0.4.0 )
- samba? ( net-fs/samba )
- subversion? ( dev-vcs/subversion )
- zlib? ( sys-libs/zlib )"
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-PATCHES=(
- "${FILESDIR}"/${P}-pcre2.patch
-)
-
-src_prepare() {
- default
-
- # None of the settings in Makefile.unix are useful to us
- mv Makefile.unix{,.gentoo_unused} || die
- touch Makefile.unix || die
-
- sed -i \
- -e 's:|| echo.*$::' \
- -e '/\t-$(CC)/s:-::' \
- -e '/^OPTS/{s|=|+=|;s| -O3||}' \
- -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \
- Makefile.am || die
-
- # Needed to get GTK+ 3 change in configure.in (.in got updated, but
- # configure not regen'd.)
- #cd hydra-gtk || die
- #sed -i -e 's:AC_INIT(configure.in):AC_INIT(configure.ac):' configure.in || die
- #eautoreconf
-}
-
-src_configure() {
- # Note: the top level configure script is not autoconf-based
- tc-export CC PKG_CONFIG
-
- export OPTS="${CFLAGS}"
-
- hydra_sed() {
- if use ${1}; then
- einfo "Enabling ${1}"
- if [[ -n "${3}" ]]; then
- sed -i 's#'"${2}"'#'"${3}"'#' configure || die
- fi
- else
- einfo "Disabling ${1}"
- sed -i 's#'"${2}"'##; s#'"${4}"'##' configure || die
- fi
- }
-
- hydra_sed firebird '-lfbclient' '' '-DLIBFIREBIRD'
- hydra_sed gcrypt '-lgcrypt' '$( ${CTARGET:-${CHOST}}-libgcrypt-config --libs )' '-DHAVE_GCRYPT'
- hydra_sed idn '-lidn' '$( "${PKG_CONFIG}" --libs libidn )' '-DLIBIDN -DHAVE_PR29_H'
- hydra_sed libssh '-lssh' '$( "${PKG_CONFIG}" --libs libssh )' '-DLIBSSH'
- hydra_sed memcached '-lmemcached' '$( "${PKG_CONFIG}" --libs libmemcached )' '-DLIBMCACHED'
- hydra_sed mongodb '-lmongoc-1.0' '$( "${PKG_CONFIG}" --libs libmongoc-1.0 )' '-DLIBMONGODB\|-DLIBBSON'
- hydra_sed mysql '-lmysqlclient' '$( ${CTARGET:-${CHOST}}-mysql_config --libs )' '-DLIBMYSQLCLIENT'
- hydra_sed ncurses '-lcurses' '$( "${PKG_CONFIG}" --libs ncurses )' '-DLIBNCURSES'
- hydra_sed pcre '-lpcre2-8' '$( "${PKG_CONFIG}" --libs libpcre2-8 )' '-DHAVE_PCRE'
- hydra_sed postgres '-lpq' '$( "${PKG_CONFIG}" --libs libpq )' '-DLIBPOSTGRES'
- hydra_sed oracle '-locci -lclntsh' '' '-DLIBORACLE'
- hydra_sed rdp '-lfreerdp2' '$( "${PKG_CONFIG}" --libs freerdp2 )' '-DLIBFREERDP'
- # TODO: https://bugs.gentoo.org/686148
- #hydra_sed subversion '-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1' '$( "${PKG_CONFIG}" --libs libsvn_client )' '-DLIBSVN'
- hydra_sed samba '-lsmbclient' '$( "${PKG_CONFIG}" --libs smbclient )' '-DLIBSMBCLIENT'
- hydra_sed subversion '-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1' '' '-DLIBSVN'
- hydra_sed zlib '-lz' '$( "${PKG_CONFIG}" --libs zlib )' '-DHAVE_ZLIB'
-
- sh configure \
- $(use gtk || echo --disable-xhydra) \
- $(usex debug '--debug' '') \
- --nostrip \
- --prefix=/usr \
- || die
-
- if use gtk ; then
- pushd hydra-gtk || die
- econf
- fi
-}
-
-src_compile() {
- emake XLIBPATHS=''
- use gtk && emake -C hydra-gtk
-}
-
-src_install() {
- dobin hydra pw-inspector
- use gtk && dobin hydra-gtk/src/xhydra
- dodoc CHANGES README
-}