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/
Date: Tue, 13 Oct 2020 11:30:34
Message-Id: 1602588535.ec8f51b4afaad9612dad0340c81968344a61964b.swegener@gentoo
1 commit: ec8f51b4afaad9612dad0340c81968344a61964b
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 13 11:20:34 2020 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 13 11:28:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec8f51b4
7
8 net-dns/pdns-recursor: Version bump to 4.3.5, security bug #746923
9
10 Bug: https://bugs.gentoo.org/746923
11 Package-Manager: Portage-3.0.8, Repoman-3.0.1
12 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
13
14 net-dns/pdns-recursor/Manifest | 1 +
15 net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild | 81 ++++++++++++++++++++++++
16 2 files changed, 82 insertions(+)
17
18 diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
19 index 39d29b8a2f8..6208b5c960a 100644
20 --- a/net-dns/pdns-recursor/Manifest
21 +++ b/net-dns/pdns-recursor/Manifest
22 @@ -1,3 +1,4 @@
23 DIST pdns-recursor-4.3.3.tar.bz2 1357853 BLAKE2B fa57776bbdb77d1f13f04fdd1fb5ceb07539f851704dc627443a7c814d6640b1e7890333b6d7214a201f5d3f83a54a7840adb6450ffb7696e58722625b7c57c5 SHA512 285f12d3cb2edaca7507dd9dad1356b60076d43af678458346489562ea8933a01d61d2430d5282b6afd213839ee684ad83e5f523c9a272f382d74ccc238bd9d5
24 DIST pdns-recursor-4.3.4.tar.bz2 1359380 BLAKE2B b55829b843f3abc9394bcb943c223b24684ebe67854fbde8590aded09a8ef18d8b15d1e2ebe1b88d24833b8782266b1ce853d98c0ce510e115e8d16ce900ece2 SHA512 cfc34f42ed95c7fd2be1ab7ba172672e5e1db96b4ced171c1eae7bd60fb7db482aed928028811b133d326550de35c506a8fc480b12ae39ab7fa142408e0b42d8
25 +DIST pdns-recursor-4.3.5.tar.bz2 1341930 BLAKE2B 8f81182cb5283e6b8f459c5d23281d20cba02d22cec8776fdab67d452834b82945f467186c98784519d2c79d9df8438b174fc644fb11d68d04f9f636e51a5551 SHA512 2d39e6016000951c0beca38b26c41664b57c059dee762d7499f34e599ed6c2653af73edb31ba5a8d35f749534f24c0d85b6aedf4c35dc8a05777ffebd1b25851
26 DIST pdns-recursor-4.4.0-rc2.tar.bz2 1393346 BLAKE2B 00f03dc05747e3b0962fdbff0e2d15b8e9d4703b84bafa086a5e1c229613b42d010ec963296845fe981c9bb99f02f8d60897fe180943091d0b904d0f65f453c0 SHA512 91f63924c30d89bf06dcaf48a588f116cedef530319b4e4682daf14682998b4879aca5d1796aa36a50ba327053523659f9a8ad180d592e5857f898e37f0064ec
27
28 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild
29 new file mode 100644
30 index 00000000000..0806261b1f4
31 --- /dev/null
32 +++ b/net-dns/pdns-recursor/pdns-recursor-4.3.5.ebuild
33 @@ -0,0 +1,81 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI="7"
38 +
39 +inherit flag-o-matic
40 +
41 +DESCRIPTION="The PowerDNS Recursor"
42 +HOMEPAGE="https://www.powerdns.com/"
43 +SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
44 +
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~x86"
48 +IUSE="debug dnstap libressl luajit protobuf snmp sodium systemd"
49 +REQUIRED_USE="dnstap? ( protobuf )"
50 +
51 +DEPEND="!luajit? ( >=dev-lang/lua-5.1:= )
52 + luajit? ( dev-lang/luajit:= )
53 + protobuf? (
54 + dev-libs/protobuf
55 + >=dev-libs/boost-1.42:=
56 + )
57 + dnstap? ( dev-libs/fstrm )
58 + systemd? ( sys-apps/systemd:0= )
59 + snmp? ( net-analyzer/net-snmp )
60 + sodium? ( dev-libs/libsodium:= )
61 + libressl? ( dev-libs/libressl:= )
62 + !libressl? ( dev-libs/openssl:= )
63 + >=dev-libs/boost-1.35:="
64 +RDEPEND="${DEPEND}
65 + !<net-dns/pdns-2.9.20-r1
66 + acct-user/pdns
67 + acct-group/pdns"
68 +BDEPEND="virtual/pkgconfig"
69 +
70 +S="${WORKDIR}"/${P/_/-}
71 +
72 +pkg_setup() {
73 + filter-flags -ftree-vectorize
74 +}
75 +
76 +src_configure() {
77 + econf \
78 + --sysconfdir=/etc/powerdns \
79 + --with-lua=$(usex luajit luajit lua) \
80 + $(use_enable debug verbose-logging) \
81 + $(use_enable systemd) \
82 + $(use_enable dnstap dnstap) \
83 + $(use_with sodium libsodium) \
84 + $(use_with protobuf) \
85 + $(use_with snmp net-snmp)
86 +}
87 +
88 +src_install() {
89 + default
90 +
91 + mv "${D}"/etc/powerdns/recursor.conf{-dist,}
92 +
93 + # set defaults: setuid=nobody, setgid=nobody
94 + sed -i \
95 + -e 's/^# set\([ug]\)id=$/set\1id=pdns/' \
96 + -e 's/^# quiet=$/quiet=on/' \
97 + -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
98 + "${D}"/etc/powerdns/recursor.conf
99 +
100 + newinitd "${FILESDIR}"/pdns-recursor-r2 pdns-recursor
101 +}
102 +
103 +pkg_postinst() {
104 + local old
105 +
106 + for old in ${REPLACING_VERSIONS}; do
107 + ver_test ${old} -lt 4.0.0-r1 || continue
108 +
109 + ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
110 + ewarn "to pdns-recursor, please update your runlevels accordingly."
111 +
112 + break
113 + done
114 +}