1 |
commit: 05ee93f50d4fd9d8a5261c4984a05f87d23490b6 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 27 17:33:03 2017 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 27 18:21:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05ee93f5 |
7 |
|
8 |
net-dns/pdns-recursor: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
11 |
Signed-off-by: Sven Wegener <swegener <AT> gentoo.org> |
12 |
|
13 |
net-dns/pdns-recursor/Manifest | 1 + |
14 |
net-dns/pdns-recursor/pdns-recursor-4.0.7.ebuild | 75 ++++++++++++++++++++++++ |
15 |
2 files changed, 76 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest |
18 |
index add5cf30b79..d508e86709a 100644 |
19 |
--- a/net-dns/pdns-recursor/Manifest |
20 |
+++ b/net-dns/pdns-recursor/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST pdns-recursor-4.0.6.tar.bz2 1105423 BLAKE2B 50cc52f118630d4d8ce9876c2e11494a3c972ec90003c40fea36801eb08bd8b6173f876e6f53eb672ad8ff3da04e669946740a50f653a21459f25c1137d91297 SHA512 2203fd96469deded1da677344485da221eec036b1ad9fb418a89cd4477d73f2a6fcf984a39b574561df6946f440ddf1982de20cd39d7204da9c27e74216d1159 |
23 |
+DIST pdns-recursor-4.0.7.tar.bz2 1107546 BLAKE2B 3ccda73878599e3ade69e4dc6b0787e588a8403fb7cacfbe574409513b8723cbfd29a3c73d857120def801da60a4bedbc0f0c396e6642adb0287204cde301331 SHA512 0c8873adcce5ed9b41f161bc71635da23496b4ae48dbffff7dcdf9c5181e720f9aa94e18bd64e0dff9fa03eae8410dc93585a74d13f0c16d38b0d1c0f4146bb2 |
24 |
DIST pdns-recursor-4.1.0-rc3.tar.bz2 1191353 BLAKE2B fcbc6f08f962c9c2f459448770406734eff2caab43b615690e9d910b65327e45182aa2c9bcadadeaa6eb3984a8cb463849d5e001ffb98bb618966da5b8557a8a SHA512 141e3fcbf5e7c81ae0228fb7a15c599ef5ae41e2c2d169e2f7b4f57c6c832ac40d3e20302d219ba565c4a514b1297906684247a1a56cd740e3ea0bff4a7da51d |
25 |
|
26 |
diff --git a/net-dns/pdns-recursor/pdns-recursor-4.0.7.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.0.7.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..0a340128667 |
29 |
--- /dev/null |
30 |
+++ b/net-dns/pdns-recursor/pdns-recursor-4.0.7.ebuild |
31 |
@@ -0,0 +1,75 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
36 |
+ |
37 |
+inherit toolchain-funcs flag-o-matic eutils versionator |
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="lua luajit protobuf systemd" |
47 |
+REQUIRED_USE="?? ( lua luajit )" |
48 |
+ |
49 |
+DEPEND="lua? ( >=dev-lang/lua-5.1:= ) |
50 |
+ luajit? ( dev-lang/luajit:= ) |
51 |
+ protobuf? ( |
52 |
+ dev-libs/protobuf |
53 |
+ >=dev-libs/boost-1.42:= |
54 |
+ ) |
55 |
+ systemd? ( sys-apps/systemd:0= ) |
56 |
+ >=dev-libs/boost-1.35:=" |
57 |
+RDEPEND="${DEPEND} |
58 |
+ !<net-dns/pdns-2.9.20-r1" |
59 |
+DEPEND="${DEPEND} |
60 |
+ virtual/pkgconfig" |
61 |
+ |
62 |
+S="${WORKDIR}"/${P/_/-} |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ filter-flags -ftree-vectorize |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ econf \ |
70 |
+ --sysconfdir=/etc/powerdns \ |
71 |
+ $(use_enable systemd) \ |
72 |
+ $(use_with lua) \ |
73 |
+ $(use_with luajit) \ |
74 |
+ $(use_with protobuf) |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ default |
79 |
+ |
80 |
+ mv "${D}"/etc/powerdns/recursor.conf{-dist,} |
81 |
+ |
82 |
+ # set defaults: setuid=nobody, setgid=nobody |
83 |
+ sed -i \ |
84 |
+ -e 's/^# set\([ug]\)id=$/set\1id=nobody/' \ |
85 |
+ -e 's/^# quiet=$/quiet=on/' \ |
86 |
+ -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \ |
87 |
+ "${D}"/etc/powerdns/recursor.conf |
88 |
+ |
89 |
+ newinitd "${FILESDIR}"/pdns-recursor-r1 pdns-recursor |
90 |
+ |
91 |
+ keepdir /var/lib/powerdns |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ local old |
96 |
+ |
97 |
+ for old in ${REPLACING_VERSIONS}; do |
98 |
+ version_compare ${old} 4.0.0-r1 |
99 |
+ [[ $? -eq 1 ]] || continue |
100 |
+ |
101 |
+ ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor" |
102 |
+ ewarn "to pdns-recursor, please update your runlevels accordingly." |
103 |
+ |
104 |
+ break |
105 |
+ done |
106 |
+} |