1 |
commit: 7bdec3e9fcddc21a864e41d542ef7343ef518420 |
2 |
Author: orbea <orbea <AT> riseup <DOT> net> |
3 |
AuthorDate: Sun Jul 3 02:45:02 2022 +0000 |
4 |
Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> |
5 |
CommitDate: Sun Jul 3 17:47:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=7bdec3e9 |
7 |
|
8 |
net-misc/aria2: Remove package |
9 |
|
10 |
Works with libressl-3.5.x and aria2-1.36.0::gentoo. |
11 |
|
12 |
Signed-off-by: orbea <orbea <AT> riseup.net> |
13 |
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com> |
14 |
|
15 |
net-misc/aria2/Manifest | 1 - |
16 |
net-misc/aria2/aria2-1.34.0-r1.ebuild | 156 --------------------- |
17 |
.../aria2/files/aria2-1.34.0-make_unique.patch | 44 ------ |
18 |
.../aria2/files/aria2-1.34.0-mask-headers.patch | 46 ------ |
19 |
net-misc/aria2/files/aria2-libressl.patch | 13 -- |
20 |
net-misc/aria2/metadata.xml | 25 ---- |
21 |
6 files changed, 285 deletions(-) |
22 |
|
23 |
diff --git a/net-misc/aria2/Manifest b/net-misc/aria2/Manifest |
24 |
deleted file mode 100644 |
25 |
index f26538b..0000000 |
26 |
--- a/net-misc/aria2/Manifest |
27 |
+++ /dev/null |
28 |
@@ -1 +0,0 @@ |
29 |
-DIST aria2-1.34.0.tar.xz 1525908 BLAKE2B 479145af229f5fe864e54c511197bedb306199dbda608416aa295930a8392c7a118993b5a1634db20b380ab448cc8a397a351b6b64560ca263a0818d47a1ae64 SHA512 80bc43e242c06acc95030021cb347b4ec230729f3d7e512ca1932941b34ef95c312a34007a226869e5d720839a400e66cdb072ccab5d42228d8cf3d828723dcc |
30 |
|
31 |
diff --git a/net-misc/aria2/aria2-1.34.0-r1.ebuild b/net-misc/aria2/aria2-1.34.0-r1.ebuild |
32 |
deleted file mode 100644 |
33 |
index 3b0c69c..0000000 |
34 |
--- a/net-misc/aria2/aria2-1.34.0-r1.ebuild |
35 |
+++ /dev/null |
36 |
@@ -1,156 +0,0 @@ |
37 |
-# Copyright 1999-2021 Gentoo Authors |
38 |
-# Distributed under the terms of the GNU General Public License v2 |
39 |
- |
40 |
-EAPI="6" |
41 |
- |
42 |
-inherit bash-completion-r1 |
43 |
- |
44 |
-DESCRIPTION="A download utility with segmented downloading with BitTorrent support" |
45 |
-HOMEPAGE="https://aria2.github.io/" |
46 |
-SRC_URI="https://github.com/aria2/${PN}/releases/download/release-${PV}/${P}.tar.xz" |
47 |
- |
48 |
-LICENSE="GPL-2" |
49 |
-KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux" |
50 |
-SLOT="0" |
51 |
-IUSE="adns bittorrent +gnutls jemalloc libuv +libxml2 metalink +nettle nls sqlite scripts ssh ssl tcmalloc test xmlrpc" |
52 |
- |
53 |
-CDEPEND="sys-libs/zlib:0= |
54 |
- ssl? ( |
55 |
- app-misc/ca-certificates |
56 |
- gnutls? ( >=net-libs/gnutls-1.2.9:0= ) |
57 |
- !gnutls? ( dev-libs/openssl:0= ) ) |
58 |
- adns? ( >=net-dns/c-ares-1.5.0:0= ) |
59 |
- bittorrent? ( |
60 |
- ssl? ( |
61 |
- gnutls? ( |
62 |
- nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-6:0= ) |
63 |
- !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
64 |
- !ssl? ( |
65 |
- nettle? ( >=dev-libs/nettle-2.4:0=[gmp] >=dev-libs/gmp-6:0= ) |
66 |
- !nettle? ( >=dev-libs/libgcrypt-1.2.2:0= ) ) ) |
67 |
- jemalloc? ( dev-libs/jemalloc ) |
68 |
- libuv? ( >=dev-libs/libuv-1.13:0= ) |
69 |
- metalink? ( |
70 |
- libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
71 |
- !libxml2? ( dev-libs/expat:0= ) ) |
72 |
- sqlite? ( dev-db/sqlite:3= ) |
73 |
- ssh? ( net-libs/libssh2:= ) |
74 |
- tcmalloc? ( dev-util/google-perftools ) |
75 |
- xmlrpc? ( |
76 |
- libxml2? ( >=dev-libs/libxml2-2.6.26:2= ) |
77 |
- !libxml2? ( dev-libs/expat:0= ) )" |
78 |
- |
79 |
-DEPEND="${CDEPEND} |
80 |
- app-arch/xz-utils |
81 |
- virtual/pkgconfig |
82 |
- nls? ( sys-devel/gettext ) |
83 |
- test? ( >=dev-util/cppunit-1.12.0:0 )" |
84 |
-RDEPEND="${CDEPEND} |
85 |
- nls? ( virtual/libiconv virtual/libintl ) |
86 |
- scripts? ( dev-lang/ruby )" |
87 |
- |
88 |
-# xmlrpc has no explicit switch, it's turned out by any XML library |
89 |
-# so metalink implicitly forces it on |
90 |
-REQUIRED_USE="?? ( jemalloc tcmalloc ) |
91 |
- metalink? ( xmlrpc )" |
92 |
-RESTRICT="!test? ( test )" |
93 |
- |
94 |
-pkg_setup() { |
95 |
- if use scripts && ! use xmlrpc; then |
96 |
- ewarn "Please note that you may need to enable USE=xmlrpc to run the aria2rpc" |
97 |
- ewarn "and aria2mon scripts against the local aria2." |
98 |
- fi |
99 |
-} |
100 |
- |
101 |
-src_prepare() { |
102 |
- eapply "${FILESDIR}"/${P}-make_unique.patch |
103 |
- # https://bugs.gentoo.org/674622 (CVE-2019-3500) |
104 |
- eapply "${FILESDIR}"/${P}-mask-headers.patch |
105 |
- eapply "${FILESDIR}"/aria2-libressl.patch |
106 |
- default |
107 |
- sed -i -e "s|/tmp|${T}|" test/*.cc test/*.txt || die "sed failed" |
108 |
-} |
109 |
- |
110 |
-src_configure() { |
111 |
- local myconf=( |
112 |
- # threads, epoll: check for best portability |
113 |
- |
114 |
- # do not try to compile and run a test LIBXML program |
115 |
- --disable-xmltest |
116 |
- # enable the shared library |
117 |
- --enable-libaria2 |
118 |
- # zlib should always be available anyway |
119 |
- --with-libz |
120 |
- --with-ca-bundle="${EPREFIX}/etc/ssl/certs/ca-certificates.crt" |
121 |
- |
122 |
- # optional features |
123 |
- $(use_enable bittorrent) |
124 |
- $(use_enable metalink) |
125 |
- $(use_enable nls) |
126 |
- $(use_with adns libcares) |
127 |
- $(use_with jemalloc) |
128 |
- $(use_with libuv) |
129 |
- $(use_with sqlite sqlite3) |
130 |
- $(use_with ssh libssh2) |
131 |
- $(use_with tcmalloc) |
132 |
- ) |
133 |
- |
134 |
- # SSL := gnutls / openssl |
135 |
- # USE=ssl |
136 |
- # + USE=gnutls -> gnutls |
137 |
- # + USE=-gnutls -> openssl |
138 |
- |
139 |
- if use ssl; then |
140 |
- myconf+=( $(use_with gnutls) $(use_with !gnutls openssl) ) |
141 |
- else |
142 |
- myconf+=( --without-gnutls --without-openssl ) |
143 |
- fi |
144 |
- |
145 |
- # message-digest := nettle / gcrypt / openssl |
146 |
- # bignum := nettle+gmp / gcrypt / openssl |
147 |
- # bittorrent := message-digest + bignum |
148 |
- # USE=bittorrent |
149 |
- # + USE=(ssl -gnutls) -> openssl |
150 |
- # + USE=nettle -> nettle+gmp |
151 |
- # + USE=-nettle -> gcrypt |
152 |
- |
153 |
- if use !bittorrent || use ssl && use !gnutls; then |
154 |
- myconf+=( --without-libgcrypt --without-libnettle --without-libgmp ) |
155 |
- else |
156 |
- myconf+=( $(use_with !nettle libgcrypt) |
157 |
- $(use_with nettle libnettle) $(use_with nettle libgmp) ) |
158 |
- fi |
159 |
- |
160 |
- # metalink+xmlrpc := libxml2 / expat |
161 |
- # USE=(metalink || xmlrpc) |
162 |
- # + USE=libxml2 -> libxml2 |
163 |
- # + USE=-libxml2 -> expat |
164 |
- |
165 |
- if use metalink || use xmlrpc; then |
166 |
- myconf+=( $(use_with !libxml2 libexpat) $(use_with libxml2) ) |
167 |
- else |
168 |
- myconf+=( --without-libexpat --without-libxml2 ) |
169 |
- fi |
170 |
- |
171 |
- # Note: |
172 |
- # - always enable gzip/http compression since zlib should always be available anyway |
173 |
- # - always enable epoll since we can assume kernel 2.6.x |
174 |
- # - other options for threads: solaris, pth, win32 |
175 |
- econf "${myconf[@]}" |
176 |
-} |
177 |
- |
178 |
-src_install() { |
179 |
- default |
180 |
- rm -rf "${D}"/usr/share/doc/aria2 \ |
181 |
- "${D}"/usr/share/doc/${PF}/README{,.html} |
182 |
- |
183 |
- dobashcomp doc/bash_completion/aria2c |
184 |
- use scripts && dobin doc/xmlrpc/aria2{mon,rpc} |
185 |
-} |
186 |
- |
187 |
-pkg_postinst() { |
188 |
- if use xmlrpc; then |
189 |
- elog "If you would like to use the additional aria2mon and aria2rpc tools," |
190 |
- elog "you need to have \033[1mdev-lang/ruby\033[0m installed." |
191 |
- fi |
192 |
-} |
193 |
|
194 |
diff --git a/net-misc/aria2/files/aria2-1.34.0-make_unique.patch b/net-misc/aria2/files/aria2-1.34.0-make_unique.patch |
195 |
deleted file mode 100644 |
196 |
index 448d6cf..0000000 |
197 |
--- a/net-misc/aria2/files/aria2-1.34.0-make_unique.patch |
198 |
+++ /dev/null |
199 |
@@ -1,44 +0,0 @@ |
200 |
-From e8e04d6f22a507e8374651d3d2343cd9fb986993 Mon Sep 17 00:00:00 2001 |
201 |
-From: Tatsuhiro Tsujikawa <tatsuhiro.t@×××××.com> |
202 |
-Date: Thu, 17 May 2018 18:39:44 +0900 |
203 |
-Subject: [PATCH] Fix build failure when InternalDHKeyExchange is used |
204 |
- |
205 |
---- |
206 |
- src/bignum.h | 10 ++++++---- |
207 |
- 1 file changed, 6 insertions(+), 4 deletions(-) |
208 |
- |
209 |
-diff --git a/src/bignum.h b/src/bignum.h |
210 |
-index e59ab6bbf..5fb4402bc 100644 |
211 |
---- a/src/bignum.h |
212 |
-+++ b/src/bignum.h |
213 |
-@@ -19,6 +19,8 @@ |
214 |
- #include <memory> |
215 |
- #include <stdint.h> |
216 |
- |
217 |
-+#include "a2functional.h" |
218 |
-+ |
219 |
- namespace bignum { |
220 |
- |
221 |
- template <size_t dim> class ulong { |
222 |
-@@ -31,17 +33,17 @@ template <size_t dim> class ulong { |
223 |
- std::unique_ptr<char_t[]> buf_; |
224 |
- |
225 |
- public: |
226 |
-- inline ulong() : buf_(make_unique<char_t[]>(dim)) {} |
227 |
-- inline ulong(size_t t) : buf_(make_unique<char_t[]>(dim)) |
228 |
-+ inline ulong() : buf_(aria2::make_unique<char_t[]>(dim)) {} |
229 |
-+ inline ulong(size_t t) : buf_(aria2::make_unique<char_t[]>(dim)) |
230 |
- { |
231 |
- memcpy(buf_.get(), (char_t*)&t, sizeof(t)); |
232 |
- } |
233 |
-- inline ulong(const ulong<dim>& rhs) : buf_(make_unique<char_t[]>(dim)) |
234 |
-+ inline ulong(const ulong<dim>& rhs) : buf_(aria2::make_unique<char_t[]>(dim)) |
235 |
- { |
236 |
- memcpy(buf_.get(), rhs.buf_.get(), dim); |
237 |
- } |
238 |
- explicit inline ulong(const char_t* data, size_t size) |
239 |
-- : buf_(make_unique<char_t[]>(dim)) |
240 |
-+ : buf_(aria2::make_unique<char_t[]>(dim)) |
241 |
- { |
242 |
- if (size > dim) { |
243 |
- throw std::bad_alloc(); |
244 |
|
245 |
diff --git a/net-misc/aria2/files/aria2-1.34.0-mask-headers.patch b/net-misc/aria2/files/aria2-1.34.0-mask-headers.patch |
246 |
deleted file mode 100644 |
247 |
index 694681d..0000000 |
248 |
--- a/net-misc/aria2/files/aria2-1.34.0-mask-headers.patch |
249 |
+++ /dev/null |
250 |
@@ -1,46 +0,0 @@ |
251 |
-From 37368130ca7de5491a75fd18a20c5c5cc641824a Mon Sep 17 00:00:00 2001 |
252 |
-From: Tatsuhiro Tsujikawa <tatsuhiro.t@×××××.com> |
253 |
-Date: Sat, 5 Jan 2019 09:32:40 +0900 |
254 |
-Subject: [PATCH] Mask headers |
255 |
- |
256 |
---- |
257 |
- src/HttpConnection.cc | 18 ++++++++++++------ |
258 |
- 1 file changed, 12 insertions(+), 6 deletions(-) |
259 |
- |
260 |
-diff --git a/src/HttpConnection.cc b/src/HttpConnection.cc |
261 |
-index 77cb9d27a..be5b97723 100644 |
262 |
---- a/src/HttpConnection.cc |
263 |
-+++ b/src/HttpConnection.cc |
264 |
-@@ -102,11 +102,17 @@ std::string HttpConnection::eraseConfidentialInfo(const std::string& request) |
265 |
- std::string result; |
266 |
- std::string line; |
267 |
- while (getline(istr, line)) { |
268 |
-- if (util::startsWith(line, "Authorization: Basic")) { |
269 |
-- result += "Authorization: Basic ********\n"; |
270 |
-+ if (util::istartsWith(line, "Authorization: ")) { |
271 |
-+ result += "Authorization: <snip>\n"; |
272 |
- } |
273 |
-- else if (util::startsWith(line, "Proxy-Authorization: Basic")) { |
274 |
-- result += "Proxy-Authorization: Basic ********\n"; |
275 |
-+ else if (util::istartsWith(line, "Proxy-Authorization: ")) { |
276 |
-+ result += "Proxy-Authorization: <snip>\n"; |
277 |
-+ } |
278 |
-+ else if (util::istartsWith(line, "Cookie: ")) { |
279 |
-+ result += "Cookie: <snip>\n"; |
280 |
-+ } |
281 |
-+ else if (util::istartsWith(line, "Set-Cookie: ")) { |
282 |
-+ result += "Set-Cookie: <snip>\n"; |
283 |
- } |
284 |
- else { |
285 |
- result += line; |
286 |
-@@ -154,8 +160,8 @@ std::unique_ptr<HttpResponse> HttpConnection::receiveResponse() |
287 |
- const auto& proc = outstandingHttpRequests_.front()->getHttpHeaderProcessor(); |
288 |
- if (proc->parse(socketRecvBuffer_->getBuffer(), |
289 |
- socketRecvBuffer_->getBufferLength())) { |
290 |
-- A2_LOG_INFO( |
291 |
-- fmt(MSG_RECEIVE_RESPONSE, cuid_, proc->getHeaderString().c_str())); |
292 |
-+ A2_LOG_INFO(fmt(MSG_RECEIVE_RESPONSE, cuid_, |
293 |
-+ eraseConfidentialInfo(proc->getHeaderString()).c_str())); |
294 |
- auto result = proc->getResult(); |
295 |
- if (result->getStatusCode() / 100 == 1) { |
296 |
- socketRecvBuffer_->drain(proc->getLastBytesProcessed()); |
297 |
|
298 |
diff --git a/net-misc/aria2/files/aria2-libressl.patch b/net-misc/aria2/files/aria2-libressl.patch |
299 |
deleted file mode 100644 |
300 |
index 4c20b1b..0000000 |
301 |
--- a/net-misc/aria2/files/aria2-libressl.patch |
302 |
+++ /dev/null |
303 |
@@ -1,13 +0,0 @@ |
304 |
-diff --git a/src/libssl_compat.h b/src/libssl_compat.h |
305 |
-index 0e03bfd7..cb2e3d97 100644 |
306 |
---- a/src/libssl_compat.h |
307 |
-+++ b/src/libssl_compat.h |
308 |
-@@ -44,6 +44,7 @@ |
309 |
- #endif // !defined(LIBRESSL_VERSION_NUMBER) |
310 |
- |
311 |
- #define OPENSSL_101_API \ |
312 |
-- (!LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x1010000fL) |
313 |
-+ ((!LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x1010000fL) || \ |
314 |
-+ (LIBRESSL_IN_USE && LIBRESSL_VERSION_NUMBER >= 0x20700000L)) |
315 |
- |
316 |
- #endif // LIBSSL_COMPAT_H |
317 |
|
318 |
diff --git a/net-misc/aria2/metadata.xml b/net-misc/aria2/metadata.xml |
319 |
deleted file mode 100644 |
320 |
index e5e58f4..0000000 |
321 |
--- a/net-misc/aria2/metadata.xml |
322 |
+++ /dev/null |
323 |
@@ -1,25 +0,0 @@ |
324 |
-<?xml version="1.0" encoding="UTF-8"?> |
325 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
326 |
-<pkgmetadata> |
327 |
- <maintainer type="person"> |
328 |
- <email>dev-zero@g.o</email> |
329 |
- <name>Tiziano Müller</name> |
330 |
- </maintainer> |
331 |
- <maintainer type="person"> |
332 |
- <email>mgorny@g.o</email> |
333 |
- <name>Michał Górny</name> |
334 |
- </maintainer> |
335 |
- <use> |
336 |
- <flag name="bittorrent">Enable support for the bittorrent protocol.</flag> |
337 |
- <flag name="libuv">Use <pkg>dev-libs/libuv</pkg> backend.</flag> |
338 |
- <flag name="libxml2">Use <pkg>dev-libs/libxml2</pkg> for XML parsing (preferred) instead of <pkg>dev-libs/expat</pkg>.</flag> |
339 |
- <flag name="nettle">Use <pkg>dev-libs/nettle</pkg> and <pkg>dev-libs/gmp</pkg> for bittorrent/metalink crypto instead of <pkg>dev-libs/libgcrypt</pkg> (when <pkg>dev-libs/openssl</pkg> is not being used).</flag> |
340 |
- <flag name="metalink">Enable support for metalink.</flag> |
341 |
- <flag name="scripts">Install additional scripts which use aria2's xmlrpc functionality.</flag> |
342 |
- <flag name="ssh">Enable SFTP support.</flag> |
343 |
- </use> |
344 |
- <upstream> |
345 |
- <remote-id type="sourceforge">aria2</remote-id> |
346 |
- <remote-id type="github">tatsuhiro-t/aria2</remote-id> |
347 |
- </upstream> |
348 |
-</pkgmetadata> |