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