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/
Date: Sun, 30 Aug 2020 11:28:26
Message-Id: 1598786873.b2290284591e28e272c49758c447953972f1f387.swegener@gentoo
1 commit: b2290284591e28e272c49758c447953972f1f387
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 30 11:24:21 2020 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 11:27:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2290284
7
8 net-dns/pdns: Cleanup
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.23
11 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
12
13 net-dns/pdns/Manifest | 4 -
14 net-dns/pdns/metadata.xml | 2 -
15 net-dns/pdns/pdns-4.1.13.ebuild | 175 --------------------------------------
16 net-dns/pdns/pdns-4.2.0.ebuild | 174 -------------------------------------
17 net-dns/pdns/pdns-4.2.1-r1.ebuild | 173 -------------------------------------
18 net-dns/pdns/pdns-4.2.1.ebuild | 174 -------------------------------------
19 net-dns/pdns/pdns-4.2.2.ebuild | 173 -------------------------------------
20 7 files changed, 875 deletions(-)
21
22 diff --git a/net-dns/pdns/Manifest b/net-dns/pdns/Manifest
23 index 153404b6b23..73af90a0816 100644
24 --- a/net-dns/pdns/Manifest
25 +++ b/net-dns/pdns/Manifest
26 @@ -1,5 +1 @@
27 -DIST pdns-4.1.13.tar.bz2 1117990 BLAKE2B 95fa26d872fe138d1cde7e586881010dd27211c4186d0a99693d2fd90bdc3fd939da09805898d469daec6fe8c3493166346cf18b528760f3b25274fe10f45ad2 SHA512 94d80b1c6b78e93dd856631d391225c521485c3fb6b4123b28f9f58e178a7f6eb03f24189eaa261873e7e29962761b513c1fcf092101d68ad81dac73249a54d4
28 -DIST pdns-4.2.0.tar.bz2 1249282 BLAKE2B 56b3639004abd05ab9df4541cc46f155ce76426b35a29d9a4cedd16428c5852bf9306e14b77440b8239e823cb0603b4747a8ae7729f964f415a529f17706eb1f SHA512 ee67c132458e539d522aaa5835237dc64d92ad546f51e0ef86366964f7105631f2bd1e6c5d19d85466d95e1982f6410aeb14932c265fddfd301e403e76542624
29 -DIST pdns-4.2.1.tar.bz2 1252829 BLAKE2B e5cfcdd0c3011fe43e5abe52e5308b5e6346d186c5d5046c862468ecf810db7e5ab64bd36a9c62f251fbf63948572c5193ed354b8e98d647111e9373578c54ef SHA512 40b5533c755d7c0d41cfb273b704a45a3006dafc98c79bf41cae43d9e2d03bbd7a663996a7f209c390a89c5f7161f2f6246389beef18fbac48e95907e1b7936a
30 -DIST pdns-4.2.2.tar.bz2 1256587 BLAKE2B f0ada1a2acdfc49bc1b4f066402d2da1719ec4b1495922cd77927969bece7defdc483a4231e2f2ec58927e66f02d7be72de685b65628b30c5dff7878e5e440da SHA512 b9d0daadd89f4ab009981305d2c323ab75e283b59b94f764d53c37984a2b6200debe4e514572eac49973fcba2034df65214afb949ce3b1b4ff57b07b07f6e608
31 DIST pdns-4.3.0.tar.bz2 1211536 BLAKE2B 3291597c4f0c39e23f793b128ef26b1ce3dc77640ddf6979242ab291b0e2780ae5c19b18591ea90f5282810044959feca265a245e27eca1f2ebacbdeeb8a3785 SHA512 0734dbfb83a2e5080dc54cfc016ceb3e1f7e15a2de2f33392b2f3c995357fa97f9e87ff21e969f148c3e881165471d3058eb2b9cf632117ebce0d7818e025fe2
32
33 diff --git a/net-dns/pdns/metadata.xml b/net-dns/pdns/metadata.xml
34 index 4a9541bb5c2..effa9a0ec02 100644
35 --- a/net-dns/pdns/metadata.xml
36 +++ b/net-dns/pdns/metadata.xml
37 @@ -11,10 +11,8 @@ only nameserver. It is written from scratch and conforms to all relevant DNS
38 standards documents. Furthermore, PowerDNS interfaces with almost any database.
39 </longdescription>
40 <use>
41 - <flag name="botan">Make it possible to use the <pkg>dev-libs/botan</pkg> library for crypto-related stuff (like DNSSec) which can be significantly faster than PolarSSL.</flag>
42 <flag name="lua-records">Enable LUA records.</flag>
43 <flag name="mydns">Making it possible to use a MyDNS MySQL database with PowerDNS (not recommended for new deployments).</flag>
44 - <flag name="opendbx">Use a database supported by <pkg>dev-db/opendbx</pkg> as backend.</flag>
45 <flag name="protobuf">Enable support for <pkg>dev-libs/protobuf</pkg>.</flag>
46 <flag name="remote">Use a generic socket or pipe as a backend (via JSON RPC requests).</flag>
47 <flag name="sodium">Use <pkg>dev-libs/libsodium</pkg> for cryptography</flag>
48
49 diff --git a/net-dns/pdns/pdns-4.1.13.ebuild b/net-dns/pdns/pdns-4.1.13.ebuild
50 deleted file mode 100644
51 index 41fbabb111d..00000000000
52 --- a/net-dns/pdns/pdns-4.1.13.ebuild
53 +++ /dev/null
54 @@ -1,175 +0,0 @@
55 -# Copyright 1999-2019 Gentoo Authors
56 -# Distributed under the terms of the GNU General Public License v2
57 -
58 -EAPI="7"
59 -
60 -inherit multilib user
61 -
62 -DESCRIPTION="The PowerDNS Daemon"
63 -HOMEPAGE="https://www.powerdns.com/"
64 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
65 -
66 -LICENSE="GPL-2"
67 -SLOT="0"
68 -KEYWORDS="amd64 x86"
69 -
70 -# other possible flags:
71 -# db2: we lack the dep
72 -# oracle: dito (need Oracle Client Libraries)
73 -# xdb: (almost) dead, surely not supported
74 -
75 -IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test"
76 -RESTRICT="!test? ( test )"
77 -
78 -REQUIRED_USE="mydns? ( mysql )"
79 -
80 -RDEPEND="
81 - libressl? ( dev-libs/libressl:= )
82 - !libressl? ( dev-libs/openssl:= )
83 - >=dev-libs/boost-1.35:=
84 - botan? ( dev-libs/botan:2= )
85 - lua? (
86 - !luajit? ( dev-lang/lua:= )
87 - luajit? ( dev-lang/luajit:= )
88 - )
89 - mysql? ( dev-db/mysql-connector-c:= )
90 - postgres? ( dev-db/postgresql:= )
91 - ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 )
92 - sqlite? ( dev-db/sqlite:3 )
93 - opendbx? ( dev-db/opendbx )
94 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip )
95 - sodium? ( dev-libs/libsodium:= )
96 - tinydns? ( >=dev-db/tinycdb-0.77 )
97 - protobuf? ( dev-libs/protobuf )"
98 -DEPEND="${RDEPEND}"
99 -BDEPEND="virtual/pkgconfig
100 - doc? ( app-doc/doxygen )"
101 -
102 -S="${WORKDIR}"/${P/_/-}
103 -
104 -src_configure() {
105 - local dynmodules="pipe bind" # the default backends, always enabled
106 -
107 - #use db2 && dynmodules+=" db2"
108 - use ldap && dynmodules+=" ldap"
109 - use lua && dynmodules+=" lua"
110 - use mydns && dynmodules+=" mydns"
111 - use mysql && dynmodules+=" gmysql"
112 - use opendbx && dynmodules+=" opendbx"
113 - #use oracle && dynmodules+=" goracle oracle"
114 - use postgres && dynmodules+=" gpgsql"
115 - use remote && dynmodules+=" remote"
116 - use sqlite && dynmodules+=" gsqlite3"
117 - use tinydns && dynmodules+=" tinydns"
118 - use geoip && dynmodules+=" geoip"
119 - #use xdb && dynmodules+=" xdb"
120 -
121 - econf \
122 - --disable-static \
123 - --sysconfdir=/etc/powerdns \
124 - --libdir=/usr/$(get_libdir)/powerdns \
125 - --with-modules= \
126 - --with-dynmodules="${dynmodules}" \
127 - --with-mysql-lib=/usr/$(get_libdir) \
128 - $(use_enable botan) \
129 - $(use_enable debug verbose-logging) \
130 - $(use_enable test unit-tests) \
131 - $(use_enable tools) \
132 - $(use_enable systemd) \
133 - $(use_enable sodium libsodium) \
134 - $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \
135 - '--without-lua --without-luajit') \
136 - $(use_with protobuf) \
137 - ${myconf}
138 -}
139 -
140 -src_compile() {
141 - default
142 - use doc && emake -C codedocs codedocs
143 -}
144 -
145 -src_install() {
146 - default
147 -
148 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
149 -
150 - fperms 0700 /etc/powerdns
151 - fperms 0600 /etc/powerdns/pdns.conf
152 -
153 - # set defaults: setuid=pdns, setgid=pdns
154 - sed -i \
155 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
156 - "${D}"/etc/powerdns/pdns.conf
157 -
158 - newinitd "${FILESDIR}"/pdns-r1 pdns
159 -
160 - keepdir /var/empty
161 -
162 - if use doc; then
163 - docinto html
164 - dodoc -r codedocs/html/.
165 - fi
166 -
167 - # Install development headers
168 - insinto /usr/include/pdns
169 - doins pdns/*.hh
170 - insinto /usr/include/pdns/backends/gsql
171 - doins pdns/backends/gsql/*.hh
172 -
173 - if use ldap ; then
174 - insinto /etc/openldap/schema
175 - doins "${FILESDIR}"/dnsdomain2.schema
176 - fi
177 -
178 - find "${D}" -name '*.la' -delete || die
179 -}
180 -
181 -pkg_preinst() {
182 - enewgroup pdns
183 - enewuser pdns -1 -1 /var/empty pdns
184 -}
185 -
186 -pkg_postinst() {
187 - elog "PowerDNS provides multiple instances support. You can create more instances"
188 - elog "by symlinking the pdns init script to another name."
189 - elog
190 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
191 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
192 -
193 - if use ldap ; then
194 - echo
195 - ewarn "The official LDAP backend module is only compile-tested by upstream."
196 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
197 - fi
198 -
199 - local old
200 - for old in ${REPLACING_VERSIONS}; do
201 - ver_test ${old} -lt 3.2 || continue
202 -
203 - echo
204 - ewarn "To fix a security bug (bug #458018) had the following"
205 - ewarn "files/directories the world-readable bit removed (if set):"
206 - ewarn " ${EPREFIX}/etc/powerdns"
207 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
208 - ewarn "Check if this is correct for your setup"
209 - ewarn "This is a one-time change and will not happen on subsequent updates."
210 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
211 -
212 - break
213 - done
214 -
215 - if use postgres; then
216 - for old in ${REPLACING_VERSIONS}; do
217 - ver_test ${old} -lt 4.1.11-r1 || continue
218 -
219 - echo
220 - ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend."
221 - ewarn "This security fix needs to be applied manually to the database schema."
222 - ewarn "Please refer to the official security advisory for more information:"
223 - ewarn
224 - ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html"
225 -
226 - break
227 - done
228 - fi
229 -}
230
231 diff --git a/net-dns/pdns/pdns-4.2.0.ebuild b/net-dns/pdns/pdns-4.2.0.ebuild
232 deleted file mode 100644
233 index 5c7378bfdf7..00000000000
234 --- a/net-dns/pdns/pdns-4.2.0.ebuild
235 +++ /dev/null
236 @@ -1,174 +0,0 @@
237 -# Copyright 1999-2019 Gentoo Authors
238 -# Distributed under the terms of the GNU General Public License v2
239 -
240 -EAPI="7"
241 -
242 -inherit multilib user
243 -
244 -DESCRIPTION="The PowerDNS Daemon"
245 -HOMEPAGE="https://www.powerdns.com/"
246 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
247 -
248 -LICENSE="GPL-2"
249 -SLOT="0"
250 -KEYWORDS="~amd64 ~x86"
251 -
252 -# other possible flags:
253 -# db2: we lack the dep
254 -# oracle: dito (need Oracle Client Libraries)
255 -# xdb: (almost) dead, surely not supported
256 -
257 -IUSE="debug doc geoip ldap libressl lua luajit lua-records mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test"
258 -RESTRICT="!test? ( test )"
259 -
260 -REQUIRED_USE="lua-records? ( lua ) mydns? ( mysql )"
261 -
262 -RDEPEND="
263 - libressl? ( dev-libs/libressl:= )
264 - !libressl? ( dev-libs/openssl:= )
265 - >=dev-libs/boost-1.35:=
266 - lua? (
267 - !luajit? ( dev-lang/lua:= )
268 - luajit? ( dev-lang/luajit:= )
269 - )
270 - lua-records? ( >=net-misc/curl-7.21.3 )
271 - mysql? ( dev-db/mysql-connector-c:= )
272 - postgres? ( dev-db/postgresql:= )
273 - ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 )
274 - sqlite? ( dev-db/sqlite:3 )
275 - opendbx? ( dev-db/opendbx )
276 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip )
277 - sodium? ( dev-libs/libsodium:= )
278 - tinydns? ( >=dev-db/tinycdb-0.77 )
279 - protobuf? ( dev-libs/protobuf )"
280 -DEPEND="${RDEPEND}"
281 -BDEPEND="virtual/pkgconfig
282 - doc? ( app-doc/doxygen )"
283 -
284 -S="${WORKDIR}"/${P/_/-}
285 -
286 -src_configure() {
287 - local dynmodules="pipe bind" # the default backends, always enabled
288 -
289 - #use db2 && dynmodules+=" db2"
290 - use ldap && dynmodules+=" ldap"
291 - use lua && dynmodules+=" lua"
292 - use mydns && dynmodules+=" mydns"
293 - use mysql && dynmodules+=" gmysql"
294 - use opendbx && dynmodules+=" opendbx"
295 - #use oracle && dynmodules+=" goracle oracle"
296 - use postgres && dynmodules+=" gpgsql"
297 - use remote && dynmodules+=" remote"
298 - use sqlite && dynmodules+=" gsqlite3"
299 - use tinydns && dynmodules+=" tinydns"
300 - use geoip && dynmodules+=" geoip"
301 - #use xdb && dynmodules+=" xdb"
302 -
303 - econf \
304 - --disable-static \
305 - --sysconfdir=/etc/powerdns \
306 - --libdir=/usr/$(get_libdir)/powerdns \
307 - --with-modules= \
308 - --with-dynmodules="${dynmodules}" \
309 - --with-mysql-lib=/usr/$(get_libdir) \
310 - $(use_enable debug verbose-logging) \
311 - $(use_enable lua-records) \
312 - $(use_enable test unit-tests) \
313 - $(use_enable tools) \
314 - $(use_enable systemd) \
315 - $(use_with sodium libsodium) \
316 - $(use_with lua lua $(usex luajit luajit lua)) \
317 - $(use_with protobuf) \
318 - ${myconf}
319 -}
320 -
321 -src_compile() {
322 - default
323 - use doc && emake -C codedocs codedocs
324 -}
325 -
326 -src_install() {
327 - default
328 -
329 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
330 -
331 - fperms 0700 /etc/powerdns
332 - fperms 0600 /etc/powerdns/pdns.conf
333 -
334 - # set defaults: setuid=pdns, setgid=pdns
335 - sed -i \
336 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
337 - "${D}"/etc/powerdns/pdns.conf
338 -
339 - newinitd "${FILESDIR}"/pdns-r1 pdns
340 -
341 - keepdir /var/empty
342 -
343 - if use doc; then
344 - docinto html
345 - dodoc -r codedocs/html/.
346 - fi
347 -
348 - # Install development headers
349 - insinto /usr/include/pdns
350 - doins pdns/*.hh
351 - insinto /usr/include/pdns/backends/gsql
352 - doins pdns/backends/gsql/*.hh
353 -
354 - if use ldap ; then
355 - insinto /etc/openldap/schema
356 - doins "${FILESDIR}"/dnsdomain2.schema
357 - fi
358 -
359 - find "${D}" -name '*.la' -delete || die
360 -}
361 -
362 -pkg_preinst() {
363 - enewgroup pdns
364 - enewuser pdns -1 -1 /var/empty pdns
365 -}
366 -
367 -pkg_postinst() {
368 - elog "PowerDNS provides multiple instances support. You can create more instances"
369 - elog "by symlinking the pdns init script to another name."
370 - elog
371 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
372 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
373 -
374 - if use ldap ; then
375 - echo
376 - ewarn "The official LDAP backend module is only compile-tested by upstream."
377 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
378 - fi
379 -
380 - local old
381 - for old in ${REPLACING_VERSIONS}; do
382 - ver_test ${old} -lt 3.2 || continue
383 -
384 - echo
385 - ewarn "To fix a security bug (bug #458018) had the following"
386 - ewarn "files/directories the world-readable bit removed (if set):"
387 - ewarn " ${EPREFIX}/etc/powerdns"
388 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
389 - ewarn "Check if this is correct for your setup"
390 - ewarn "This is a one-time change and will not happen on subsequent updates."
391 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
392 -
393 - break
394 - done
395 -
396 - if use postgres; then
397 - for old in ${REPLACING_VERSIONS}; do
398 - ver_test ${old} -lt 4.1.11-r1 || continue
399 -
400 - echo
401 - ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend."
402 - ewarn "This security fix needs to be applied manually to the database schema."
403 - ewarn "Please refer to the official security advisory for more information:"
404 - ewarn
405 - ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html"
406 -
407 - break
408 - done
409 - fi
410 -}
411
412 diff --git a/net-dns/pdns/pdns-4.2.1-r1.ebuild b/net-dns/pdns/pdns-4.2.1-r1.ebuild
413 deleted file mode 100644
414 index 11a7e60ebb9..00000000000
415 --- a/net-dns/pdns/pdns-4.2.1-r1.ebuild
416 +++ /dev/null
417 @@ -1,173 +0,0 @@
418 -# Copyright 1999-2020 Gentoo Authors
419 -# Distributed under the terms of the GNU General Public License v2
420 -
421 -EAPI="7"
422 -
423 -inherit multilib
424 -
425 -DESCRIPTION="The PowerDNS Daemon"
426 -HOMEPAGE="https://www.powerdns.com/"
427 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
428 -
429 -LICENSE="GPL-2"
430 -SLOT="0"
431 -KEYWORDS="~amd64 ~x86"
432 -
433 -# other possible flags:
434 -# db2: we lack the dep
435 -# oracle: dito (need Oracle Client Libraries)
436 -# xdb: (almost) dead, surely not supported
437 -
438 -IUSE="debug doc geoip ldap libressl lua luajit lua-records mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test"
439 -RESTRICT="!test? ( test )"
440 -
441 -REQUIRED_USE="lua-records? ( lua ) mydns? ( mysql )"
442 -
443 -RDEPEND="
444 - libressl? ( dev-libs/libressl:= )
445 - !libressl? ( dev-libs/openssl:= )
446 - >=dev-libs/boost-1.35:=
447 - lua? (
448 - !luajit? ( dev-lang/lua:= )
449 - luajit? ( dev-lang/luajit:= )
450 - )
451 - lua-records? ( >=net-misc/curl-7.21.3 )
452 - mysql? ( dev-db/mysql-connector-c:= )
453 - postgres? ( dev-db/postgresql:= )
454 - ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 )
455 - sqlite? ( dev-db/sqlite:3 )
456 - opendbx? ( dev-db/opendbx )
457 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip )
458 - sodium? ( dev-libs/libsodium:= )
459 - tinydns? ( >=dev-db/tinycdb-0.77 )
460 - protobuf? ( dev-libs/protobuf )"
461 -DEPEND="${RDEPEND}"
462 -RDEPEND="${RDEPEND}
463 - acct-user/pdns
464 - acct-group/pdns"
465 -
466 -BDEPEND="virtual/pkgconfig
467 - doc? ( app-doc/doxygen )"
468 -
469 -S="${WORKDIR}"/${P/_/-}
470 -
471 -src_configure() {
472 - local dynmodules="pipe bind" # the default backends, always enabled
473 -
474 - #use db2 && dynmodules+=" db2"
475 - use ldap && dynmodules+=" ldap"
476 - use lua && dynmodules+=" lua"
477 - use mydns && dynmodules+=" mydns"
478 - use mysql && dynmodules+=" gmysql"
479 - use opendbx && dynmodules+=" opendbx"
480 - #use oracle && dynmodules+=" goracle oracle"
481 - use postgres && dynmodules+=" gpgsql"
482 - use remote && dynmodules+=" remote"
483 - use sqlite && dynmodules+=" gsqlite3"
484 - use tinydns && dynmodules+=" tinydns"
485 - use geoip && dynmodules+=" geoip"
486 - #use xdb && dynmodules+=" xdb"
487 -
488 - econf \
489 - --disable-static \
490 - --sysconfdir=/etc/powerdns \
491 - --libdir=/usr/$(get_libdir)/powerdns \
492 - --with-modules= \
493 - --with-dynmodules="${dynmodules}" \
494 - --with-mysql-lib=/usr/$(get_libdir) \
495 - $(use_enable debug verbose-logging) \
496 - $(use_enable lua-records) \
497 - $(use_enable test unit-tests) \
498 - $(use_enable tools) \
499 - $(use_enable systemd) \
500 - $(use_with sodium libsodium) \
501 - $(use_with lua lua $(usex luajit luajit lua)) \
502 - $(use_with protobuf) \
503 - ${myconf}
504 -}
505 -
506 -src_compile() {
507 - default
508 - use doc && emake -C codedocs codedocs
509 -}
510 -
511 -src_install() {
512 - default
513 -
514 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
515 -
516 - fperms 0700 /etc/powerdns
517 - fperms 0600 /etc/powerdns/pdns.conf
518 -
519 - # set defaults: setuid=pdns, setgid=pdns
520 - sed -i \
521 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
522 - "${D}"/etc/powerdns/pdns.conf
523 -
524 - newinitd "${FILESDIR}"/pdns-r1 pdns
525 -
526 - keepdir /var/empty
527 -
528 - if use doc; then
529 - docinto html
530 - dodoc -r codedocs/html/.
531 - fi
532 -
533 - # Install development headers
534 - insinto /usr/include/pdns
535 - doins pdns/*.hh
536 - insinto /usr/include/pdns/backends/gsql
537 - doins pdns/backends/gsql/*.hh
538 -
539 - if use ldap ; then
540 - insinto /etc/openldap/schema
541 - doins "${FILESDIR}"/dnsdomain2.schema
542 - fi
543 -
544 - find "${D}" -name '*.la' -delete || die
545 -}
546 -
547 -pkg_postinst() {
548 - elog "PowerDNS provides multiple instances support. You can create more instances"
549 - elog "by symlinking the pdns init script to another name."
550 - elog
551 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
552 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
553 -
554 - if use ldap ; then
555 - echo
556 - ewarn "The official LDAP backend module is only compile-tested by upstream."
557 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
558 - fi
559 -
560 - local old
561 - for old in ${REPLACING_VERSIONS}; do
562 - ver_test ${old} -lt 3.2 || continue
563 -
564 - echo
565 - ewarn "To fix a security bug (bug #458018) had the following"
566 - ewarn "files/directories the world-readable bit removed (if set):"
567 - ewarn " ${EPREFIX}/etc/powerdns"
568 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
569 - ewarn "Check if this is correct for your setup"
570 - ewarn "This is a one-time change and will not happen on subsequent updates."
571 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
572 -
573 - break
574 - done
575 -
576 - if use postgres; then
577 - for old in ${REPLACING_VERSIONS}; do
578 - ver_test ${old} -lt 4.1.11-r1 || continue
579 -
580 - echo
581 - ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend."
582 - ewarn "This security fix needs to be applied manually to the database schema."
583 - ewarn "Please refer to the official security advisory for more information:"
584 - ewarn
585 - ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html"
586 -
587 - break
588 - done
589 - fi
590 -}
591
592 diff --git a/net-dns/pdns/pdns-4.2.1.ebuild b/net-dns/pdns/pdns-4.2.1.ebuild
593 deleted file mode 100644
594 index 5156520ab10..00000000000
595 --- a/net-dns/pdns/pdns-4.2.1.ebuild
596 +++ /dev/null
597 @@ -1,174 +0,0 @@
598 -# Copyright 1999-2020 Gentoo Authors
599 -# Distributed under the terms of the GNU General Public License v2
600 -
601 -EAPI="7"
602 -
603 -inherit multilib user
604 -
605 -DESCRIPTION="The PowerDNS Daemon"
606 -HOMEPAGE="https://www.powerdns.com/"
607 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
608 -
609 -LICENSE="GPL-2"
610 -SLOT="0"
611 -KEYWORDS="amd64 x86"
612 -
613 -# other possible flags:
614 -# db2: we lack the dep
615 -# oracle: dito (need Oracle Client Libraries)
616 -# xdb: (almost) dead, surely not supported
617 -
618 -IUSE="debug doc geoip ldap libressl lua luajit lua-records mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test"
619 -RESTRICT="!test? ( test )"
620 -
621 -REQUIRED_USE="lua-records? ( lua ) mydns? ( mysql )"
622 -
623 -RDEPEND="
624 - libressl? ( dev-libs/libressl:= )
625 - !libressl? ( dev-libs/openssl:= )
626 - >=dev-libs/boost-1.35:=
627 - lua? (
628 - !luajit? ( dev-lang/lua:= )
629 - luajit? ( dev-lang/luajit:= )
630 - )
631 - lua-records? ( >=net-misc/curl-7.21.3 )
632 - mysql? ( dev-db/mysql-connector-c:= )
633 - postgres? ( dev-db/postgresql:= )
634 - ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 )
635 - sqlite? ( dev-db/sqlite:3 )
636 - opendbx? ( dev-db/opendbx )
637 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip )
638 - sodium? ( dev-libs/libsodium:= )
639 - tinydns? ( >=dev-db/tinycdb-0.77 )
640 - protobuf? ( dev-libs/protobuf )"
641 -DEPEND="${RDEPEND}"
642 -BDEPEND="virtual/pkgconfig
643 - doc? ( app-doc/doxygen )"
644 -
645 -S="${WORKDIR}"/${P/_/-}
646 -
647 -src_configure() {
648 - local dynmodules="pipe bind" # the default backends, always enabled
649 -
650 - #use db2 && dynmodules+=" db2"
651 - use ldap && dynmodules+=" ldap"
652 - use lua && dynmodules+=" lua"
653 - use mydns && dynmodules+=" mydns"
654 - use mysql && dynmodules+=" gmysql"
655 - use opendbx && dynmodules+=" opendbx"
656 - #use oracle && dynmodules+=" goracle oracle"
657 - use postgres && dynmodules+=" gpgsql"
658 - use remote && dynmodules+=" remote"
659 - use sqlite && dynmodules+=" gsqlite3"
660 - use tinydns && dynmodules+=" tinydns"
661 - use geoip && dynmodules+=" geoip"
662 - #use xdb && dynmodules+=" xdb"
663 -
664 - econf \
665 - --disable-static \
666 - --sysconfdir=/etc/powerdns \
667 - --libdir=/usr/$(get_libdir)/powerdns \
668 - --with-modules= \
669 - --with-dynmodules="${dynmodules}" \
670 - --with-mysql-lib=/usr/$(get_libdir) \
671 - $(use_enable debug verbose-logging) \
672 - $(use_enable lua-records) \
673 - $(use_enable test unit-tests) \
674 - $(use_enable tools) \
675 - $(use_enable systemd) \
676 - $(use_with sodium libsodium) \
677 - $(use_with lua lua $(usex luajit luajit lua)) \
678 - $(use_with protobuf) \
679 - ${myconf}
680 -}
681 -
682 -src_compile() {
683 - default
684 - use doc && emake -C codedocs codedocs
685 -}
686 -
687 -src_install() {
688 - default
689 -
690 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
691 -
692 - fperms 0700 /etc/powerdns
693 - fperms 0600 /etc/powerdns/pdns.conf
694 -
695 - # set defaults: setuid=pdns, setgid=pdns
696 - sed -i \
697 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
698 - "${D}"/etc/powerdns/pdns.conf
699 -
700 - newinitd "${FILESDIR}"/pdns-r1 pdns
701 -
702 - keepdir /var/empty
703 -
704 - if use doc; then
705 - docinto html
706 - dodoc -r codedocs/html/.
707 - fi
708 -
709 - # Install development headers
710 - insinto /usr/include/pdns
711 - doins pdns/*.hh
712 - insinto /usr/include/pdns/backends/gsql
713 - doins pdns/backends/gsql/*.hh
714 -
715 - if use ldap ; then
716 - insinto /etc/openldap/schema
717 - doins "${FILESDIR}"/dnsdomain2.schema
718 - fi
719 -
720 - find "${D}" -name '*.la' -delete || die
721 -}
722 -
723 -pkg_preinst() {
724 - enewgroup pdns
725 - enewuser pdns -1 -1 /var/empty pdns
726 -}
727 -
728 -pkg_postinst() {
729 - elog "PowerDNS provides multiple instances support. You can create more instances"
730 - elog "by symlinking the pdns init script to another name."
731 - elog
732 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
733 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
734 -
735 - if use ldap ; then
736 - echo
737 - ewarn "The official LDAP backend module is only compile-tested by upstream."
738 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
739 - fi
740 -
741 - local old
742 - for old in ${REPLACING_VERSIONS}; do
743 - ver_test ${old} -lt 3.2 || continue
744 -
745 - echo
746 - ewarn "To fix a security bug (bug #458018) had the following"
747 - ewarn "files/directories the world-readable bit removed (if set):"
748 - ewarn " ${EPREFIX}/etc/powerdns"
749 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
750 - ewarn "Check if this is correct for your setup"
751 - ewarn "This is a one-time change and will not happen on subsequent updates."
752 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
753 -
754 - break
755 - done
756 -
757 - if use postgres; then
758 - for old in ${REPLACING_VERSIONS}; do
759 - ver_test ${old} -lt 4.1.11-r1 || continue
760 -
761 - echo
762 - ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend."
763 - ewarn "This security fix needs to be applied manually to the database schema."
764 - ewarn "Please refer to the official security advisory for more information:"
765 - ewarn
766 - ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html"
767 -
768 - break
769 - done
770 - fi
771 -}
772
773 diff --git a/net-dns/pdns/pdns-4.2.2.ebuild b/net-dns/pdns/pdns-4.2.2.ebuild
774 deleted file mode 100644
775 index 11a7e60ebb9..00000000000
776 --- a/net-dns/pdns/pdns-4.2.2.ebuild
777 +++ /dev/null
778 @@ -1,173 +0,0 @@
779 -# Copyright 1999-2020 Gentoo Authors
780 -# Distributed under the terms of the GNU General Public License v2
781 -
782 -EAPI="7"
783 -
784 -inherit multilib
785 -
786 -DESCRIPTION="The PowerDNS Daemon"
787 -HOMEPAGE="https://www.powerdns.com/"
788 -SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
789 -
790 -LICENSE="GPL-2"
791 -SLOT="0"
792 -KEYWORDS="~amd64 ~x86"
793 -
794 -# other possible flags:
795 -# db2: we lack the dep
796 -# oracle: dito (need Oracle Client Libraries)
797 -# xdb: (almost) dead, surely not supported
798 -
799 -IUSE="debug doc geoip ldap libressl lua luajit lua-records mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test"
800 -RESTRICT="!test? ( test )"
801 -
802 -REQUIRED_USE="lua-records? ( lua ) mydns? ( mysql )"
803 -
804 -RDEPEND="
805 - libressl? ( dev-libs/libressl:= )
806 - !libressl? ( dev-libs/openssl:= )
807 - >=dev-libs/boost-1.35:=
808 - lua? (
809 - !luajit? ( dev-lang/lua:= )
810 - luajit? ( dev-lang/luajit:= )
811 - )
812 - lua-records? ( >=net-misc/curl-7.21.3 )
813 - mysql? ( dev-db/mysql-connector-c:= )
814 - postgres? ( dev-db/postgresql:= )
815 - ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 )
816 - sqlite? ( dev-db/sqlite:3 )
817 - opendbx? ( dev-db/opendbx )
818 - geoip? ( >=dev-cpp/yaml-cpp-0.5.1:= dev-libs/geoip )
819 - sodium? ( dev-libs/libsodium:= )
820 - tinydns? ( >=dev-db/tinycdb-0.77 )
821 - protobuf? ( dev-libs/protobuf )"
822 -DEPEND="${RDEPEND}"
823 -RDEPEND="${RDEPEND}
824 - acct-user/pdns
825 - acct-group/pdns"
826 -
827 -BDEPEND="virtual/pkgconfig
828 - doc? ( app-doc/doxygen )"
829 -
830 -S="${WORKDIR}"/${P/_/-}
831 -
832 -src_configure() {
833 - local dynmodules="pipe bind" # the default backends, always enabled
834 -
835 - #use db2 && dynmodules+=" db2"
836 - use ldap && dynmodules+=" ldap"
837 - use lua && dynmodules+=" lua"
838 - use mydns && dynmodules+=" mydns"
839 - use mysql && dynmodules+=" gmysql"
840 - use opendbx && dynmodules+=" opendbx"
841 - #use oracle && dynmodules+=" goracle oracle"
842 - use postgres && dynmodules+=" gpgsql"
843 - use remote && dynmodules+=" remote"
844 - use sqlite && dynmodules+=" gsqlite3"
845 - use tinydns && dynmodules+=" tinydns"
846 - use geoip && dynmodules+=" geoip"
847 - #use xdb && dynmodules+=" xdb"
848 -
849 - econf \
850 - --disable-static \
851 - --sysconfdir=/etc/powerdns \
852 - --libdir=/usr/$(get_libdir)/powerdns \
853 - --with-modules= \
854 - --with-dynmodules="${dynmodules}" \
855 - --with-mysql-lib=/usr/$(get_libdir) \
856 - $(use_enable debug verbose-logging) \
857 - $(use_enable lua-records) \
858 - $(use_enable test unit-tests) \
859 - $(use_enable tools) \
860 - $(use_enable systemd) \
861 - $(use_with sodium libsodium) \
862 - $(use_with lua lua $(usex luajit luajit lua)) \
863 - $(use_with protobuf) \
864 - ${myconf}
865 -}
866 -
867 -src_compile() {
868 - default
869 - use doc && emake -C codedocs codedocs
870 -}
871 -
872 -src_install() {
873 - default
874 -
875 - mv "${D}"/etc/powerdns/pdns.conf{-dist,}
876 -
877 - fperms 0700 /etc/powerdns
878 - fperms 0600 /etc/powerdns/pdns.conf
879 -
880 - # set defaults: setuid=pdns, setgid=pdns
881 - sed -i \
882 - -e 's/^# set\([ug]\)id=$/set\1id=pdns/g' \
883 - "${D}"/etc/powerdns/pdns.conf
884 -
885 - newinitd "${FILESDIR}"/pdns-r1 pdns
886 -
887 - keepdir /var/empty
888 -
889 - if use doc; then
890 - docinto html
891 - dodoc -r codedocs/html/.
892 - fi
893 -
894 - # Install development headers
895 - insinto /usr/include/pdns
896 - doins pdns/*.hh
897 - insinto /usr/include/pdns/backends/gsql
898 - doins pdns/backends/gsql/*.hh
899 -
900 - if use ldap ; then
901 - insinto /etc/openldap/schema
902 - doins "${FILESDIR}"/dnsdomain2.schema
903 - fi
904 -
905 - find "${D}" -name '*.la' -delete || die
906 -}
907 -
908 -pkg_postinst() {
909 - elog "PowerDNS provides multiple instances support. You can create more instances"
910 - elog "by symlinking the pdns init script to another name."
911 - elog
912 - elog "The name must be in the format pdns.<suffix> and PowerDNS will use the"
913 - elog "/etc/powerdns/pdns-<suffix>.conf configuration file instead of the default."
914 -
915 - if use ldap ; then
916 - echo
917 - ewarn "The official LDAP backend module is only compile-tested by upstream."
918 - ewarn "Try net-dns/pdns-ldap-backend if you have problems with it."
919 - fi
920 -
921 - local old
922 - for old in ${REPLACING_VERSIONS}; do
923 - ver_test ${old} -lt 3.2 || continue
924 -
925 - echo
926 - ewarn "To fix a security bug (bug #458018) had the following"
927 - ewarn "files/directories the world-readable bit removed (if set):"
928 - ewarn " ${EPREFIX}/etc/powerdns"
929 - ewarn " ${EPREFIX}/etc/powerdns/pdns.conf"
930 - ewarn "Check if this is correct for your setup"
931 - ewarn "This is a one-time change and will not happen on subsequent updates."
932 - chmod o-rwx "${EPREFIX}"/etc/powerdns/{,pdns.conf}
933 -
934 - break
935 - done
936 -
937 - if use postgres; then
938 - for old in ${REPLACING_VERSIONS}; do
939 - ver_test ${old} -lt 4.1.11-r1 || continue
940 -
941 - echo
942 - ewarn "PowerDNS 4.1.11 contains a security fix for the PostgreSQL backend."
943 - ewarn "This security fix needs to be applied manually to the database schema."
944 - ewarn "Please refer to the official security advisory for more information:"
945 - ewarn
946 - ewarn " https://doc.powerdns.com/authoritative/security-advisories/powerdns-advisory-2019-06.html"
947 -
948 - break
949 - done
950 - fi
951 -}