summaryrefslogtreecommitdiff
path: root/net-analyzer/hydra
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/hydra')
-rw-r--r--net-analyzer/hydra/Manifest2
-rw-r--r--net-analyzer/hydra/hydra-8.9.1.ebuild105
2 files changed, 107 insertions, 0 deletions
diff --git a/net-analyzer/hydra/Manifest b/net-analyzer/hydra/Manifest
index 6bfbbecdaeb7..fc0d76201b31 100644
--- a/net-analyzer/hydra/Manifest
+++ b/net-analyzer/hydra/Manifest
@@ -3,7 +3,9 @@ AUX hydra-8.4-configure.patch 1217 BLAKE2B 005cd700dd32e56405afa7a37d630aa8b2fe6
DIST hydra-8.1.tar.gz 559031 BLAKE2B a3d2b52508a1d03a2f3d6cecf7100543487b5a0f6210dd6128d3ab48ad16ca3a8fad49709163830049ed8b9bb6891861f9c3f5fd5a6179b0a87a072877e829af SHA512 7608dd365865e5976bea446faedaad9f0334e7572fd0ee47a601c471471fc7c8a922c7114f4df08705b34b29144d3a6552e66148adf6b0f92c67301119c94959
DIST hydra-8.5.tar.gz 1193694 BLAKE2B bf202ccf58f64e2b57a15b5aaf8d4357b8d37d0a634179d2b4fe0c7d63da1e363b02e8578de7d984c75f1e764fc95477aecac9643954c05acbcc63865e066b0a SHA512 67fd92bd5983a94314334471c526b71ca77dec6e359e55f4fb2fc78160e2065957b6c9af1ff694bcc5334893a8b5e0fe1b39d984248bde4e55dc2a9f9a8b1271
DIST hydra-8.6.tar.gz 1200238 BLAKE2B d9470be5280ec51dfcb701cc3dd87ffaef7076c990a30e833c3fe7bc0f2b951f40eae26dab28ebbb1116f3d5e884a3c0819a5913c68e714a3b8597af75140829 SHA512 d5d70b5df54fbc556c6db9e9e44b869f29e54aca03dc3cc9e1777d310fcf604b9602ba08250c5bb0d009963dc0ca5c169e61d3f64d7ec2383760fc819d6b6c61
+DIST hydra-8.9.1.tar.gz 1186320 BLAKE2B 97c29cda5e26197ed66aa29555b0e4de3ef5b08bf65aa09fd0d564ee5f63825af71d6a41c4552a06a4c86a98dab5a69913c0b0200fe4e5068284ec7fc1f1061b SHA512 68b07dcb22bc55937e79035954417d820691e3a1eea169c959886ce6a741f545efe7879f31f41a1751779c923410dcc67fe8914bb9b5cf567edfc6fad3997d72
EBUILD hydra-8.1.ebuild 2233 BLAKE2B bfab4cabfd270198cebef133e46f02c0d37f31c6fe25e2328bea8afad5d1a6245e91935e241a7ebf641e2a6494c8ee375e51e095a38a1a133c2d3e7c1079b411 SHA512 ec97e4046bba01f8bb5e42c2524e88ede9dbb92d92d13cf02218ccabb8cbf94372af4b55e87cb64c73b745138f16cd63b2fef552304289db6761d5f1568ebd3c
EBUILD hydra-8.5-r1.ebuild 2384 BLAKE2B 5baadb7ef9b87ad01b91cb1cb72bc5494b7d5dae8e3af2b2f5942bf2b49c8bbfdcd56c8b106fe8ceb466c35319bb7bc22e5341277e103a0b6fba24a5df9865b6 SHA512 9f1420cf1752c897c81e94f28c745d29d28d5d2a398e13e1d54f60089c8ab9d7fb40ca48836a1cad8714ce2066bd1ac2908749b2e162841830f8ca74c0f68ea7
EBUILD hydra-8.6-r1.ebuild 2383 BLAKE2B 8632d894bc07e6f8a6582d062e6e2313771c468b47313634962388250d1a375b9ebb54d9c1a25ca57d246a825fc1b479868afa572813bfa6d6f11e09fc6cc927 SHA512 80a5bdf8bbd61d899c90c8b54e2a8a072ffcd8cc64e68479581c5895f6600b6ffd461b124e6ea0f406788ded984f4463c563bd2a73d2d0fed65b7553e70763e0
+EBUILD hydra-8.9.1.ebuild 2365 BLAKE2B a774ceb88fbc563a1306d9ec8b3e09095e693c73c037f064f1fc0d58d2be81eaab1ffaf7b0b278132dca3f93ec6fcb74f12ef19071da30a25856f6a11cc97b0a SHA512 4a9021fd787fdfc587b5ad585f5ec223e0876ef75baef4c7c397ecc54598858760d651ff4c10cc03e225708ebd26b86f0b4cfe22f8be752e419c510afde8d763
MISC metadata.xml 440 BLAKE2B e3d225870d374fef1dfc92508a273aa3be760b20b994d9f0d0060be29c39411fefa865fd812a3979fbf7f338dd850d7d22a2947caf6cafbb66b4209bdd73090e SHA512 7ea011416c0de77c47fb7d8276cdcbefe0a11a9f9bb9b9a1d763f7f0c1bae705aea7db6252ba3284e3141c257216c845b8353c4a944c67ba3c8881467d827afa
diff --git a/net-analyzer/hydra/hydra-8.9.1.ebuild b/net-analyzer/hydra/hydra-8.9.1.ebuild
new file mode 100644
index 000000000000..04d20a0858d9
--- /dev/null
+++ b/net-analyzer/hydra/hydra-8.9.1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit toolchain-funcs
+
+DESCRIPTION="Advanced parallized login hacker"
+HOMEPAGE="https://github.com/vanhauser-thc/thc-hydra"
+SRC_URI="
+ ${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="firebird gtk idn libressl mysql ncp oracle pcre postgres ssl subversion"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ sys-libs/ncurses:=
+ firebird? ( dev-db/firebird )
+ gtk? (
+ dev-libs/atk
+ dev-libs/glib:2
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ )
+ idn? ( net-dns/libidn:0= )
+ mysql? ( dev-db/mysql-connector-c:0= )
+ ncp? ( net-fs/ncpfs )
+ oracle? ( dev-db/oracle-instantclient-basic )
+ pcre? ( dev-libs/libpcre )
+ postgres? ( dev-db/postgresql:* )
+ ssl? ( >=net-libs/libssh-0.4.0 )
+ subversion? ( dev-vcs/subversion )
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-8.4-configure.patch
+)
+S=${WORKDIR}/thc-${P}
+
+src_prepare() {
+ default
+
+ # None of the settings in Makefile.unix are useful to us
+ : > Makefile.unix
+
+ 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() {
+ export OPTS="${CFLAGS}"
+
+ if ! use subversion; then
+ sed -i 's/-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1//;s/-DLIBSVN//' configure || die
+ fi
+
+ if ! use mysql; then
+ sed -i 's/-lmysqlclient//;s/-DLIBMYSQLCLIENT//' configure || die
+ fi
+
+ # Linking against libtinfo might be enough here but pkg-config --libs tinfo
+ # would require a USE=tinfo flag and recent linkers should drop libcurses
+ # as needed
+ sed -i \
+ -e 's|-lcurses|'"$( $(tc-getPKG_CONFIG) --libs ncurses)"'|g' \
+ configure || die
+
+ # Note: despite the naming convention, the top level script is not an
+ # autoconf-based script.
+ export NCP_PATH=$(usex ncp /usr/$(get_libdir) '')
+ export NCP_IPATH=$(usex ncp /usr/include '')
+ sh configure \
+ --prefix=/usr \
+ --nostrip \
+ $(use gtk && echo --disable-xhydra) \
+ || die
+
+ if use gtk ; then
+ cd hydra-gtk && \
+ econf
+ fi
+}
+
+src_compile() {
+ tc-export CC
+ emake XLIBPATHS=''
+ use gtk && emake -C hydra-gtk
+}
+
+src_install() {
+ dobin hydra pw-inspector
+ use gtk && dobin hydra-gtk/src/xhydra
+ dodoc CHANGES README
+}