commit:     081e24be5382b8180b8c40d1f7c44d20c57b0b59
Author:     Sven Wegener <swegener <AT> gentoo <DOT> org>
AuthorDate: Tue Nov  5 20:08:44 2024 +0000
Commit:     Sven Wegener <swegener <AT> gentoo <DOT> org>
CommitDate: Tue Nov  5 21:52:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=081e24be

net-dns/pdns-recursor: add 5.1.3

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

 net-dns/pdns-recursor/Manifest                   |   1 +
 net-dns/pdns-recursor/pdns-recursor-5.1.3.ebuild | 134 +++++++++++++++++++++++
 2 files changed, 135 insertions(+)

diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
index 6a3063401013..119243f2977b 100644
--- a/net-dns/pdns-recursor/Manifest
+++ b/net-dns/pdns-recursor/Manifest
@@ -24,6 +24,7 @@ DIST once_cell-1.18.0.crate 32969 BLAKE2B 
a08d5beee50a7add28bd9e50b18709e7b34574
 DIST once_cell-1.19.0.crate 33046 BLAKE2B 
c14b374eaf4ac0f60acc2e02f7bba270a0e8e0a6978d749cd3cb0ab3eb26907e4fbea70dd5132982f90290381ed18ff8a87fd530f1415fabffac864f157ea380
 SHA512 
4154876afd34a699ee650d1a8a1c5ee5a25f0ebd9388b8bef2564e33629fae68f113d7507488c68abbe7ea1acf9bbc41813cbbf3ef3e464e3f3b9cc7a51d870c
 DIST pdns-recursor-5.0.9.tar.bz2 1679197 BLAKE2B 
1f69f0aa800b8265a580eb9ac2101e19fc383c5a0d8ead98420d399f97fda748cff4e6d7b090259197be2d822e71f65d3c62ddf7710c56cc1e6ca7b600d972d0
 SHA512 
4fcb417e63383111bbb784b440c5b9bf9351a4d8dfae404aa468515cd74a4789fb969b8f3bcee1a08792dcb01a2d8129bbb671db1959f523e557bf69a4bc0fca
 DIST pdns-recursor-5.1.2.tar.bz2 1723288 BLAKE2B 
2698d56e55ccf9538ac83b8a652616c90ab6b3fb3081975991ffb6580b31e268ca3b4a126cf5a92fb6f42d282a748b32b899c2711a2705899d6f82a25a9c6465
 SHA512 
c7d6f188d27c6f11b128945b7615f2f18caf1777b5122f5d4a85ef341b3117b3c26d91af3ecd32fc5cf76ccdb63598e874914f6c7f3e295857cca1a1eb89b61f
+DIST pdns-recursor-5.1.3.tar.bz2 1718665 BLAKE2B 
1030d7ee0b4fc06a4e20f23249167d21ac6439218652a5853ea5f3aaaa476c5bd659cf0e79df27cf42ab6efdd9f5ade856ddde8716aacd1914fe8f8f8792549f
 SHA512 
6ff144efb60125c5fa66232852f267270a24f4b656d039f167be007b6aefb65fb68e53007a868493fca11f7e33916565fb3e4de87dd9bd0899f2d975271a72ec
 DIST proc-macro2-1.0.69.crate 44271 BLAKE2B 
9d1531a0b123e6238363d574bee03ad050454b65710b9800c12597f3a9ae2f9bf50c617da0472b7ac0b549afaca19c546ccd6519e648598500efda9c0db2ef6d
 SHA512 
d197cbe9b6100c3193a01fd7dd6b4e49d440290012ababb5d9f139409f0afe816f213d67a03abeb1f3227228e0a1f2446d1dc0a2775363a15d1237c38b45d6a1
 DIST proc-macro2-1.0.84.crate 48922 BLAKE2B 
51f73a6bbc3cc42aa5bb5c3f4bf404a0c7803f7219673771d375ab288c638113f496e932b98981ef56dac755d9387f888a4147864d8f9364cef47644ea179161
 SHA512 
0d0bd0cc1f457b6d5feb9fd6da670f2a0662d15d88e5d20d4d308103c689a103861b3838eb25e5144cf24fb87abffdebb3175989285a03f08730ce3daa55e35e
 DIST quote-1.0.33.crate 28090 BLAKE2B 
77c4b166f1200e1ee2ab94a5014acd334c1fe4b7d72851d73768d491c56c6779a0882a304c1f30c88732a6168351f0f786b10516ae537cff993892a749175848
 SHA512 
c1e76c3c017e8554eebe309f8167fd56fce931981c06798aa85a0cc6d64a9cba6ab103f5a1324e69c6f9ca5dc47a8e31ff2e847850542748697afcd265b5939c

diff --git a/net-dns/pdns-recursor/pdns-recursor-5.1.3.ebuild 
b/net-dns/pdns-recursor/pdns-recursor-5.1.3.ebuild
new file mode 100644
index 000000000000..b6e990955b2c
--- /dev/null
+++ b/net-dns/pdns-recursor/pdns-recursor-5.1.3.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2024 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]+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]
+"
+
+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 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:=[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
+       append-lfs-flags
+       append-cppflags -D_TIME_BITS=64
+}
+
+src_configure() {
+       econf \
+               --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 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