Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/hydra/
Date: Wed, 13 Jul 2016 17:36:23
Message-Id: 1468431173.1308d1236e22393c2024cf75acd6a9097637cea4.blueness@gentoo
1 commit: 1308d1236e22393c2024cf75acd6a9097637cea4
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 13 17:32:53 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 13 17:32:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1308d123
7
8 net-analyzer/hydra: add libressl support
9
10 Package-Manager: portage-2.2.28
11
12 net-analyzer/hydra/hydra-8.1-r1.ebuild | 100 +++++++++++++++++++++++++++++++++
13 1 file changed, 100 insertions(+)
14
15 diff --git a/net-analyzer/hydra/hydra-8.1-r1.ebuild b/net-analyzer/hydra/hydra-8.1-r1.ebuild
16 new file mode 100644
17 index 0000000..919c683
18 --- /dev/null
19 +++ b/net-analyzer/hydra/hydra-8.1-r1.ebuild
20 @@ -0,0 +1,100 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +inherit eutils toolchain-funcs
27 +
28 +DESCRIPTION="Advanced parallized login hacker"
29 +HOMEPAGE="http://www.thc.org/thc-hydra/"
30 +SRC_URI="http://freeworld.thc.org/releases/${P}.tar.gz"
31 +
32 +LICENSE="GPL-3"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~ppc ~x86"
35 +IUSE="firebird gtk idn libressl mysql ncp oracle pcre postgres ssl subversion"
36 +
37 +RDEPEND="
38 + !libressl? ( dev-libs/openssl:0= )
39 + libressl? ( dev-libs/libressl:0= )
40 + sys-libs/ncurses:=
41 + firebird? ( dev-db/firebird )
42 + gtk? (
43 + dev-libs/atk
44 + dev-libs/glib:2
45 + x11-libs/gdk-pixbuf:2
46 + x11-libs/gtk+:2
47 + )
48 + idn? ( net-dns/libidn )
49 + mysql? ( virtual/mysql )
50 + ncp? ( net-fs/ncpfs )
51 + oracle? ( dev-db/oracle-instantclient-basic )
52 + pcre? ( dev-libs/libpcre )
53 + postgres? ( dev-db/postgresql:* )
54 + ssl? ( >=net-libs/libssh-0.4.0 )
55 + subversion? ( dev-vcs/subversion )
56 +"
57 +DEPEND="
58 + ${RDEPEND}
59 + virtual/pkgconfig
60 +"
61 +
62 +src_prepare() {
63 + # None of the settings in Makefile.unix are useful to us
64 + : > Makefile.unix
65 +
66 + sed -i \
67 + -e 's:|| echo.*$::' \
68 + -e '/\t-$(CC)/s:-::' \
69 + -e '/^OPTS/{s|=|+=|;s| -O3||}' \
70 + -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \
71 + Makefile.am || die
72 +
73 + epatch "${FILESDIR}"/${PN}-8.0-configure.patch
74 +}
75 +
76 +src_configure() {
77 + export OPTS="${CFLAGS}"
78 +
79 + if ! use subversion; then
80 + sed -i 's/-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1//;s/-DLIBSVN//' configure || die
81 + fi
82 +
83 + if ! use mysql; then
84 + sed -i 's/-lmysqlclient//;s/-DLIBMYSQLCLIENT//' configure || die
85 + fi
86 +
87 + # Linking against libtinfo might be enough here but pkg-config --libs tinfo
88 + # would require a USE=tinfo flag and recent linkers should drop libcurses
89 + # as needed
90 + sed -i \
91 + -e 's|-lcurses|'"$( $(tc-getPKG_CONFIG) --libs ncurses)"'|g' \
92 + configure || die
93 +
94 + # Note: despite the naming convention, the top level script is not an
95 + # autoconf-based script.
96 + export NCP_PATH=$(usex ncp /usr/$(get_libdir) '')
97 + export NCP_IPATH=$(usex ncp /usr/include '')
98 + sh configure \
99 + --prefix=/usr \
100 + --nostrip \
101 + $(use gtk && echo --disable-xhydra) \
102 + || die
103 +
104 + if use gtk ; then
105 + cd hydra-gtk && \
106 + econf
107 + fi
108 +}
109 +
110 +src_compile() {
111 + tc-export CC
112 + emake XLIBPATHS=''
113 + use gtk && emake -C hydra-gtk
114 +}
115 +
116 +src_install() {
117 + dobin hydra pw-inspector
118 + use gtk && dobin hydra-gtk/src/xhydra
119 + dodoc CHANGES README
120 +}