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: Sun, 03 Dec 2017 22:42:28
Message-Id: 1512340870.35bcdfdde75be76491c9e2c9e2b4263c0be411da.swegener@gentoo
1 commit: 35bcdfdde75be76491c9e2c9e2b4263c0be411da
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 3 22:41:10 2017 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 3 22:41:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35bcdfdd
7
8 net-dns/pdns-recursor: Cleanup
9
10 Package-Manager: Portage-2.3.14, Repoman-2.3.6
11
12 net-dns/pdns-recursor/Manifest | 1 -
13 .../pdns-recursor/files/CVE-2017-15090-4.0.6.patch | 15 ----
14 .../pdns-recursor/files/CVE-2017-15092-4.0.6.patch | 85 ----------------------
15 .../pdns-recursor/pdns-recursor-4.0.6-r1.ebuild | 81 ---------------------
16 net-dns/pdns-recursor/pdns-recursor-4.0.6.ebuild | 77 --------------------
17 5 files changed, 259 deletions(-)
18
19 diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
20 index d508e86709a..587e95d0995 100644
21 --- a/net-dns/pdns-recursor/Manifest
22 +++ b/net-dns/pdns-recursor/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST pdns-recursor-4.0.6.tar.bz2 1105423 BLAKE2B 50cc52f118630d4d8ce9876c2e11494a3c972ec90003c40fea36801eb08bd8b6173f876e6f53eb672ad8ff3da04e669946740a50f653a21459f25c1137d91297 SHA512 2203fd96469deded1da677344485da221eec036b1ad9fb418a89cd4477d73f2a6fcf984a39b574561df6946f440ddf1982de20cd39d7204da9c27e74216d1159
25 DIST pdns-recursor-4.0.7.tar.bz2 1107546 BLAKE2B 3ccda73878599e3ade69e4dc6b0787e588a8403fb7cacfbe574409513b8723cbfd29a3c73d857120def801da60a4bedbc0f0c396e6642adb0287204cde301331 SHA512 0c8873adcce5ed9b41f161bc71635da23496b4ae48dbffff7dcdf9c5181e720f9aa94e18bd64e0dff9fa03eae8410dc93585a74d13f0c16d38b0d1c0f4146bb2
26 DIST pdns-recursor-4.1.0-rc3.tar.bz2 1191353 BLAKE2B fcbc6f08f962c9c2f459448770406734eff2caab43b615690e9d910b65327e45182aa2c9bcadadeaa6eb3984a8cb463849d5e001ffb98bb618966da5b8557a8a SHA512 141e3fcbf5e7c81ae0228fb7a15c599ef5ae41e2c2d169e2f7b4f57c6c832ac40d3e20302d219ba565c4a514b1297906684247a1a56cd740e3ea0bff4a7da51d
27
28 diff --git a/net-dns/pdns-recursor/files/CVE-2017-15090-4.0.6.patch b/net-dns/pdns-recursor/files/CVE-2017-15090-4.0.6.patch
29 deleted file mode 100644
30 index fa0bfd099ab..00000000000
31 --- a/net-dns/pdns-recursor/files/CVE-2017-15090-4.0.6.patch
32 +++ /dev/null
33 @@ -1,15 +0,0 @@
34 -diff -ru pdns-recursor-4.0.6.orig/validate-recursor.cc pdns-recursor-4.0.6/validate-recursor.cc
35 ---- pdns-recursor-4.0.6.orig/validate-recursor.cc 2017-07-04 17:43:07.000000000 +0200
36 -+++ pdns-recursor-4.0.6/validate-recursor.cc 2017-11-02 18:29:16.612520450 +0100
37 -@@ -87,6 +87,11 @@
38 - bool first = true;
39 - for(const auto& csp : cspmap) {
40 - for(const auto& sig : csp.second.signatures) {
41 -+
42 -+ if (!csp.first.first.isPartOf(sig->d_signer)) {
43 -+ return increaseDNSSECStateCounter(Bogus);
44 -+ }
45 -+
46 - vState newState = getKeysFor(sro, sig->d_signer, keys); // XXX check validity here
47 -
48 - if (newState == Bogus) // No hope
49
50 diff --git a/net-dns/pdns-recursor/files/CVE-2017-15092-4.0.6.patch b/net-dns/pdns-recursor/files/CVE-2017-15092-4.0.6.patch
51 deleted file mode 100644
52 index 1425c33586c..00000000000
53 --- a/net-dns/pdns-recursor/files/CVE-2017-15092-4.0.6.patch
54 +++ /dev/null
55 @@ -1,85 +0,0 @@
56 -diff -ru pdns-recursor-4.0.6.orig/html/local.js pdns-recursor-4.0.6/html/local.js
57 ---- pdns-recursor-4.0.6.orig/html/local.js 2017-07-04 17:43:07.000000000 +0200
58 -+++ pdns-recursor-4.0.6/html/local.js 2017-11-02 18:26:04.624586674 +0100
59 -@@ -63,7 +63,7 @@
60 -
61 - $.getJSON(qstring,
62 - function(data) {
63 -- var bouw="<table><tr><th>Number</th><th>Domain</th><th>Type</th></tr>";
64 -+ var table = $('<table><tr><th>Number</th><th>Domain</th><th>Type</th></tr></table>');
65 - var num=0;
66 - var total=0, rest=0;
67 - $.each(data["entries"], function(a,b) {
68 -@@ -75,12 +75,26 @@
69 - if(b[1].length > 25)
70 - b[1]=b[1].substring(0,25);
71 -
72 -- bouw=bouw+("<tr><td>"+b[0]+"</td><td>"+b[1]+"</td><td>"+b[2]+"</td></tr>");
73 -- });
74 -- bouw+="<tr><td>"+rest+"</td><td>Rest</td></tr>";
75 -- bouw=bouw+"</table>";
76 -- $("#queryring").html(bouw);
77 --
78 -+ var line = $('<tr />');
79 -+ var number = $('<td />');
80 -+ number.text(b[0]);
81 -+ var domain = $('<td />');
82 -+ domain.text(b[1]);
83 -+ var type = $('<td />');
84 -+ type.text(b[2]);
85 -+ line.append(number);
86 -+ line.append(domain);
87 -+ line.append(type);
88 -+ table.append(line);
89 -+ });
90 -+ var line = $('<tr />');
91 -+ var number = $('<td />');
92 -+ number.text(rest);
93 -+ var label = $('<td>Rest</td>');
94 -+ line.append(number);
95 -+ line.append(label);
96 -+ table.append(line);
97 -+ $("#queryring").html(table);
98 - });
99 -
100 - filtered=$("#filter2").is(':checked')
101 -@@ -91,7 +105,7 @@
102 -
103 - $.getJSON(qstring,
104 - function(data) {
105 -- var bouw="<table><tr><th>Number</th><th>Servfail domain</th><th>Type</th></tr>";
106 -+ var table = $('<table><tr><th>Number</th><th>Servfail domain</th><th>Type</th></tr></table>');
107 - var num=0, total=0, rest=0;
108 - $.each(data["entries"], function(a,b) {
109 - total+=b[0];
110 -@@ -101,11 +115,26 @@
111 - }
112 - if(b[1].length > 25)
113 - b[1]=b[1].substring(0,25);
114 -- bouw=bouw+("<tr><td>"+b[0]+"</td><td>"+b[1]+"</td><td>"+b[2]+"</td></tr>");
115 -+ var line = $('<tr />');
116 -+ var number = $('<td />');
117 -+ number.text(b[0]);
118 -+ var domain = $('<td />');
119 -+ domain.text(b[1]);
120 -+ var type = $('<td />');
121 -+ type.text(b[2]);
122 -+ line.append(number);
123 -+ line.append(domain);
124 -+ line.append(type);
125 -+ table.append(line);
126 - });
127 -- bouw+="<tr><td>"+rest+"</td><td>Rest</td></tr>";
128 -- bouw=bouw+"</table>";
129 -- $("#servfailqueryring").html(bouw);
130 -+ var line = $('<tr />');
131 -+ var number = $('<td />');
132 -+ number.text(rest);
133 -+ var label = $('<td>Rest</td>');
134 -+ line.append(number);
135 -+ line.append(label);
136 -+ table.append(line);
137 -+ $("#servfailqueryring").html(table);
138 -
139 - });
140 -
141
142 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.6-r1.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.6-r1.ebuild
143 deleted file mode 100644
144 index 30f31e4cc5b..00000000000
145 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.6-r1.ebuild
146 +++ /dev/null
147 @@ -1,81 +0,0 @@
148 -# Copyright 1999-2017 Gentoo Foundation
149 -# Distributed under the terms of the GNU General Public License v2
150 -
151 -EAPI="6"
152 -
153 -inherit toolchain-funcs flag-o-matic eutils versionator
154 -
155 -DESCRIPTION="The PowerDNS Recursor"
156 -HOMEPAGE="https://www.powerdns.com/"
157 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
158 -
159 -LICENSE="GPL-2"
160 -SLOT="0"
161 -KEYWORDS="~amd64 ~arm ~x86"
162 -IUSE="libressl lua luajit protobuf systemd"
163 -REQUIRED_USE="?? ( lua luajit )"
164 -
165 -DEPEND="lua? ( >=dev-lang/lua-5.1:= )
166 - luajit? ( dev-lang/luajit:= )
167 - protobuf? (
168 - dev-libs/protobuf
169 - >=dev-libs/boost-1.42:=
170 - )
171 - systemd? ( sys-apps/systemd:0= )
172 - libressl? ( dev-libs/libressl:= )
173 - !libressl? ( dev-libs/openssl:= )
174 - >=dev-libs/boost-1.35:="
175 -RDEPEND="${DEPEND}
176 - !<net-dns/pdns-2.9.20-r1"
177 -DEPEND="${DEPEND}
178 - virtual/pkgconfig"
179 -
180 -S="${WORKDIR}"/${P/_/-}
181 -
182 -PATCHES=(
183 - "${FILESDIR}"/CVE-2017-{15090,15092,15093,15094}-4.0.6.patch
184 -)
185 -
186 -pkg_setup() {
187 - filter-flags -ftree-vectorize
188 -}
189 -
190 -src_configure() {
191 - econf \
192 - --sysconfdir=/etc/powerdns \
193 - $(use_enable systemd) \
194 - $(use_with lua) \
195 - $(use_with luajit) \
196 - $(use_with protobuf)
197 -}
198 -
199 -src_install() {
200 - default
201 -
202 - mv "${D}"/etc/powerdns/recursor.conf{-dist,}
203 -
204 - # set defaults: setuid=nobody, setgid=nobody
205 - sed -i \
206 - -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \
207 - -e 's/^# quiet=$/quiet=on/' \
208 - -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
209 - "${D}"/etc/powerdns/recursor.conf
210 -
211 - newinitd "${FILESDIR}"/pdns-recursor-r1 pdns-recursor
212 -
213 - keepdir /var/lib/powerdns
214 -}
215 -
216 -pkg_postinst() {
217 - local old
218 -
219 - for old in ${REPLACING_VERSIONS}; do
220 - version_compare ${old} 4.0.0-r1
221 - [[ $? -eq 1 ]] || continue
222 -
223 - ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
224 - ewarn "to pdns-recursor, please update your runlevels accordingly."
225 -
226 - break
227 - done
228 -}
229
230 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.6.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.6.ebuild
231 deleted file mode 100644
232 index 8ad027121b3..00000000000
233 --- a/net-dns/pdns-recursor/pdns-recursor-4.0.6.ebuild
234 +++ /dev/null
235 @@ -1,77 +0,0 @@
236 -# Copyright 1999-2017 Gentoo Foundation
237 -# Distributed under the terms of the GNU General Public License v2
238 -
239 -EAPI="6"
240 -
241 -inherit toolchain-funcs flag-o-matic eutils versionator
242 -
243 -DESCRIPTION="The PowerDNS Recursor"
244 -HOMEPAGE="https://www.powerdns.com/"
245 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
246 -
247 -LICENSE="GPL-2"
248 -SLOT="0"
249 -KEYWORDS="amd64 ~arm x86"
250 -IUSE="libressl lua luajit protobuf systemd"
251 -REQUIRED_USE="?? ( lua luajit )"
252 -
253 -DEPEND="lua? ( >=dev-lang/lua-5.1:= )
254 - luajit? ( dev-lang/luajit:= )
255 - protobuf? (
256 - dev-libs/protobuf
257 - >=dev-libs/boost-1.42:=
258 - )
259 - systemd? ( sys-apps/systemd:0= )
260 - libressl? ( dev-libs/libressl:= )
261 - !libressl? ( dev-libs/openssl:= )
262 - >=dev-libs/boost-1.35:="
263 -RDEPEND="${DEPEND}
264 - !<net-dns/pdns-2.9.20-r1"
265 -DEPEND="${DEPEND}
266 - virtual/pkgconfig"
267 -
268 -S="${WORKDIR}"/${P/_/-}
269 -
270 -pkg_setup() {
271 - filter-flags -ftree-vectorize
272 -}
273 -
274 -src_configure() {
275 - econf \
276 - --sysconfdir=/etc/powerdns \
277 - $(use_enable systemd) \
278 - $(use_with lua) \
279 - $(use_with luajit) \
280 - $(use_with protobuf)
281 -}
282 -
283 -src_install() {
284 - default
285 -
286 - mv "${D}"/etc/powerdns/recursor.conf{-dist,}
287 -
288 - # set defaults: setuid=nobody, setgid=nobody
289 - sed -i \
290 - -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \
291 - -e 's/^# quiet=$/quiet=on/' \
292 - -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
293 - "${D}"/etc/powerdns/recursor.conf
294 -
295 - newinitd "${FILESDIR}"/pdns-recursor-r1 pdns-recursor
296 -
297 - keepdir /var/lib/powerdns
298 -}
299 -
300 -pkg_postinst() {
301 - local old
302 -
303 - for old in ${REPLACING_VERSIONS}; do
304 - version_compare ${old} 4.0.0-r1
305 - [[ $? -eq 1 ]] || continue
306 -
307 - ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
308 - ewarn "to pdns-recursor, please update your runlevels accordingly."
309 -
310 - break
311 - done
312 -}