1 |
commit: 3b38108bc45b4930319a10e22f7c576dbc92a566 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 16 20:48:45 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 16 20:49:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b38108b |
7 |
|
8 |
net-analyzer/hydra: Version bump (bug #615584). |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
net-analyzer/hydra/Manifest | 1 + |
13 |
net-analyzer/hydra/files/hydra-8.4-configure.patch | 48 ++++++++++ |
14 |
net-analyzer/hydra/hydra-8.4.ebuild | 101 +++++++++++++++++++++ |
15 |
3 files changed, 150 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/hydra/Manifest b/net-analyzer/hydra/Manifest |
18 |
index 63141477f5b..01de2f14ba9 100644 |
19 |
--- a/net-analyzer/hydra/Manifest |
20 |
+++ b/net-analyzer/hydra/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST hydra-8.1.tar.gz 559031 SHA256 e4bc2fd11f97a8d985a38a31785c86d38cc60383e47a8f4a5c436351e5135f19 SHA512 7608dd365865e5976bea446faedaad9f0334e7572fd0ee47a601c471471fc7c8a922c7114f4df08705b34b29144d3a6552e66148adf6b0f92c67301119c94959 WHIRLPOOL b1555fe1a8257c88f8f5c110fce1d06834eb6dadad394b61e2a90c3289b8fdd117944da160871003b1583aefb81a02d5c49a653e8de7d3adcd07917ae760c83c |
23 |
+DIST hydra-8.4.tar.gz 1205609 SHA256 482846580888f54e000bb125e263a65c32fa28ba86c9d4012371cf55c3bdc140 SHA512 62c53f1725eb5b965d16d293cd90ab5e74779eba8fe2e2ab9094f51851fa24acfd74574f509a7914af8254e43197d803cca6b41eace3557d9599d79d695f6a48 WHIRLPOOL aecc31645e7775662e32b766baa942e92e31143e5b6fbe64620ee85179288dc60f3ada477b4605444769c9e76c17d94835db5f3651af409d5562a2e8971279ef |
24 |
|
25 |
diff --git a/net-analyzer/hydra/files/hydra-8.4-configure.patch b/net-analyzer/hydra/files/hydra-8.4-configure.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..ba99ff2acda |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/hydra/files/hydra-8.4-configure.patch |
30 |
@@ -0,0 +1,48 @@ |
31 |
+--- a/configure |
32 |
++++ b/configure |
33 |
+@@ -46,8 +46,6 @@ |
34 |
+ MYSQL_IPATH="" |
35 |
+ AFP_PATH="" |
36 |
+ AFP_IPATH="" |
37 |
+-NCP_PATH="" |
38 |
+-NCP_IPATH="" |
39 |
+ SVN_PATH="" |
40 |
+ SVN_IPATH="" |
41 |
+ APR_IPATH="" |
42 |
+@@ -679,36 +677,6 @@ |
43 |
+ fi |
44 |
+ |
45 |
+ echo "Checking for NCP (libncp.so / nwcalls.h) ..." |
46 |
+-for i in $LIBDIRS ; do |
47 |
+- if [ "X" = "X$NCP_PATH" ]; then |
48 |
+- if [ -f "$i/libncp.so" -o -f "$i/libncp.dylib" -o -f "$i/libncp.a" ]; then |
49 |
+- NCP_PATH="$i" |
50 |
+- fi |
51 |
+- fi |
52 |
+- if [ "X" = "X$NCP_PATH" ]; then |
53 |
+- TMP_LIB=`/bin/ls $i/libncp.so.* 2> /dev/null | grep ncp.` |
54 |
+- if [ -n "$TMP_LIB" ]; then |
55 |
+- NCP_PATH="$i" |
56 |
+- fi |
57 |
+- fi |
58 |
+- if [ "X" = "X$NCP_PATH" ]; then |
59 |
+- TMP_LIB=`/bin/ls $i/libncp.dll* 2> /dev/null | grep ncp.` |
60 |
+- if [ -n "$TMP_LIB" ]; then |
61 |
+- NCP_PATH="$i" |
62 |
+- fi |
63 |
+- fi |
64 |
+-done |
65 |
+-for i in $INCDIRS ; do |
66 |
+- if [ "X" != "X$NCP_PATH" ]; then |
67 |
+- if [ -f "$i/ncp/nwcalls.h" ]; then |
68 |
+- NCP_IPATH="$i" |
69 |
+- fi |
70 |
+- fi |
71 |
+-done |
72 |
+-if [ "X" != "X$DEBUG" ]; then |
73 |
+- echo DEBUG: NCP_PATH=$NCP_PATH/libncp |
74 |
+- echo DEBUG: NCP_IPATH=$NCP_IPATH/ncp/nwcalls.h |
75 |
+-fi |
76 |
+ if [ -n "$NCP_PATH" -a -n "$NCP_IPATH" ]; then |
77 |
+ echo " ... found" |
78 |
+ fi |
79 |
|
80 |
diff --git a/net-analyzer/hydra/hydra-8.4.ebuild b/net-analyzer/hydra/hydra-8.4.ebuild |
81 |
new file mode 100644 |
82 |
index 00000000000..ce796181b20 |
83 |
--- /dev/null |
84 |
+++ b/net-analyzer/hydra/hydra-8.4.ebuild |
85 |
@@ -0,0 +1,101 @@ |
86 |
+# Copyright 1999-2017 Gentoo Foundation |
87 |
+# Distributed under the terms of the GNU General Public License v2 |
88 |
+ |
89 |
+EAPI=6 |
90 |
+inherit eutils toolchain-funcs |
91 |
+ |
92 |
+DESCRIPTION="Advanced parallized login hacker" |
93 |
+HOMEPAGE="https://www.thc.org/thc-hydra/" |
94 |
+SRC_URI="https://www.thc.org/releases/${P}.tar.gz" |
95 |
+ |
96 |
+LICENSE="GPL-3" |
97 |
+SLOT="0" |
98 |
+KEYWORDS="~amd64 ~ppc ~x86" |
99 |
+IUSE="firebird gtk idn libressl mysql ncp oracle pcre postgres ssl subversion" |
100 |
+ |
101 |
+RDEPEND=" |
102 |
+ !libressl? ( dev-libs/openssl:0= ) |
103 |
+ libressl? ( dev-libs/libressl:0= ) |
104 |
+ sys-libs/ncurses:= |
105 |
+ firebird? ( dev-db/firebird ) |
106 |
+ gtk? ( |
107 |
+ dev-libs/atk |
108 |
+ dev-libs/glib:2 |
109 |
+ x11-libs/gdk-pixbuf:2 |
110 |
+ x11-libs/gtk+:2 |
111 |
+ ) |
112 |
+ idn? ( net-dns/libidn ) |
113 |
+ mysql? ( virtual/mysql ) |
114 |
+ ncp? ( net-fs/ncpfs ) |
115 |
+ oracle? ( dev-db/oracle-instantclient-basic ) |
116 |
+ pcre? ( dev-libs/libpcre ) |
117 |
+ postgres? ( dev-db/postgresql:* ) |
118 |
+ ssl? ( >=net-libs/libssh-0.4.0 ) |
119 |
+ subversion? ( dev-vcs/subversion ) |
120 |
+" |
121 |
+DEPEND=" |
122 |
+ ${RDEPEND} |
123 |
+ virtual/pkgconfig |
124 |
+" |
125 |
+PATCHES=( |
126 |
+ "${FILESDIR}"/${PN}-8.4-configure.patch |
127 |
+) |
128 |
+ |
129 |
+src_prepare() { |
130 |
+ default |
131 |
+ # None of the settings in Makefile.unix are useful to us |
132 |
+ : > Makefile.unix |
133 |
+ |
134 |
+ sed -i \ |
135 |
+ -e 's:|| echo.*$::' \ |
136 |
+ -e '/\t-$(CC)/s:-::' \ |
137 |
+ -e '/^OPTS/{s|=|+=|;s| -O3||}' \ |
138 |
+ -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \ |
139 |
+ Makefile.am || die |
140 |
+} |
141 |
+ |
142 |
+src_configure() { |
143 |
+ export OPTS="${CFLAGS}" |
144 |
+ |
145 |
+ if ! use subversion; then |
146 |
+ sed -i 's/-lsvn_client-1 -lapr-1 -laprutil-1 -lsvn_subr-1//;s/-DLIBSVN//' configure || die |
147 |
+ fi |
148 |
+ |
149 |
+ if ! use mysql; then |
150 |
+ sed -i 's/-lmysqlclient//;s/-DLIBMYSQLCLIENT//' configure || die |
151 |
+ fi |
152 |
+ |
153 |
+ # Linking against libtinfo might be enough here but pkg-config --libs tinfo |
154 |
+ # would require a USE=tinfo flag and recent linkers should drop libcurses |
155 |
+ # as needed |
156 |
+ sed -i \ |
157 |
+ -e 's|-lcurses|'"$( $(tc-getPKG_CONFIG) --libs ncurses)"'|g' \ |
158 |
+ configure || die |
159 |
+ |
160 |
+ # Note: despite the naming convention, the top level script is not an |
161 |
+ # autoconf-based script. |
162 |
+ export NCP_PATH=$(usex ncp /usr/$(get_libdir) '') |
163 |
+ export NCP_IPATH=$(usex ncp /usr/include '') |
164 |
+ sh configure \ |
165 |
+ --prefix=/usr \ |
166 |
+ --nostrip \ |
167 |
+ $(use gtk && echo --disable-xhydra) \ |
168 |
+ || die |
169 |
+ |
170 |
+ if use gtk ; then |
171 |
+ cd hydra-gtk && \ |
172 |
+ econf |
173 |
+ fi |
174 |
+} |
175 |
+ |
176 |
+src_compile() { |
177 |
+ tc-export CC |
178 |
+ emake XLIBPATHS='' |
179 |
+ use gtk && emake -C hydra-gtk |
180 |
+} |
181 |
+ |
182 |
+src_install() { |
183 |
+ dobin hydra pw-inspector |
184 |
+ use gtk && dobin hydra-gtk/src/xhydra |
185 |
+ dodoc CHANGES README |
186 |
+} |