Gentoo Archives: gentoo-commits

From: Sven Wegener <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/pdns-recursor/, net-dns/pdns-recursor/files/
Date: Mon, 30 Oct 2017 13:28:00
Message-Id: 1509370057.ab156804ebf6f4d95dd19e8db0cef23a4f034f9d.swegener@gentoo
1 commit: ab156804ebf6f4d95dd19e8db0cef23a4f034f9d
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 30 10:22:39 2017 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 30 13:27:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab156804
7
8 net-dns/pdns-recursor: Cleanup
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.4
11
12 net-dns/pdns-recursor/Manifest | 2 -
13 net-dns/pdns-recursor/files/pdns-recursor | 27 ----
14 .../pdns-recursor-4.0.3-boost-1.61-fcontext.patch | 152 ---------------------
15 .../files/pdns-recursor-4.0.3-ecdsa.patch | 29 ----
16 .../pdns-recursor/pdns-recursor-4.0.4-r1.ebuild | 75 ----------
17 net-dns/pdns-recursor/pdns-recursor-4.0.4.ebuild | 75 ----------
18 net-dns/pdns-recursor/pdns-recursor-4.0.5.ebuild | 75 ----------
19 7 files changed, 435 deletions(-)
20
21 diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
22 index a8614864042..4ab0dbb01b1 100644
23 --- a/net-dns/pdns-recursor/Manifest
24 +++ b/net-dns/pdns-recursor/Manifest
25 @@ -1,4 +1,2 @@
26 -DIST pdns-recursor-4.0.4.tar.bz2 1050596 SHA256 2338778f49ccd03401e65f6f4b39047890e691c8ff6d810ecee45321fb4f1e4d SHA512 9473dfe9abc509b2bb953139dd7892de2027ee1508902fa0c2cd30dd9a88878fcf44370b8372d573cbab12de32bb8c604005d3b39ea34db2ef86786e689d36ab WHIRLPOOL b205ff800e49cba87f4796c7c2e4b5835119480dbcf07e404d37f86c65e7f45095fb2a936df0f82f85e6e869a87ec0355b1e5ddc5d29480e07397fc823fb1f6a
27 -DIST pdns-recursor-4.0.5.tar.bz2 1066145 SHA256 ba43ce4280b3a06afebe58c5d63680f51dd525c63d1de7f3b229b380e6b1b7af SHA512 30d41033d4650a496b2a699b03c8cb5adb3e803420330f09159cf7ca2ce1bab4818f4a9c9ce7a99d2676e31b1e30289198af1f049cd1f309b93f6aa1a05d4cb5 WHIRLPOOL e03097c44df5ca5222b33b9477a5f3e67334508a830b13054eed249ffb0cb254d66e7f3c6b302e5450b86cdee48146f12847348ac5e49777caf0094af34ad252
28 DIST pdns-recursor-4.0.6.tar.bz2 1105423 SHA256 f2182ac644268bb08b865a71351f11d75c5015ac0608a1469eb4c1cd5494d60d SHA512 2203fd96469deded1da677344485da221eec036b1ad9fb418a89cd4477d73f2a6fcf984a39b574561df6946f440ddf1982de20cd39d7204da9c27e74216d1159 WHIRLPOOL a2eece8a6cdfcd6c791cb6fa42053d524b4e54f1431d78345640d7f2d9f3079939c7905767abe65abb977bce45647fb7232d1148dac13737625ee4bfae221da8
29 DIST pdns-recursor-4.1.0-rc1.tar.bz2 1179746 SHA256 62c601ef0e591aebcae6be09b746f8384680a2b772a75dc23f0d8f4b4e54af77 SHA512 1dd602bf9ca089c94c8a2b76422e4a78ca734b11869e8f0a9d5e6e0c60d84aaf75c93ac2c4c578a6fb3659862b95d187ad13d15a64436b32339f309dcf74f7b1 WHIRLPOOL bf3ac171e0901476cb563ef20006f2a207412d799675313b66cc26aca9bd18810fd04ffe2d4b4abc8bde3589ec051d9604ab1420ebddc1d47ecd7a9329af8551
30
31 diff --git a/net-dns/pdns-recursor/files/pdns-recursor b/net-dns/pdns-recursor/files/pdns-recursor
32 deleted file mode 100644
33 index ebff2b02b85..00000000000
34 --- a/net-dns/pdns-recursor/files/pdns-recursor
35 +++ /dev/null
36 @@ -1,27 +0,0 @@
37 -#!/sbin/openrc-run
38 -# Copyright 1999-2017 Gentoo Foundation
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -extra_started_commands="ping"
42 -
43 -depend() {
44 - need net
45 -}
46 -
47 -start() {
48 - ebegin "Starting PowerDNS Recursor"
49 - /usr/sbin/pdns_recursor --daemon=yes >/dev/null 2>&1
50 - eend $?
51 -}
52 -
53 -stop() {
54 - ebegin "Stopping PowerDNS Recursor"
55 - /usr/bin/rec_control quit >/dev/null 2>&1
56 - eend $?
57 -}
58 -
59 -ping() {
60 - ebegin "Pinging PowerDNS Recursor"
61 - /usr/bin/rec_control ping >/dev/null 2>&1
62 - eend $?
63 -}
64
65 diff --git a/net-dns/pdns-recursor/files/pdns-recursor-4.0.3-boost-1.61-fcontext.patch b/net-dns/pdns-recursor/files/pdns-recursor-4.0.3-boost-1.61-fcontext.patch
66 deleted file mode 100644
67 index c6cd9a32631..00000000000
68 --- a/net-dns/pdns-recursor/files/pdns-recursor-4.0.3-boost-1.61-fcontext.patch
69 +++ /dev/null
70 @@ -1,152 +0,0 @@
71 -diff --git a/mtasker_fcontext.cc b/mtasker_fcontext.cc
72 -index bc37e76..8d96fa1 100644
73 ---- a/mtasker_fcontext.cc
74 -+++ b/mtasker_fcontext.cc
75 -@@ -23,14 +23,15 @@
76 - #include <exception>
77 - #include <cassert>
78 - #include <type_traits>
79 --#if BOOST_VERSION > 106100
80 --#include <boost/context/detail/fcontext.hpp>
81 --#else
82 --#include <boost/context/fcontext.hpp>
83 --#endif
84 - #include <boost/version.hpp>
85 --
86 -+#if BOOST_VERSION < 106100
87 -+#include <boost/context/fcontext.hpp>
88 - using boost::context::make_fcontext;
89 -+#else
90 -+#include <boost/context/detail/fcontext.hpp>
91 -+using boost::context::detail::make_fcontext;
92 -+#endif /* BOOST_VERSION < 106100 */
93 -+
94 -
95 - #if BOOST_VERSION < 105600
96 - /* Note: This typedef means functions taking fcontext_t*, like jump_fcontext(),
97 -@@ -61,8 +62,15 @@ jump_fcontext (fcontext_t* const ofc, fcontext_t const nfc,
98 - }
99 - }
100 - #else
101 -+
102 -+#if BOOST_VERSION < 106100
103 - using boost::context::fcontext_t;
104 - using boost::context::jump_fcontext;
105 -+#else
106 -+using boost::context::detail::fcontext_t;
107 -+using boost::context::detail::jump_fcontext;
108 -+using boost::context::detail::transfer_t;
109 -+#endif /* BOOST_VERSION < 106100 */
110 -
111 - static_assert (std::is_pointer<fcontext_t>::value,
112 - "Boost Context has changed the fcontext_t type again :-(");
113 -@@ -72,7 +80,9 @@ static_assert (std::is_pointer<fcontext_t>::value,
114 - * jump. args_t simply provides a way to pass more by reference.
115 - */
116 - struct args_t {
117 -+#if BOOST_VERSION < 106100
118 - fcontext_t prev_ctx = nullptr;
119 -+#endif
120 - pdns_ucontext_t* self = nullptr;
121 - boost::function<void(void)>* work = nullptr;
122 - };
123 -@@ -80,7 +90,11 @@ struct args_t {
124 - extern "C" {
125 - static
126 - void
127 -+#if BOOST_VERSION < 106100
128 - threadWrapper (intptr_t const xargs) {
129 -+#else
130 -+threadWrapper (transfer_t const t) {
131 -+#endif
132 - /* Access the args passed from pdns_makecontext, and copy them directly from
133 - * the calling stack on to ours (we're now using the MThreads stack).
134 - * This saves heap allocating an args object, at the cost of an extra
135 -@@ -90,11 +104,28 @@ threadWrapper (intptr_t const xargs) {
136 - * the behaviour of the System V implementation, which can inherently only
137 - * be passed ints and pointers.
138 - */
139 -+#if BOOST_VERSION < 106100
140 - auto args = reinterpret_cast<args_t*>(xargs);
141 -+#else
142 -+ auto args = reinterpret_cast<args_t*>(t.data);
143 -+#endif
144 - auto ctx = args->self;
145 - auto work = args->work;
146 -+ /* we switch back to pdns_makecontext() */
147 -+#if BOOST_VERSION < 106100
148 - jump_fcontext (reinterpret_cast<fcontext_t*>(&ctx->uc_mcontext),
149 - static_cast<fcontext_t>(args->prev_ctx), 0);
150 -+#else
151 -+ transfer_t res = jump_fcontext (t.fctx, 0);
152 -+ /* we got switched back from pdns_swapcontext() */
153 -+ if (res.data) {
154 -+ /* if res.data is not a nullptr, it holds a pointer to the context
155 -+ we just switched from, and we need to fill it to be able to
156 -+ switch back to it later. */
157 -+ fcontext_t* ptr = static_cast<fcontext_t*>(res.data);
158 -+ *ptr = res.fctx;
159 -+ }
160 -+#endif
161 - args = nullptr;
162 -
163 - try {
164 -@@ -106,9 +137,14 @@ threadWrapper (intptr_t const xargs) {
165 -
166 - /* Emulate the System V uc_link feature. */
167 - auto const next_ctx = ctx->uc_link->uc_mcontext;
168 -+#if BOOST_VERSION < 106100
169 - jump_fcontext (reinterpret_cast<fcontext_t*>(&ctx->uc_mcontext),
170 - static_cast<fcontext_t>(next_ctx),
171 - static_cast<bool>(ctx->exception));
172 -+#else
173 -+ jump_fcontext (static_cast<fcontext_t>(next_ctx), 0);
174 -+#endif
175 -+
176 - #ifdef NDEBUG
177 - __builtin_unreachable();
178 - #endif
179 -@@ -129,10 +165,27 @@ pdns_ucontext_t::~pdns_ucontext_t
180 - void
181 - pdns_swapcontext
182 - (pdns_ucontext_t& __restrict octx, pdns_ucontext_t const& __restrict ctx) {
183 -+ /* we either switch back to threadwrapper() if it's the first time,
184 -+ or we switch back to pdns_swapcontext(),
185 -+ in both case we will be returning from a call to jump_fcontext(). */
186 -+#if BOOST_VERSION < 106100
187 - if (jump_fcontext (reinterpret_cast<fcontext_t*>(&octx.uc_mcontext),
188 - static_cast<fcontext_t>(ctx.uc_mcontext), 0)) {
189 - std::rethrow_exception (ctx.exception);
190 - }
191 -+#else
192 -+ transfer_t res = jump_fcontext (static_cast<fcontext_t>(ctx.uc_mcontext), &octx.uc_mcontext);
193 -+ if (res.data) {
194 -+ /* if res.data is not a nullptr, it holds a pointer to the context
195 -+ we just switched from, and we need to fill it to be able to
196 -+ switch back to it later. */
197 -+ fcontext_t* ptr = static_cast<fcontext_t*>(res.data);
198 -+ *ptr = res.fctx;
199 -+ }
200 -+ if (ctx.exception) {
201 -+ std::rethrow_exception (ctx.exception);
202 -+ }
203 -+#endif
204 - }
205 -
206 - void
207 -@@ -146,7 +199,15 @@ pdns_makecontext
208 - args_t args;
209 - args.self = &ctx;
210 - args.work = &start;
211 -+ /* jumping to threadwrapper */
212 -+#if BOOST_VERSION < 106100
213 - jump_fcontext (reinterpret_cast<fcontext_t*>(&args.prev_ctx),
214 - static_cast<fcontext_t>(ctx.uc_mcontext),
215 - reinterpret_cast<intptr_t>(&args));
216 -+#else
217 -+ transfer_t res = jump_fcontext (static_cast<fcontext_t>(ctx.uc_mcontext),
218 -+ &args);
219 -+ /* back from threadwrapper, updating the context */
220 -+ ctx.uc_mcontext = res.fctx;
221 -+#endif
222 - }
223
224 diff --git a/net-dns/pdns-recursor/files/pdns-recursor-4.0.3-ecdsa.patch b/net-dns/pdns-recursor/files/pdns-recursor-4.0.3-ecdsa.patch
225 deleted file mode 100644
226 index 52826c9617a..00000000000
227 --- a/net-dns/pdns-recursor/files/pdns-recursor-4.0.3-ecdsa.patch
228 +++ /dev/null
229 @@ -1,29 +0,0 @@
230 -commit 3d59c6f7d83f54d5c73013de5ab61e9a0ecd1460
231 -Author: Remi Gacogne <remi.gacogne@××××××××.com>
232 -Date: Mon Oct 17 10:07:26 2016 +0200
233 -
234 - Fix building with ECDSA support disabled in libcrypto
235 -
236 - (cherry picked from commit aa74d164ae29269168d048d2cc8d7e1f984774c4)
237 -
238 -diff --git a/opensslsigners.cc b/opensslsigners.cc
239 -index 9e919a0..acf8f08 100644
240 ---- a/opensslsigners.cc
241 -+++ b/opensslsigners.cc
242 -@@ -128,6 +128,7 @@ static inline int RSA_set0_crt_params(RSA* rsakey, BIGNUM* dmp1, BIGNUM* dmq1, B
243 - return 1;
244 - }
245 -
246 -+#ifdef HAVE_LIBCRYPTO_ECDSA
247 - static inline void ECDSA_SIG_get0(const ECDSA_SIG* signature, const BIGNUM** pr, const BIGNUM** ps) {
248 - *pr = signature->r;
249 - *ps = signature->s;
250 -@@ -140,6 +141,8 @@ static inline int ECDSA_SIG_set0(ECDSA_SIG* signature, BIGNUM* pr, BIGNUM* ps) {
251 - signature->s = ps;
252 - return 1;
253 - }
254 -+#endif /* HAVE_LIBCRYPTO_ECDSA */
255 -+
256 - #else
257 - void openssl_thread_setup() {}
258 - void openssl_thread_cleanup() {}
259
260 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.4-r1.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.4-r1.ebuild
261 deleted file mode 100644
262 index b748e27b710..00000000000
263 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.4-r1.ebuild
264 +++ /dev/null
265 @@ -1,75 +0,0 @@
266 -# Copyright 1999-2017 Gentoo Foundation
267 -# Distributed under the terms of the GNU General Public License v2
268 -
269 -EAPI="6"
270 -
271 -inherit toolchain-funcs flag-o-matic eutils versionator
272 -
273 -DESCRIPTION="The PowerDNS Recursor"
274 -HOMEPAGE="https://www.powerdns.com/"
275 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
276 -
277 -LICENSE="GPL-2"
278 -SLOT="0"
279 -KEYWORDS="~amd64 ~arm ~x86"
280 -IUSE="lua luajit protobuf systemd"
281 -REQUIRED_USE="?? ( lua luajit )"
282 -
283 -DEPEND="lua? ( >=dev-lang/lua-5.1:= )
284 - luajit? ( dev-lang/luajit:= )
285 - protobuf? (
286 - dev-libs/protobuf
287 - >=dev-libs/boost-1.42
288 - )
289 - systemd? ( sys-apps/systemd:0= )
290 - >=dev-libs/boost-1.35"
291 -RDEPEND="${DEPEND}
292 - !<net-dns/pdns-2.9.20-r1"
293 -DEPEND="${DEPEND}
294 - virtual/pkgconfig"
295 -
296 -S="${WORKDIR}"/${P/_/-}
297 -
298 -pkg_setup() {
299 - filter-flags -ftree-vectorize
300 -}
301 -
302 -src_configure() {
303 - econf \
304 - --sysconfdir=/etc/powerdns \
305 - $(use_enable systemd) \
306 - $(use_with lua) \
307 - $(use_with luajit) \
308 - $(use_with protobuf)
309 -}
310 -
311 -src_install() {
312 - default
313 -
314 - mv "${D}"/etc/powerdns/recursor.conf{-dist,}
315 -
316 - # set defaults: setuid=nobody, setgid=nobody
317 - sed -i \
318 - -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \
319 - -e 's/^# quiet=$/quiet=on/' \
320 - -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
321 - "${D}"/etc/powerdns/recursor.conf
322 -
323 - newinitd "${FILESDIR}"/pdns-recursor-r1 pdns-recursor
324 -
325 - keepdir /var/lib/powerdns
326 -}
327 -
328 -pkg_postinst() {
329 - local old
330 -
331 - for old in ${REPLACING_VERSIONS}; do
332 - version_compare ${old} 4.0.0-r1
333 - [[ $? -eq 1 ]] || continue
334 -
335 - ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
336 - ewarn "to pdns-recursor, please update your runlevels accordingly."
337 -
338 - break
339 - done
340 -}
341
342 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.4.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.4.ebuild
343 deleted file mode 100644
344 index 8b3e1791ecd..00000000000
345 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.4.ebuild
346 +++ /dev/null
347 @@ -1,75 +0,0 @@
348 -# Copyright 1999-2017 Gentoo Foundation
349 -# Distributed under the terms of the GNU General Public License v2
350 -
351 -EAPI="6"
352 -
353 -inherit toolchain-funcs flag-o-matic eutils versionator
354 -
355 -DESCRIPTION="The PowerDNS Recursor"
356 -HOMEPAGE="https://www.powerdns.com/"
357 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
358 -
359 -LICENSE="GPL-2"
360 -SLOT="0"
361 -KEYWORDS="amd64 ~arm x86"
362 -IUSE="lua luajit protobuf systemd"
363 -REQUIRED_USE="?? ( lua luajit )"
364 -
365 -DEPEND="lua? ( >=dev-lang/lua-5.1:= )
366 - luajit? ( dev-lang/luajit:= )
367 - protobuf? (
368 - dev-libs/protobuf
369 - >=dev-libs/boost-1.42
370 - )
371 - systemd? ( sys-apps/systemd:0= )
372 - >=dev-libs/boost-1.35"
373 -RDEPEND="${DEPEND}
374 - !<net-dns/pdns-2.9.20-r1"
375 -DEPEND="${DEPEND}
376 - virtual/pkgconfig"
377 -
378 -S="${WORKDIR}"/${P/_/-}
379 -
380 -pkg_setup() {
381 - filter-flags -ftree-vectorize
382 -}
383 -
384 -src_configure() {
385 - econf \
386 - --sysconfdir=/etc/powerdns \
387 - $(use_enable systemd) \
388 - $(use_with lua) \
389 - $(use_with luajit) \
390 - $(use_with protobuf)
391 -}
392 -
393 -src_install() {
394 - default
395 -
396 - mv "${D}"/etc/powerdns/recursor.conf{-dist,}
397 -
398 - # set defaults: setuid=nobody, setgid=nobody
399 - sed -i \
400 - -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \
401 - -e 's/^# quiet=$/quiet=on/' \
402 - -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
403 - "${D}"/etc/powerdns/recursor.conf
404 -
405 - doinitd "${FILESDIR}"/pdns-recursor
406 -
407 - keepdir /var/lib/powerdns
408 -}
409 -
410 -pkg_postinst() {
411 - local old
412 -
413 - for old in ${REPLACING_VERSIONS}; do
414 - version_compare ${old} 4.0.0-r1
415 - [[ $? -eq 1 ]] || continue
416 -
417 - ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
418 - ewarn "to pdns-recursor, please update your runlevels accordingly."
419 -
420 - break
421 - done
422 -}
423
424 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.5.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.5.ebuild
425 deleted file mode 100644
426 index b748e27b710..00000000000
427 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.5.ebuild
428 +++ /dev/null
429 @@ -1,75 +0,0 @@
430 -# Copyright 1999-2017 Gentoo Foundation
431 -# Distributed under the terms of the GNU General Public License v2
432 -
433 -EAPI="6"
434 -
435 -inherit toolchain-funcs flag-o-matic eutils versionator
436 -
437 -DESCRIPTION="The PowerDNS Recursor"
438 -HOMEPAGE="https://www.powerdns.com/"
439 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
440 -
441 -LICENSE="GPL-2"
442 -SLOT="0"
443 -KEYWORDS="~amd64 ~arm ~x86"
444 -IUSE="lua luajit protobuf systemd"
445 -REQUIRED_USE="?? ( lua luajit )"
446 -
447 -DEPEND="lua? ( >=dev-lang/lua-5.1:= )
448 - luajit? ( dev-lang/luajit:= )
449 - protobuf? (
450 - dev-libs/protobuf
451 - >=dev-libs/boost-1.42
452 - )
453 - systemd? ( sys-apps/systemd:0= )
454 - >=dev-libs/boost-1.35"
455 -RDEPEND="${DEPEND}
456 - !<net-dns/pdns-2.9.20-r1"
457 -DEPEND="${DEPEND}
458 - virtual/pkgconfig"
459 -
460 -S="${WORKDIR}"/${P/_/-}
461 -
462 -pkg_setup() {
463 - filter-flags -ftree-vectorize
464 -}
465 -
466 -src_configure() {
467 - econf \
468 - --sysconfdir=/etc/powerdns \
469 - $(use_enable systemd) \
470 - $(use_with lua) \
471 - $(use_with luajit) \
472 - $(use_with protobuf)
473 -}
474 -
475 -src_install() {
476 - default
477 -
478 - mv "${D}"/etc/powerdns/recursor.conf{-dist,}
479 -
480 - # set defaults: setuid=nobody, setgid=nobody
481 - sed -i \
482 - -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \
483 - -e 's/^# quiet=$/quiet=on/' \
484 - -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
485 - "${D}"/etc/powerdns/recursor.conf
486 -
487 - newinitd "${FILESDIR}"/pdns-recursor-r1 pdns-recursor
488 -
489 - keepdir /var/lib/powerdns
490 -}
491 -
492 -pkg_postinst() {
493 - local old
494 -
495 - for old in ${REPLACING_VERSIONS}; do
496 - version_compare ${old} 4.0.0-r1
497 - [[ $? -eq 1 ]] || continue
498 -
499 - ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
500 - ewarn "to pdns-recursor, please update your runlevels accordingly."
501 -
502 - break
503 - done
504 -}