summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2024-10-03 20:18:06 +0200
committerSven Wegener <swegener@gentoo.org>2024-10-03 20:21:03 +0200
commit12d0a67e4cafe3583702ceeaed63715274ec46fc (patch)
tree5e44f15518b9b8fb3455383f2f86b256eef7c0ed /net-dns
parentmedia-libs/mesa: Version bump to 24.2.4 (diff)
downloadgentoo-12d0a67e4cafe3583702ceeaed63715274ec46fc.tar.gz
gentoo-12d0a67e4cafe3583702ceeaed63715274ec46fc.tar.bz2
gentoo-12d0a67e4cafe3583702ceeaed63715274ec46fc.zip
net-dns/pdns-recursor: add 5.0.9
Bug: https://bugs.gentoo.org/940726 Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/pdns-recursor/Manifest1
-rw-r--r--net-dns/pdns-recursor/pdns-recursor-5.0.9.ebuild132
2 files changed, 133 insertions, 0 deletions
diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
index 81065e1e99f8..116e9012aa6c 100644
--- a/net-dns/pdns-recursor/Manifest
+++ b/net-dns/pdns-recursor/Manifest
@@ -23,6 +23,7 @@ DIST link-cplusplus-1.0.9.crate 7484 BLAKE2B 4f73807068243aa0dc4b6773c5446fc9881
DIST once_cell-1.18.0.crate 32969 BLAKE2B a08d5beee50a7add28bd9e50b18709e7b34574f0f55f80909d5efb7ac5917e5f30bdcf3fb43ddd0a4f420a427390c7ffe1cc1c7191a3a1d939bc6e3139e6eef7 SHA512 9328968afdf3535b2d9e0113d75afa725259d76994ef2e1948ad7efa4ec8a65bac7cfdc31b749d5cd55ad4e28d2e28ac57b871e3067b89182453c7e2413a13b8
DIST once_cell-1.19.0.crate 33046 BLAKE2B c14b374eaf4ac0f60acc2e02f7bba270a0e8e0a6978d749cd3cb0ab3eb26907e4fbea70dd5132982f90290381ed18ff8a87fd530f1415fabffac864f157ea380 SHA512 4154876afd34a699ee650d1a8a1c5ee5a25f0ebd9388b8bef2564e33629fae68f113d7507488c68abbe7ea1acf9bbc41813cbbf3ef3e464e3f3b9cc7a51d870c
DIST pdns-recursor-5.0.8.tar.bz2 1675936 BLAKE2B 21bebcf135c310dc8b82223dd1dece8621b79bb34d2dd5f30970c577c300bf75728c45f138c36198ddacde004ac7e57f3a2083441577a355168c81730df6d125 SHA512 90d990cf6e8ce89252d0fc428265b93b70c974c9b86627fdf61534c5a5ecc85c2b3c51eb12d37a9bf6fcddf9e576dbc3c883e9f599687e7b2741a49194957c38
+DIST pdns-recursor-5.0.9.tar.bz2 1679197 BLAKE2B 1f69f0aa800b8265a580eb9ac2101e19fc383c5a0d8ead98420d399f97fda748cff4e6d7b090259197be2d822e71f65d3c62ddf7710c56cc1e6ca7b600d972d0 SHA512 4fcb417e63383111bbb784b440c5b9bf9351a4d8dfae404aa468515cd74a4789fb969b8f3bcee1a08792dcb01a2d8129bbb671db1959f523e557bf69a4bc0fca
DIST pdns-recursor-5.1.1.tar.bz2 1709091 BLAKE2B dd09852d14520dcb623a617e9af8342e63b731d5df818e25fcb4a5ed91782c90fa728a7dc808d8e22a66770d0113bfff34fda0f95da0695de26b2a48bebf5e48 SHA512 59129312e79bb48ce5af4de0c90f36765084708fd7b728655b07ca0cf68ba618a4bf517a9e695caaecc57e5edef4f6fa373719aa0b3e82e25d17a077883784d0
DIST proc-macro2-1.0.69.crate 44271 BLAKE2B 9d1531a0b123e6238363d574bee03ad050454b65710b9800c12597f3a9ae2f9bf50c617da0472b7ac0b549afaca19c546ccd6519e648598500efda9c0db2ef6d SHA512 d197cbe9b6100c3193a01fd7dd6b4e49d440290012ababb5d9f139409f0afe816f213d67a03abeb1f3227228e0a1f2446d1dc0a2775363a15d1237c38b45d6a1
DIST proc-macro2-1.0.84.crate 48922 BLAKE2B 51f73a6bbc3cc42aa5bb5c3f4bf404a0c7803f7219673771d375ab288c638113f496e932b98981ef56dac755d9387f888a4147864d8f9364cef47644ea179161 SHA512 0d0bd0cc1f457b6d5feb9fd6da670f2a0662d15d88e5d20d4d308103c689a103861b3838eb25e5144cf24fb87abffdebb3175989285a03f08730ce3daa55e35e
diff --git a/net-dns/pdns-recursor/pdns-recursor-5.0.9.ebuild b/net-dns/pdns-recursor/pdns-recursor-5.0.9.ebuild
new file mode 100644
index 000000000000..35970c3ed18e
--- /dev/null
+++ b/net-dns/pdns-recursor/pdns-recursor-5.0.9.ebuild
@@ -0,0 +1,132 @@
+# 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="
+ cc@1.0.84
+ codespan-reporting@0.11.1
+ cxx-build@1.0.110
+ cxx@1.0.110
+ cxxbridge-flags@1.0.110
+ cxxbridge-macro@1.0.110
+ equivalent@1.0.1
+ hashbrown@0.14.2
+ indexmap@2.1.0
+ ipnet@2.9.0
+ itoa@1.0.9
+ libc@0.2.150
+ link-cplusplus@1.0.9
+ once_cell@1.18.0
+ proc-macro2@1.0.69
+ quote@1.0.33
+ ryu@1.0.15
+ scratch@1.0.7
+ serde@1.0.192
+ serde_derive@1.0.192
+ serde_yaml@0.9.27
+ syn@2.0.39
+ termcolor@1.4.0
+ unicode-ident@1.0.12
+ unicode-width@0.1.11
+ unsafe-libyaml@0.2.9
+ winapi-i686-pc-windows-gnu@0.4.0
+ winapi-util@0.1.6
+ winapi-x86_64-pc-windows-gnu@0.4.0
+ winapi@0.3.9
+"
+
+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
+
+ mv "${D}"/etc/powerdns/recursor.conf{-dist,}
+
+ # set defaults: setuid=nobody, setgid=nobody
+ sed -i \
+ -e 's/^# set\([ug]\)id=$/set\1id=pdns/' \
+ -e 's/^# quiet=$/quiet=on/' \
+ -e 's/^# chroot=$/chroot=\/var\/lib\/powerdns/' \
+ "${D}"/etc/powerdns/recursor.conf
+
+ newinitd "${FILESDIR}"/pdns-recursor-r2 pdns-recursor
+}
+
+src_test() {
+ default
+}
+
+pkg_postinst() {
+ local old
+
+ for old in ${REPLACING_VERSIONS}; do
+ ver_test ${old} -lt 4.0.0-r1 || continue
+
+ ewarn "Starting with 4.0.0-r1 the init script has been renamed from precursor"
+ ewarn "to pdns-recursor, please update your runlevels accordingly."
+
+ break
+ done
+}