Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hydra/
Date: Mon, 01 Apr 2019 08:41:52
Message-Id: 1554108103.ff25cba068ee60eb09365d37b2674aef0f7e484f.jer@gentoo
1 commit: ff25cba068ee60eb09365d37b2674aef0f7e484f
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 1 08:41:17 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 1 08:41:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff25cba0
7
8 net-analyzer/hydra: Version 8.9.1
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-analyzer/hydra/Manifest | 1 +
14 net-analyzer/hydra/hydra-8.9.1.ebuild | 105 ++++++++++++++++++++++++++++++++++
15 2 files changed, 106 insertions(+)
16
17 diff --git a/net-analyzer/hydra/Manifest b/net-analyzer/hydra/Manifest
18 index 051ba2edc07..0c6c1e156ca 100644
19 --- a/net-analyzer/hydra/Manifest
20 +++ b/net-analyzer/hydra/Manifest
21 @@ -1,3 +1,4 @@
22 DIST hydra-8.1.tar.gz 559031 BLAKE2B a3d2b52508a1d03a2f3d6cecf7100543487b5a0f6210dd6128d3ab48ad16ca3a8fad49709163830049ed8b9bb6891861f9c3f5fd5a6179b0a87a072877e829af SHA512 7608dd365865e5976bea446faedaad9f0334e7572fd0ee47a601c471471fc7c8a922c7114f4df08705b34b29144d3a6552e66148adf6b0f92c67301119c94959
23 DIST hydra-8.5.tar.gz 1193694 BLAKE2B bf202ccf58f64e2b57a15b5aaf8d4357b8d37d0a634179d2b4fe0c7d63da1e363b02e8578de7d984c75f1e764fc95477aecac9643954c05acbcc63865e066b0a SHA512 67fd92bd5983a94314334471c526b71ca77dec6e359e55f4fb2fc78160e2065957b6c9af1ff694bcc5334893a8b5e0fe1b39d984248bde4e55dc2a9f9a8b1271
24 DIST hydra-8.6.tar.gz 1200238 BLAKE2B d9470be5280ec51dfcb701cc3dd87ffaef7076c990a30e833c3fe7bc0f2b951f40eae26dab28ebbb1116f3d5e884a3c0819a5913c68e714a3b8597af75140829 SHA512 d5d70b5df54fbc556c6db9e9e44b869f29e54aca03dc3cc9e1777d310fcf604b9602ba08250c5bb0d009963dc0ca5c169e61d3f64d7ec2383760fc819d6b6c61
25 +DIST hydra-8.9.1.tar.gz 1186320 BLAKE2B 97c29cda5e26197ed66aa29555b0e4de3ef5b08bf65aa09fd0d564ee5f63825af71d6a41c4552a06a4c86a98dab5a69913c0b0200fe4e5068284ec7fc1f1061b SHA512 68b07dcb22bc55937e79035954417d820691e3a1eea169c959886ce6a741f545efe7879f31f41a1751779c923410dcc67fe8914bb9b5cf567edfc6fad3997d72
26
27 diff --git a/net-analyzer/hydra/hydra-8.9.1.ebuild b/net-analyzer/hydra/hydra-8.9.1.ebuild
28 new file mode 100644
29 index 00000000000..04d20a0858d
30 --- /dev/null
31 +++ b/net-analyzer/hydra/hydra-8.9.1.ebuild
32 @@ -0,0 +1,105 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit toolchain-funcs
38 +
39 +DESCRIPTION="Advanced parallized login hacker"
40 +HOMEPAGE="https://github.com/vanhauser-thc/thc-hydra"
41 +SRC_URI="
42 + ${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz
43 +"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~ppc ~x86"
48 +IUSE="firebird gtk idn libressl mysql ncp oracle pcre postgres ssl subversion"
49 +
50 +RDEPEND="
51 + !libressl? ( dev-libs/openssl:0= )
52 + libressl? ( dev-libs/libressl:0= )
53 + sys-libs/ncurses:=
54 + firebird? ( dev-db/firebird )
55 + gtk? (
56 + dev-libs/atk
57 + dev-libs/glib:2
58 + x11-libs/gdk-pixbuf:2
59 + x11-libs/gtk+:2
60 + )
61 + idn? ( net-dns/libidn:0= )
62 + mysql? ( dev-db/mysql-connector-c:0= )
63 + ncp? ( net-fs/ncpfs )
64 + oracle? ( dev-db/oracle-instantclient-basic )
65 + pcre? ( dev-libs/libpcre )
66 + postgres? ( dev-db/postgresql:* )
67 + ssl? ( >=net-libs/libssh-0.4.0 )
68 + subversion? ( dev-vcs/subversion )
69 +"
70 +DEPEND="
71 + ${RDEPEND}
72 + virtual/pkgconfig
73 +"
74 +PATCHES=(
75 + "${FILESDIR}"/${PN}-8.4-configure.patch
76 +)
77 +S=${WORKDIR}/thc-${P}
78 +
79 +src_prepare() {
80 + default
81 +
82 + # None of the settings in Makefile.unix are useful to us
83 + : > Makefile.unix
84 +
85 + sed -i \
86 + -e 's:|| echo.*$::' \
87 + -e '/\t-$(CC)/s:-::' \
88 + -e '/^OPTS/{s|=|+=|;s| -O3||}' \
89 + -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \
90 + Makefile.am || die
91 +}
92 +
93 +src_configure() {
94 + export OPTS="${CFLAGS}"
95 +
96 + if ! use subversion; then
97 + sed -i 's/-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1//;s/-DLIBSVN//' configure || die
98 + fi
99 +
100 + if ! use mysql; then
101 + sed -i 's/-lmysqlclient//;s/-DLIBMYSQLCLIENT//' configure || die
102 + fi
103 +
104 + # Linking against libtinfo might be enough here but pkg-config --libs tinfo
105 + # would require a USE=tinfo flag and recent linkers should drop libcurses
106 + # as needed
107 + sed -i \
108 + -e 's|-lcurses|'"$( $(tc-getPKG_CONFIG) --libs ncurses)"'|g' \
109 + configure || die
110 +
111 + # Note: despite the naming convention, the top level script is not an
112 + # autoconf-based script.
113 + export NCP_PATH=$(usex ncp /usr/$(get_libdir) '')
114 + export NCP_IPATH=$(usex ncp /usr/include '')
115 + sh configure \
116 + --prefix=/usr \
117 + --nostrip \
118 + $(use gtk && echo --disable-xhydra) \
119 + || die
120 +
121 + if use gtk ; then
122 + cd hydra-gtk && \
123 + econf
124 + fi
125 +}
126 +
127 +src_compile() {
128 + tc-export CC
129 + emake XLIBPATHS=''
130 + use gtk && emake -C hydra-gtk
131 +}
132 +
133 +src_install() {
134 + dobin hydra pw-inspector
135 + use gtk && dobin hydra-gtk/src/xhydra
136 + dodoc CHANGES README
137 +}