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