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: Thu, 10 Jun 2021 19:35:01
Message-Id: 1623353630.c56fae1353b26af0ed409076fe48d8f87d0f5dae.swegener@gentoo
1 commit: c56fae1353b26af0ed409076fe48d8f87d0f5dae
2 Author: Sven Wegener <swegener <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 10 19:32:09 2021 +0000
4 Commit: Sven Wegener <swegener <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 10 19:33:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c56fae13
7
8 net-dns/pdns-recursor: Version bump to 4.4.4 and 4.5.2
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>
12
13 net-dns/pdns-recursor/Manifest | 2 +
14 net-dns/pdns-recursor/pdns-recursor-4.4.4.ebuild | 88 ++++++++++++++++++++++++
15 net-dns/pdns-recursor/pdns-recursor-4.5.2.ebuild | 82 ++++++++++++++++++++++
16 3 files changed, 172 insertions(+)
17
18 diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
19 index e5fd3f39f08..ba395ca18f5 100644
20 --- a/net-dns/pdns-recursor/Manifest
21 +++ b/net-dns/pdns-recursor/Manifest
22 @@ -1,2 +1,4 @@
23 DIST pdns-recursor-4.4.3.tar.bz2 1398743 BLAKE2B d9429ef22bb2b196e42da91332332b38dee9220d490c8adda686b0bc144e0981ea4418973f4304d6d964ef8f6ac4adcde4bd3e6d6b208c620440eab1b11a7fc0 SHA512 bac69cbaabc1b0de0def681e07f7e77954e0d487732cb46dc722f7869576a8a477a4011f78c9cc66b5e9b45455eb81534602b2834dc1ad42b85f5f2801915cbb
24 +DIST pdns-recursor-4.4.4.tar.bz2 1399645 BLAKE2B 2ef2a59b9c402ab9d9b59d6b89e85b7103dbd9cdcc6147d08f09b85209cb2e298ff539dcb24895a4711f4e7c55c398d0307f237b22d1bdadaf01ec3925af0e8f SHA512 de8ac38d77a4700cd9dd64aad2ba7d1a97057683ace34f1dc3b2e9680faef5637ce7cedb66ceb0b7701f7ff6ef80cbee653549302805b30f9a6defa3a4e8e830
25 DIST pdns-recursor-4.5.1.tar.bz2 1463138 BLAKE2B 863cddbe4001b32cf457dc489bd39ad7b045f19183b1d13bc31bfd7fa28cc6e7e69755216715e0fd75fd0d724de20f7b89c89017fc42dff35de4e45e9351af75 SHA512 0cfbc95e3e84a2ab2cd88ee638b0ff26f5f35b64754086483555df28f045d64b5fdfab3e8c430c0b4e97dc4eda624226c37ec0f50902ffe5f84882d814e8051e
26 +DIST pdns-recursor-4.5.2.tar.bz2 1464834 BLAKE2B 88acd7a6edecf8188b366a9fcff0eaf1b71429df8aad4dbcf157be39901b56ee3c9a9d55bf55bb060bcbb59f68b3ff8987788f4186a7122787874f895be1e751 SHA512 02a9f725c7528f91eb45409b32ffa06cb7fca1f0151907efcd8b75100942e98f593858543df15423413d69c9fd433bad3c8bad0a84f8144af07c637f22a86d5e
27
28 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.4.4.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.4.4.ebuild
29 new file mode 100644
30 index 00000000000..dc546d8cd6c
31 --- /dev/null
32 +++ b/net-dns/pdns-recursor/pdns-recursor-4.4.4.ebuild
33 @@ -0,0 +1,88 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +LUA_COMPAT=( lua5-{1..4} luajit )
40 +
41 +inherit flag-o-matic lua-single
42 +
43 +DESCRIPTION="The PowerDNS Recursor"
44 +HOMEPAGE="https://www.powerdns.com/"
45 +SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~x86"
50 +IUSE="debug dnstap protobuf snmp sodium systemd test"
51 +REQUIRED_USE="${LUA_REQUIRED_USE}
52 + dnstap? ( protobuf )"
53 +RESTRICT="!test? ( test )"
54 +
55 +DEPEND="${LUA_DEPS}
56 + protobuf? (
57 + dev-libs/protobuf
58 + >=dev-libs/boost-1.42:=
59 + )
60 + dnstap? ( dev-libs/fstrm )
61 + systemd? ( sys-apps/systemd:0= )
62 + snmp? ( net-analyzer/net-snmp )
63 + sodium? ( dev-libs/libsodium:= )
64 + dev-libs/openssl:=
65 + >=dev-libs/boost-1.35:="
66 +RDEPEND="${DEPEND}
67 + !<net-dns/pdns-2.9.20-r1
68 + acct-user/pdns
69 + acct-group/pdns"
70 +BDEPEND="virtual/pkgconfig"
71 +
72 +S="${WORKDIR}"/${P/_/-}
73 +
74 +pkg_setup() {
75 + lua-single_pkg_setup
76 + filter-flags -ftree-vectorize
77 +}
78 +
79 +src_configure() {
80 + econf \
81 + --sysconfdir=/etc/powerdns \
82 + --with-nod-cache-dir=/var/lib/powerdns \
83 + --with-service-user=pdns \
84 + --with-service-group=pdns \
85 + --with-lua="${ELUA}" \
86 + $(use_enable debug verbose-logging) \
87 + $(use_enable systemd) \
88 + $(use_enable dnstap dnstap) \
89 + $(use_enable test unit-tests) \
90 + $(use_with sodium libsodium) \
91 + $(use_with protobuf) \
92 + $(use_with snmp net-snmp)
93 +}
94 +
95 +src_install() {
96 + default
97 +
98 + mv "${D}"/etc/powerdns/recursor.conf{-dist,}
99 +
100 + # set defaults: setuid=nobody, setgid=nobody
101 + sed -i \
102 + -e 's/^# set\([ug]\)id=$/set\1id=pdns/' \
103 + -e 's/^# quiet=$/quiet=on/' \
104 + -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
105 + "${D}"/etc/powerdns/recursor.conf
106 +
107 + newinitd "${FILESDIR}"/pdns-recursor-r2 pdns-recursor
108 +}
109 +
110 +pkg_postinst() {
111 + local old
112 +
113 + for old in ${REPLACING_VERSIONS}; do
114 + ver_test ${old} -lt 4.0.0-r1 || continue
115 +
116 + ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
117 + ewarn "to pdns-recursor, please update your runlevels accordingly."
118 +
119 + break
120 + done
121 +}
122
123 diff --git a/net-dns/pdns-recursor/pdns-recursor-4.5.2.ebuild b/net-dns/pdns-recursor/pdns-recursor-4.5.2.ebuild
124 new file mode 100644
125 index 00000000000..391869be2ae
126 --- /dev/null
127 +++ b/net-dns/pdns-recursor/pdns-recursor-4.5.2.ebuild
128 @@ -0,0 +1,82 @@
129 +# Copyright 1999-2021 Gentoo Authors
130 +# Distributed under the terms of the GNU General Public License v2
131 +
132 +EAPI=7
133 +
134 +LUA_COMPAT=( lua5-{1..4} luajit )
135 +
136 +inherit flag-o-matic lua-single
137 +
138 +DESCRIPTION="The PowerDNS Recursor"
139 +HOMEPAGE="https://www.powerdns.com/"
140 +SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2"
141 +
142 +LICENSE="GPL-2"
143 +SLOT="0"
144 +KEYWORDS="~amd64"
145 +IUSE="debug dnstap snmp sodium systemd test"
146 +REQUIRED_USE="${LUA_REQUIRED_USE}"
147 +RESTRICT="!test? ( test )"
148 +
149 +DEPEND="${LUA_DEPS}
150 + dnstap? ( dev-libs/fstrm )
151 + systemd? ( sys-apps/systemd:0= )
152 + snmp? ( net-analyzer/net-snmp )
153 + sodium? ( dev-libs/libsodium:= )
154 + dev-libs/openssl:=
155 + >=dev-libs/boost-1.35:="
156 +RDEPEND="${DEPEND}
157 + !<net-dns/pdns-2.9.20-r1
158 + acct-user/pdns
159 + acct-group/pdns"
160 +BDEPEND="virtual/pkgconfig"
161 +
162 +S="${WORKDIR}"/${P/_/-}
163 +
164 +pkg_setup() {
165 + lua-single_pkg_setup
166 + filter-flags -ftree-vectorize
167 +}
168 +
169 +src_configure() {
170 + econf \
171 + --sysconfdir=/etc/powerdns \
172 + --with-nod-cache-dir=/var/lib/powerdns \
173 + --with-service-user=pdns \
174 + --with-service-group=pdns \
175 + --with-lua="${ELUA}" \
176 + $(use_enable debug verbose-logging) \
177 + $(use_enable systemd) \
178 + $(use_enable dnstap dnstap) \
179 + $(use_enable test unit-tests) \
180 + $(use_with sodium libsodium) \
181 + $(use_with snmp net-snmp)
182 +}
183 +
184 +src_install() {
185 + default
186 +
187 + mv "${D}"/etc/powerdns/recursor.conf{-dist,}
188 +
189 + # set defaults: setuid=nobody, setgid=nobody
190 + sed -i \
191 + -e 's/^# set\([ug]\)id=$/set\1id=pdns/' \
192 + -e 's/^# quiet=$/quiet=on/' \
193 + -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
194 + "${D}"/etc/powerdns/recursor.conf
195 +
196 + newinitd "${FILESDIR}"/pdns-recursor-r2 pdns-recursor
197 +}
198 +
199 +pkg_postinst() {
200 + local old
201 +
202 + for old in ${REPLACING_VERSIONS}; do
203 + ver_test ${old} -lt 4.0.0-r1 || continue
204 +
205 + ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
206 + ewarn "to pdns-recursor, please update your runlevels accordingly."
207 +
208 + break
209 + done
210 +}