summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2024-04-24 19:52:52 +0200
committerSven Wegener <swegener@gentoo.org>2024-04-24 19:54:48 +0200
commitc345d6cba29d96f1e8ca510aca8ea0832d8e0b6d (patch)
treef0a1e5e03265ea621fb2ac625daaac5b5c83dec3 /net-dns/pdns-recursor
parentdev-lua/lutok: Stabilize 0.4-r11 amd64, #930629 (diff)
downloadgentoo-c345d6cba29d96f1e8ca510aca8ea0832d8e0b6d.tar.gz
gentoo-c345d6cba29d96f1e8ca510aca8ea0832d8e0b6d.tar.bz2
gentoo-c345d6cba29d96f1e8ca510aca8ea0832d8e0b6d.zip
net-dns/pdns-recursor: add 5.0.4
Bug: https://bugs.gentoo.org/930635 Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'net-dns/pdns-recursor')
-rw-r--r--net-dns/pdns-recursor/Manifest1
-rw-r--r--net-dns/pdns-recursor/pdns-recursor-5.0.4.ebuild132
2 files changed, 133 insertions, 0 deletions
diff --git a/net-dns/pdns-recursor/Manifest b/net-dns/pdns-recursor/Manifest
index 2988ab61e1b3..362f424b6c62 100644
--- a/net-dns/pdns-recursor/Manifest
+++ b/net-dns/pdns-recursor/Manifest
@@ -14,6 +14,7 @@ DIST link-cplusplus-1.0.9.crate 7484 BLAKE2B 4f73807068243aa0dc4b6773c5446fc9881
DIST once_cell-1.18.0.crate 32969 BLAKE2B a08d5beee50a7add28bd9e50b18709e7b34574f0f55f80909d5efb7ac5917e5f30bdcf3fb43ddd0a4f420a427390c7ffe1cc1c7191a3a1d939bc6e3139e6eef7 SHA512 9328968afdf3535b2d9e0113d75afa725259d76994ef2e1948ad7efa4ec8a65bac7cfdc31b749d5cd55ad4e28d2e28ac57b871e3067b89182453c7e2413a13b8
DIST pdns-recursor-5.0.2.tar.bz2 1688010 BLAKE2B 29277fff79a73379299b5630b5cf546c091149413e80337e70abd4f470fcb4242d6853880dddd9968826675336322e1e55fbbcc4be6fe5bee124acbfe1ea6ac1 SHA512 d443de7e6889598a4b2c33fac5ebb1b00516ad109f139c216b0a55694a882ca78e5e9fa0f4e39f08ead96c53e28bd92c1f6aea6e051e5b8aa1c876c1ce28e9f8
DIST pdns-recursor-5.0.3.tar.bz2 1682741 BLAKE2B a8301927194c91180da3c669c975b82212b581cde45197e4d60486f50269156382ce911fb43f86dd98d34ae3e4df1d5578e1b981cec2495611b8d8e09533901a SHA512 9e7ece25e05729e4e46023c5b7e524f46e9806cd6546bcdde9c01c038f6d53380184423e3f4c9239eaba94157d5fc53c3376225e75b4136d508dafdc1ad4e04b
+DIST pdns-recursor-5.0.4.tar.bz2 1659047 BLAKE2B f1a5cbd69f32bb402a5556fa4ad99df7fc89cc868cec9e4c271f42407e2a4f7cf900b1f071d416f271597242b472f537bdfbe969e2c3694f7ef9df77763f9937 SHA512 a78422917df91a8f8c49bc5c2bdf599f92f6c3359f049653c6623a05da8117445c04400321cc4e2128cfaedb7b345cbec003339c35e4f2c76bb43d16d07b00d4
DIST proc-macro2-1.0.69.crate 44271 BLAKE2B 9d1531a0b123e6238363d574bee03ad050454b65710b9800c12597f3a9ae2f9bf50c617da0472b7ac0b549afaca19c546ccd6519e648598500efda9c0db2ef6d SHA512 d197cbe9b6100c3193a01fd7dd6b4e49d440290012ababb5d9f139409f0afe816f213d67a03abeb1f3227228e0a1f2446d1dc0a2775363a15d1237c38b45d6a1
DIST quote-1.0.33.crate 28090 BLAKE2B 77c4b166f1200e1ee2ab94a5014acd334c1fe4b7d72851d73768d491c56c6779a0882a304c1f30c88732a6168351f0f786b10516ae537cff993892a749175848 SHA512 c1e76c3c017e8554eebe309f8167fd56fce931981c06798aa85a0cc6d64a9cba6ab103f5a1324e69c6f9ca5dc47a8e31ff2e847850542748697afcd265b5939c
DIST ryu-1.0.15.crate 46906 BLAKE2B 6d6949e43aaa27fba0ec6002fa11ba859af8d867f87c90d88413267186abbf6302b817985bca3d577ab3fab2e319e11756f144473a16330dfd8fc7b604cdc4b3 SHA512 4655b5647f919082a9b84b889539ae7fb23a1201057cf280efe79c58cb5f040864efb7812cda5021bf6d34838a15d173ac8bdb0fb9fa2dba85173d3efa5a826b
diff --git a/net-dns/pdns-recursor/pdns-recursor-5.0.4.ebuild b/net-dns/pdns-recursor/pdns-recursor-5.0.4.ebuild
new file mode 100644
index 000000000000..35970c3ed18e
--- /dev/null
+++ b/net-dns/pdns-recursor/pdns-recursor-5.0.4.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
+}