1 |
commit: 39b7a541e663b27fd3029468402d60ea618e7259 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 11 12:47:05 2017 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 11 12:47:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39b7a541 |
7 |
|
8 |
net-dns/pdns-recursor: Version bump, security bug #639780 |
9 |
|
10 |
CVE-2017-15120 |
11 |
|
12 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
13 |
|
14 |
net-dns/pdns-recursor/Manifest | 1 + |
15 |
net-dns/pdns-recursor/pdns-recursor-4.0.8.ebuild | 77 ++++++++++++++++++++++++ |
16 |
2 files changed, 78 insertions(+) |
17 |
|
18 |
diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest |
19 |
index c9752e96db9..41d62310056 100644 |
20 |
--- a/net-dns/pdns-recursor/Manifest |
21 |
+++ b/net-dns/pdns-recursor/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST pdns-recursor-4.0.7.tar.bz2 1107546 BLAKE2B 3ccda73878599e3ade69e4dc6b0787e588a8403fb7cacfbe574409513b8723cbfd29a3c73d857120def801da60a4bedbc0f0c396e6642adb0287204cde301331 SHA512 0c8873adcce5ed9b41f161bc71635da23496b4ae48dbffff7dcdf9c5181e720f9aa94e18bd64e0dff9fa03eae8410dc93585a74d13f0c16d38b0d1c0f4146bb2 |
24 |
+DIST pdns-recursor-4.0.8.tar.bz2 1071831 BLAKE2B d9ab0dada8efa4b05c136650b9a2eab3aec4acab28ffb6da5bb4f627dc085b2c2d046d1f0dac5cf6e7054b47d76b8d7b95f56cc096b613891a4422b77e9abe9d SHA512 9886fccd3042904b7133e03a7b45479c8f2f57ecb33e4a043703b5e84816cd04a331503870e16030c86b353c1e14d9283dba767c1247e46ed6e14b7e0e93a5ef |
25 |
DIST pdns-recursor-4.1.0.tar.bz2 1222751 BLAKE2B b2b5a7dee227b28eb3a1451a4d07cb1804e039e6b405c332f30fbb8df39f395906607f3c074b2469b01885b702d12e86e4ffd6114811404134c16956905c744f SHA512 1e4d70f3794005c3f45b2ec0ab580c3697e7de3096f3378b9b9d1cd53f10f95e577522ca9f634eb235b166f007e8a2bfa99f312ddf19f266ad4bb0965167fd7c |
26 |
|
27 |
diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.8.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.8.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..9d36d762944 |
30 |
--- /dev/null |
31 |
+++ b/net-dns/pdns-recursor/pdns-recursor-4.0.8.ebuild |
32 |
@@ -0,0 +1,77 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+ |
38 |
+inherit toolchain-funcs flag-o-matic eutils versionator |
39 |
+ |
40 |
+DESCRIPTION="The PowerDNS Recursor" |
41 |
+HOMEPAGE="https://www.powerdns.com/" |
42 |
+SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~x86" |
47 |
+IUSE="libressl lua luajit protobuf systemd" |
48 |
+REQUIRED_USE="?? ( lua luajit )" |
49 |
+ |
50 |
+DEPEND="lua? ( >=dev-lang/lua-5.1:= ) |
51 |
+ luajit? ( dev-lang/luajit:= ) |
52 |
+ protobuf? ( |
53 |
+ dev-libs/protobuf |
54 |
+ >=dev-libs/boost-1.42:= |
55 |
+ ) |
56 |
+ systemd? ( sys-apps/systemd:0= ) |
57 |
+ libressl? ( dev-libs/libressl:= ) |
58 |
+ !libressl? ( dev-libs/openssl:= ) |
59 |
+ >=dev-libs/boost-1.35:=" |
60 |
+RDEPEND="${DEPEND} |
61 |
+ !<net-dns/pdns-2.9.20-r1" |
62 |
+DEPEND="${DEPEND} |
63 |
+ virtual/pkgconfig" |
64 |
+ |
65 |
+S="${WORKDIR}"/${P/_/-} |
66 |
+ |
67 |
+pkg_setup() { |
68 |
+ filter-flags -ftree-vectorize |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ econf \ |
73 |
+ --sysconfdir=/etc/powerdns \ |
74 |
+ $(use_enable systemd) \ |
75 |
+ $(use_with lua) \ |
76 |
+ $(use_with luajit) \ |
77 |
+ $(use_with protobuf) |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ default |
82 |
+ |
83 |
+ mv "${D}"/etc/powerdns/recursor.conf{-dist,} |
84 |
+ |
85 |
+ # set defaults: setuid=nobody, setgid=nobody |
86 |
+ sed -i \ |
87 |
+ -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \ |
88 |
+ -e 's/^# quiet=$/quiet=on/' \ |
89 |
+ -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \ |
90 |
+ "${D}"/etc/powerdns/recursor.conf |
91 |
+ |
92 |
+ newinitd "${FILESDIR}"/pdns-recursor-r1 pdns-recursor |
93 |
+ |
94 |
+ keepdir /var/lib/powerdns |
95 |
+} |
96 |
+ |
97 |
+pkg_postinst() { |
98 |
+ local old |
99 |
+ |
100 |
+ for old in ${REPLACING_VERSIONS}; do |
101 |
+ version_compare ${old} 4.0.0-r1 |
102 |
+ [[ $? -eq 1 ]] || continue |
103 |
+ |
104 |
+ ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor" |
105 |
+ ewarn "to pdns-recursor, please update your runlevels accordingly." |
106 |
+ |
107 |
+ break |
108 |
+ done |
109 |
+} |