1 |
commit: 88a6cab832efde27f3741aeaa5dbcebfb1bd8c61 |
2 |
Author: Sven Wegener <swegener <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 1 19:07:58 2021 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 1 19:09:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88a6cab8 |
7 |
|
8 |
net-dns/pdns-recursor: Version bump to 4.4.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
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.4.3.ebuild | 88 ++++++++++++++++++++++++ |
15 |
2 files changed, 89 insertions(+) |
16 |
|
17 |
diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest |
18 |
index 4f0d1146b57..1c461dbb3fb 100644 |
19 |
--- a/net-dns/pdns-recursor/Manifest |
20 |
+++ b/net-dns/pdns-recursor/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pdns-recursor-4.4.2.tar.bz2 1396763 BLAKE2B f8dad7694ac13ed8d824ddaf613d1a001452ab2c08fcbb0e00d2b2258464b754809746b89998b818c44866f9e4b22c87c1cebf2da852fb7b6247ac6b9fd4b99d SHA512 31fdf62d87e5ee8f9570c6b738339bc8cc65c43800f18c7fb49aa5c53fc9ad76a1ddf02cc44f7129e06b41700b5cb3768ff8f81cc521c28147ea6538c73f8781 |
23 |
+DIST pdns-recursor-4.4.3.tar.bz2 1398743 BLAKE2B d9429ef22bb2b196e42da91332332b38dee9220d490c8adda686b0bc144e0981ea4418973f4304d6d964ef8f6ac4adcde4bd3e6d6b208c620440eab1b11a7fc0 SHA512 bac69cbaabc1b0de0def681e07f7e77954e0d487732cb46dc722f7869576a8a477a4011f78c9cc66b5e9b45455eb81534602b2834dc1ad42b85f5f2801915cbb |
24 |
|
25 |
diff --git a/net-dns/pdns-recursor/pdns-recursor-4.4.3.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.4.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..250051ea82e |
28 |
--- /dev/null |
29 |
+++ b/net-dns/pdns-recursor/pdns-recursor-4.4.3.ebuild |
30 |
@@ -0,0 +1,88 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
37 |
+ |
38 |
+inherit flag-o-matic lua-single |
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="debug dnstap libressl protobuf snmp sodium systemd test" |
48 |
+REQUIRED_USE="${LUA_REQUIRED_USE} |
49 |
+ dnstap? ( protobuf )" |
50 |
+ |
51 |
+DEPEND="${LUA_DEPS} |
52 |
+ protobuf? ( |
53 |
+ dev-libs/protobuf |
54 |
+ >=dev-libs/boost-1.42:= |
55 |
+ ) |
56 |
+ dnstap? ( dev-libs/fstrm ) |
57 |
+ systemd? ( sys-apps/systemd:0= ) |
58 |
+ snmp? ( net-analyzer/net-snmp ) |
59 |
+ sodium? ( dev-libs/libsodium:= ) |
60 |
+ libressl? ( dev-libs/libressl:= ) |
61 |
+ !libressl? ( dev-libs/openssl:= ) |
62 |
+ >=dev-libs/boost-1.35:=" |
63 |
+RDEPEND="${DEPEND} |
64 |
+ !<net-dns/pdns-2.9.20-r1 |
65 |
+ acct-user/pdns |
66 |
+ acct-group/pdns" |
67 |
+BDEPEND="virtual/pkgconfig" |
68 |
+ |
69 |
+S="${WORKDIR}"/${P/_/-} |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ lua-single_pkg_setup |
73 |
+ filter-flags -ftree-vectorize |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ econf \ |
78 |
+ --sysconfdir=/etc/powerdns \ |
79 |
+ --with-nod-cache-dir=/var/lib/powerdns \ |
80 |
+ --with-service-user=pdns \ |
81 |
+ --with-service-group=pdns \ |
82 |
+ --with-lua="${ELUA}" \ |
83 |
+ $(use_enable debug verbose-logging) \ |
84 |
+ $(use_enable systemd) \ |
85 |
+ $(use_enable dnstap dnstap) \ |
86 |
+ $(use_enable test unit-tests) \ |
87 |
+ $(use_with sodium libsodium) \ |
88 |
+ $(use_with protobuf) \ |
89 |
+ $(use_with snmp net-snmp) |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ default |
94 |
+ |
95 |
+ mv "${D}"/etc/powerdns/recursor.conf{-dist,} |
96 |
+ |
97 |
+ # set defaults: setuid=nobody, setgid=nobody |
98 |
+ sed -i \ |
99 |
+ -e 's/^# set\([ug]\)id=$/set\1id=pdns/' \ |
100 |
+ -e 's/^# quiet=$/quiet=on/' \ |
101 |
+ -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \ |
102 |
+ "${D}"/etc/powerdns/recursor.conf |
103 |
+ |
104 |
+ newinitd "${FILESDIR}"/pdns-recursor-r2 pdns-recursor |
105 |
+} |
106 |
+ |
107 |
+pkg_postinst() { |
108 |
+ local old |
109 |
+ |
110 |
+ for old in ${REPLACING_VERSIONS}; do |
111 |
+ ver_test ${old} -lt 4.0.0-r1 || continue |
112 |
+ |
113 |
+ ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor" |
114 |
+ ewarn "to pdns-recursor, please update your runlevels accordingly." |
115 |
+ |
116 |
+ break |
117 |
+ done |
118 |
+} |