commit:     4190b92122b21c8aab1ed56119befec702884b31
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 29 17:32:55 2025 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Tue Jul 29 17:33:29 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4190b921

net-dns/pdns-recursor: add 5.2.5

Signed-off-by: Sven Wegener <swegener <AT> gentoo.org>

 net-dns/pdns-recursor/Manifest                   |   1 +
 net-dns/pdns-recursor/pdns-recursor-5.2.5.ebuild | 140 +++++++++++++++++++++++
 2 files changed, 141 insertions(+)

diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
index 19a685be8209..553222aff70c 100644
--- a/net-dns/pdns-recursor/Manifest
+++ b/net-dns/pdns-recursor/Manifest
@@ -16,6 +16,7 @@ DIST link-cplusplus-1.0.9.crate 7484 BLAKE2B 
4f73807068243aa0dc4b6773c5446fc9881
 DIST memchr-2.7.4.crate 96670 BLAKE2B 
da38114beca670467c3e1fbf4e415af6f22d52e3223715d52e181babb89b872b46511563985bcc16d7ff4e82f812c6e83ad904b0fe2501b14445119dfa8240e6
 SHA512 
8d0e8b9c30208897d4b1b920f1bdcccd0c2b75d92a06abe4a1b2407938768abb6487d63de56c6a80419798fe69517210643dfaf11f5f5540185f0eccf220adb2
 DIST once_cell-1.19.0.crate 33046 BLAKE2B 
c14b374eaf4ac0f60acc2e02f7bba270a0e8e0a6978d749cd3cb0ab3eb26907e4fbea70dd5132982f90290381ed18ff8a87fd530f1415fabffac864f157ea380
 SHA512 
4154876afd34a699ee650d1a8a1c5ee5a25f0ebd9388b8bef2564e33629fae68f113d7507488c68abbe7ea1acf9bbc41813cbbf3ef3e464e3f3b9cc7a51d870c
 DIST pdns-recursor-5.2.4.tar.bz2 1726272 BLAKE2B 
dcd08e93e8eda8788f5014bab9d495112cc87ca8ca06593dfaa401cbccaf390d50e608c43f05db0305f4cd2f9d8d90a6816e9d1b9e2ec6dc06da85275b68d02e
 SHA512 
04683e4fecc9b93599b76fe3aede486e6666aacfa141ca206431a213ee0007424872832ee62d874053a8d4f3df0ad19cd2e9a16733f294dd5989211ad5754888
+DIST pdns-recursor-5.2.5.tar.bz2 1726625 BLAKE2B 
6e8c7449b4fb28e8eb0b7a77a17dc4b632a80482badbd785807a499ac5748261e7db9128e37336d39d7567a7058b01562e547789053b8d445746d6f774765d7f
 SHA512 
2b94de2fd1fe8a52761f129af360d4857fdbc02b31667f8690393a016516e4f46dfb013895b416a9152aabf8af103ad3b83b3a8601dc75bce5f24141be1e8b6b
 DIST proc-macro2-1.0.86.crate 48958 BLAKE2B 
4b89e07f23af8328dbb34fe2b3f1b202f1e6a3885a6269740a23359b41bb4099ac2484565d3b2b0936261689ca525785ac620c766997234fd8d0f409e80e5ea3
 SHA512 
1cdb7e22a35ae231d880c9420784c9acf97bda2db258b3d34aae5061dc1858449defe19a49e12c6a4173906aa72a4115059ac2db0fc760205fd2ab8b5b414434
 DIST quote-1.0.37.crate 28558 BLAKE2B 
a7d007a69e619f853af94333e1066bb767013312bd99f147b1b153611242bcfa9c76768b1ba47278589db309a9acd61a772c8ec3b567e48439bb9d831f9326d4
 SHA512 
c4ed21428c1f89cf22b85d80720a7869831a9c129d694617b0ce8c258278114ab98846f3f653abf736d1c86bc9224bbd695e9a7b06aa3adf292d02e1ef14cc05
 DIST ryu-1.0.18.crate 47713 BLAKE2B 
409cdf4b4e77685394018371e91ad6fdb175ac57e1df9f902871f13208515e5a2ab1daa226fc1e7291278e64448332845be4cc9409bce3b2f3daed409259e104
 SHA512 
a9b2beac778ec47e6be303148d7512ee681bd2361f6e4ac6db32c8b4baf86a8c5eb5b0d02eacd6131ae88c7b5105c57018c3050676e0b3dd1ed9c4d2fd650e84

diff --git a/net-dns/pdns-recursor/pdns-recursor-5.2.5.ebuild 
b/net-dns/pdns-recursor/pdns-recursor-5.2.5.ebuild
new file mode 100644
index 000000000000..992be8dbeafc
--- /dev/null
+++ b/net-dns/pdns-recursor/pdns-recursor-5.2.5.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+CRATES="
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+deprecated
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+"
+
+inherit cargo flag-o-matic lua-single
+
+DESCRIPTION="The PowerDNS Recursor"
+HOMEPAGE="https://www.powerdns.com/";
+SRC_URI="https://downloads.powerdns.com/releases/${P/_/-}.tar.bz2 
${CARGO_CRATE_URIS}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="debug dns-over-tls dnstap snmp sodium systemd test valgrind"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+DEPEND="${LUA_DEPS}
+       dnstap? ( dev-libs/fstrm )
+       systemd? ( sys-apps/systemd:0= )
+       snmp? ( net-analyzer/net-snmp )
+       sodium? ( dev-libs/libsodium:= )
+       elibc_glibc? (
+               arm? ( >=sys-libs/glibc-2.34 )
+               x86? ( >=sys-libs/glibc-2.34 )
+       )
+       dev-libs/openssl:=
+       >=dev-libs/boost-1.54:=[context]"
+RDEPEND="${DEPEND}
+       !<net-dns/pdns-2.9.20-r1
+       acct-user/pdns
+       acct-group/pdns"
+DEPEND="${DEPEND}
+       valgrind? ( dev-debug/valgrind )"
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}"/${P/_/-}
+
+pkg_setup() {
+       lua-single_pkg_setup
+       filter-flags -ftree-vectorize
+       filter-lto
+       rust_pkg_setup
+}
+
+src_configure() {
+       econf \
+               --enable-experimental-64bit-time_t-support-on-glibc \
+               --sysconfdir=/etc/powerdns \
+               --with-nod-cache-dir=/var/lib/powerdns \
+               --with-service-user=pdns \
+               --with-service-group=pdns \
+               --with-lua="${ELUA}" \
+               $(use_enable debug verbose-logging) \
+               $(use_enable systemd) \
+               $(use_enable dns-over-tls) \
+               $(use_enable dnstap dnstap) \
+               $(use_enable test unit-tests) \
+               $(use_enable valgrind) \
+               $(use_with sodium libsodium) \
+               $(use_with snmp net-snmp)
+}
+
+src_compile() {
+       default
+}
+
+src_install() {
+       default
+
+       # rename .yml file to .conf, to facilitate easy upgrade and switch to 
.yml
+       mv "${D}"/etc/powerdns/recursor.{yml-dist,conf} || die
+
+       sed -i \
+               -e 's/^#   set\([ug]\)id: '\'\''$/    set\1id: '\''pdns'\''/' \
+               -e 's/^#   chroot: '\'\''$/    chroot: 
'\''\/var\/lib\/powerdns'\''/' \
+               "${D}"/etc/powerdns/recursor.conf || die
+
+       newinitd "${FILESDIR}"/pdns-recursor-r3 pdns-recursor
+
+       keepdir /var/lib/powerdns
+}
+
+src_test() {
+       default
+}
+
+pkg_postinst() {
+       einfo "Starting with 5.1.x we default to using the new yaml 
configuration file format."
+       einfo "The old configuration file format is still supported for now, 
but please update"
+       einfo "your recursor.conf to yaml using 'rec_control show-yaml'."
+}

Reply via email to