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