diff options
| author | root <root@alpha.trunkmasters.com> | 2026-07-04 03:04:33 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-07-04 03:04:33 -0500 |
| commit | d5f9077fde66bffd2bc6d193ae7c967e352a5562 (patch) | |
| tree | 7f4e638af1165dc34e405c5ff1f860f3e0c6c4f4 /net-dns | |
| parent | 5f7788dcac066b42562f59afc4b79d7ed272bfcc (diff) | |
| download | baldeagleos-repo-d5f9077fde66bffd2bc6d193ae7c967e352a5562.tar.gz baldeagleos-repo-d5f9077fde66bffd2bc6d193ae7c967e352a5562.tar.xz baldeagleos-repo-d5f9077fde66bffd2bc6d193ae7c967e352a5562.zip | |
Adding metadata
Diffstat (limited to 'net-dns')
| -rw-r--r-- | net-dns/dnsdist/Manifest | 2 | ||||
| -rw-r--r-- | net-dns/dnsdist/dnsdist-2.1.0.ebuild | 186 | ||||
| -rw-r--r-- | net-dns/dnsdist/files/2.1.0-comboaddress-missing-lua-methods.patch | 33 | ||||
| -rw-r--r-- | net-dns/doggo/Manifest | 4 | ||||
| -rw-r--r-- | net-dns/doggo/doggo-1.2.0.ebuild (renamed from net-dns/doggo/doggo-1.1.5.ebuild) | 4 |
5 files changed, 225 insertions, 4 deletions
diff --git a/net-dns/dnsdist/Manifest b/net-dns/dnsdist/Manifest index 56625f8f745c..1ddf2d089c51 100644 --- a/net-dns/dnsdist/Manifest +++ b/net-dns/dnsdist/Manifest @@ -1,7 +1,9 @@ DIST dnsdist-2.0.5.tar.xz 2289448 BLAKE2B e00273f837d24b07c3d424c507fff8fea6f0c579014ad20a24dbd75a86c8c24a9a3d3477b3e044999303b34fa02ffa2e28d22dade967fdc1cca540b91c135015 SHA512 82eb29c378ac05e1a029a8bd04ca4144a9636ac777020c97090ce0bea3ad215cd7a6fde9218ec4bcb8a4d773730f34ba9f476484f42e7fea34e84717a43f9286 DIST dnsdist-2.0.6.tar.xz 2293488 BLAKE2B 5584784ae29553659e7c6b6001adf0c616fa4107ec77829fe70ef3107fed88b78d45dcc849526e58f1600ad529c0fa086258de422c6ce57497599ee28046697d SHA512 fe8ebb819d73eea8344c56108264f00f1d185a2ffed2a64c5f13997a159bb93b0384fba7c49ee562b3d42f6d091dd34a0e792402e1bec0b47f5988a5dd30c2bd DIST dnsdist-2.0.7.tar.xz 2294560 BLAKE2B b1b4abfc418c58919b970ca2f670dd0ad2ffb4a8178dace00c0f52289287ae94d5c65e3e26763e14f24d894b842eafeb23aa8ba1e075340f13cd6ecdbcb45925 SHA512 709f8fde8a5e7d40ed7588cd95aa7ae0f65b4b71f964a6c0bd8b3836ca37ee9b4cd4a94d2ed7fdb7368c1337421693050475c0ece13f4efd4158954c3f0e6c60 +DIST dnsdist-2.1.0.tar.xz 2369224 BLAKE2B ae4abaea64f4ae0eb2615e649dd7f39997483d2376d063451d13c4089f6218b6d66dc206a5fae7a2245c6cddf392961047386b54bdbcaf90dd922a8c330e1034 SHA512 862d3bc0b01e2222dea63e48756ef5eff3d7f22a5c5dc38412f11f7937eeb5ae754bb1ae402d581ea72be9d9ef95ae381ed8d2d9d6588631a0aa895067135b45 DIST dnsdist-rust-2.0.5-crates.tar.xz 5268364 BLAKE2B 36b370eacb7332d04de0fa1be2a49983c030c94df00abcc6681180b1ad5fa8bfe3e19744543b3707e305d57649837a632c1400fd4ae1b4626f084310db8f9bad SHA512 a9f1e10a71a9fb2e6879077224823dd278f1a27c5698076e69bc4bcdf89cff5e54ffd0fce90113131358398289400da263b90c895d167cb3c007fcc96654e116 DIST dnsdist-rust-2.0.6-crates.tar.xz 5268364 BLAKE2B 36b370eacb7332d04de0fa1be2a49983c030c94df00abcc6681180b1ad5fa8bfe3e19744543b3707e305d57649837a632c1400fd4ae1b4626f084310db8f9bad SHA512 a9f1e10a71a9fb2e6879077224823dd278f1a27c5698076e69bc4bcdf89cff5e54ffd0fce90113131358398289400da263b90c895d167cb3c007fcc96654e116 DIST dnsdist-rust-2.0.7-crates.tar.xz 5268364 BLAKE2B 36b370eacb7332d04de0fa1be2a49983c030c94df00abcc6681180b1ad5fa8bfe3e19744543b3707e305d57649837a632c1400fd4ae1b4626f084310db8f9bad SHA512 a9f1e10a71a9fb2e6879077224823dd278f1a27c5698076e69bc4bcdf89cff5e54ffd0fce90113131358398289400da263b90c895d167cb3c007fcc96654e116 +DIST dnsdist-rust-2.1.0-crates.tar.xz 3275568 BLAKE2B 1185b4c96fb0ec94e96333fea49b1bfee20384cf6515acc9dc95056ae7a759933cbe885175766c2239f2d86524af0df264a92256f7853a6b16c01e257267ad1b SHA512 10221f627bf6733c03882f3f050c2fa40b5d601c6744672d4f2903d863dfa6378b9582feaaa11cdc10b6ca3900db2805bccd84e3bc69a5623eaa24c5d4569047 DIST dnsdist-rust-9999-630a017b-crates.tar.xz 3275568 BLAKE2B 1185b4c96fb0ec94e96333fea49b1bfee20384cf6515acc9dc95056ae7a759933cbe885175766c2239f2d86524af0df264a92256f7853a6b16c01e257267ad1b SHA512 10221f627bf6733c03882f3f050c2fa40b5d601c6744672d4f2903d863dfa6378b9582feaaa11cdc10b6ca3900db2805bccd84e3bc69a5623eaa24c5d4569047 diff --git a/net-dns/dnsdist/dnsdist-2.1.0.ebuild b/net-dns/dnsdist/dnsdist-2.1.0.ebuild new file mode 100644 index 000000000000..7ec7d5f42f2c --- /dev/null +++ b/net-dns/dnsdist/dnsdist-2.1.0.ebuild @@ -0,0 +1,186 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1,3,4} luajit ) +PYTHON_COMPAT=( python3_{13..14} ) +RUST_MIN_VER="1.85.0" +RUST_OPTIONAL=1 + +inherit cargo flag-o-matic lua-single meson python-any-r1 toolchain-funcs + +DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer" +HOMEPAGE="https://www.dnsdist.org/index.html" + +if [[ ${PV} == *9999* ]] ; then + EGIT_REPO_URI="https://github.com/PowerDNS/pdns" + EGIT_BRANCH="rel/dnsdist-2.1.x" + inherit git-r3 + # the first 8 digits of the sha256sum of the 9999 crates tarball + CRATES_HASH=630a017b + CRATES_PV="${PV}"-"${CRATES_HASH}" +else + SRC_URI="https://downloads.powerdns.com/releases/${P}.tar.xz" + KEYWORDS="~amd64 ~x86" + CRATES_PV="${PV}" +fi + +SRC_URI+=" + yaml? ( https://www.applied-asynchrony.com/distfiles/${PN}-rust-${CRATES_PV}-crates.tar.xz ) +" + +LICENSE="GPL-2" +SLOT="0" +IUSE="bpf cdb dnscrypt dnstap doh doh3 ipcipher ipcrypt lmdb quic regex snmp +ssl systemd test web xdp yaml" +RESTRICT="!test? ( test )" + +REQUIRED_USE="${LUA_REQUIRED_USE} + dnscrypt? ( ssl ) + doh? ( ssl ) + doh3? ( ssl quic ) + ipcipher? ( ssl ) + quic? ( ssl )" + +RDEPEND="acct-group/dnsdist + acct-user/dnsdist + bpf? ( dev-libs/libbpf:= ) + cdb? ( dev-db/tinycdb:= ) + sys-libs/libcap + dev-libs/libedit + dev-libs/libsodium:= + dnstap? ( dev-libs/fstrm ) + doh? ( net-libs/nghttp2:= ) + doh3? ( net-libs/quiche:= ) + lmdb? ( dev-db/lmdb:= ) + quic? ( net-libs/quiche ) + regex? ( dev-libs/re2:= ) + snmp? ( net-analyzer/net-snmp:= ) + ssl? ( dev-libs/openssl:= ) + systemd? ( sys-apps/systemd:0= ) + xdp? ( net-libs/xdp-tools ) + ${LUA_DEPS} +" + +DEPEND="${RDEPEND} + dev-libs/boost:= +" +BDEPEND="$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') + virtual/pkgconfig + yaml? ( ${RUST_DEPEND} ) +" + +# special requirements for live +if [[ ${PV} == *9999* ]] ; then + BDEPEND+=" dev-util/ragel" + S="${S}/pdns/dnsdistdist" +fi + +PATCHES=( + "${FILESDIR}"/2.1.0-comboaddress-missing-lua-methods.patch +) + +pkg_setup() { + lua-single_pkg_setup + python-any-r1_pkg_setup + use yaml && rust_pkg_setup +} + +python_check_deps() { + python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]" +} + +# git-r3 overrides automatic SRC_URI unpacking +src_unpack() { + default + + if [[ ${PV} == *9999* ]] ; then + git-r3_src_unpack + fi +} + +src_prepare() { + default + + # clean up duplicate file + rm -f README.md +} + +src_configure() { + # bug #822855 + append-lfs-flags + + # There is currently no reliable way to handle mixed C++/Rust + LTO + # correctly: https://bugs.gentoo.org/963128 + if use yaml && tc-is-lto ; then + ewarn "Disabling LTO because of mixed C++/Rust toolchains." + filter-lto + fi + + # some things can only be enabled/disabled by defines + ! use dnstap && append-cppflags -DDISABLE_PROTOBUF + ! use web && append-cppflags -DDISABLE_BUILTIN_HTML + + local emesonargs=( + --sysconfdir="${EPREFIX}/etc/dnsdist" + # always use libsodium + -Dlibsodium=enabled + -Dlua=${ELUA} + # never try to build man pages (virtualenv) + -Dman-pages=false + # never use gnutls (openssl only) + -Dtls-gnutls=disabled + $(meson_feature bpf ebpf) + $(meson_feature cdb) + $(meson_feature dnscrypt) + $(meson_feature dnstap) + $(meson_feature doh dns-over-https) + $(meson_feature doh nghttp2) + $(meson_feature doh3 dns-over-http3) + $(meson_feature ipcipher) + $(meson_feature ipcrypt ipcrypt2) + $(meson_feature lmdb) + $(meson_feature quic dns-over-quic) + $(meson_feature regex re2) + $(meson_feature snmp) + $(meson_feature ssl libcrypto) + $(meson_feature ssl tls-libssl) + $(meson_feature ssl dns-over-tls) + $(meson_feature systemd systemd-service) + $(meson_use test unit-tests) + $(meson_feature xdp xsk) + $(meson_feature yaml) + ) + + meson_src_configure +} + +# explicitly implement src_compile/test to override the +# otherwise automagic cargo_src_compile/test phases + +src_compile() { + cargo_gen_config + cargo_env meson_src_compile +} + +src_test() { + meson_src_test +} + +src_install() { + meson_src_install + + insinto /etc/dnsdist + doins "${FILESDIR}"/dnsdist.conf.example + + newconfd "${FILESDIR}"/dnsdist.confd ${PN} + newinitd "${FILESDIR}"/dnsdist.initd ${PN} +} + +pkg_postinst() { + elog "dnsdist provides multiple instances support. You can create more instances" + elog "by symlinking the dnsdist init script to another name." + elog + elog "The name must be in the format dnsdist.<suffix> and dnsdist will use the" + elog "/etc/dnsdist/dnsdist-<suffix>.conf configuration file instead of the default." +} diff --git a/net-dns/dnsdist/files/2.1.0-comboaddress-missing-lua-methods.patch b/net-dns/dnsdist/files/2.1.0-comboaddress-missing-lua-methods.patch new file mode 100644 index 000000000000..bf4c014a8aa7 --- /dev/null +++ b/net-dns/dnsdist/files/2.1.0-comboaddress-missing-lua-methods.patch @@ -0,0 +1,33 @@ +https://github.com/PowerDNS/pdns/pull/17624 +Patch minimised & paths adjusted for dnsdist tarball. + +From: =?UTF-8?q?Holger=20Hoffst=C3=A4tte?= <holger@applied-asynchrony.com> +Date: Sun, 28 Jun 2026 13:47:10 +0200 +Subject: [PATCH] dnsdist: add missing ComboAddress functions to Lua bindings + +iputils.hh implements toStringReversed & toStringNoInterface, but they +were not exposed to Lua: + + > ca4=newCA("192.168.100.200") + > ca4:toStringReversed() + 200.100.168.192 + > ca6=newCA("fd39:8628:558:0:62b5:8dff:fe1e:d8a8") + > ca6:toStringReversed() + 8.a.8.d.e.1.e.f.f.f.d.8.5.b.2.6.0.0.0.0.8.5.5.0.8.2.6.8.9.3.d.f + > ca6if=newCA("fe80::1ff:fe23:4567:890a%eth0") + > ca6if:toStringNoInterface() + fe80::1ff:fe23:4567:890a + +Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> + +--- a/dnsdist-lua-bindings.cc ++++ b/dnsdist-lua-bindings.cc +@@ -482,6 +482,8 @@ void setupLuaBindings(LuaContext& luaCtx, bool client, bool configCheck) + luaCtx.registerFunction<string (ComboAddress::*)() const>("tostringWithPort", [](const ComboAddress& addr) { return addr.toStringWithPort(); }); + luaCtx.registerFunction<string (ComboAddress::*)() const>("__tostring", [](const ComboAddress& addr) { return addr.toString(); }); + luaCtx.registerFunction<string (ComboAddress::*)() const>("toString", [](const ComboAddress& addr) { return addr.toString(); }); ++ luaCtx.registerFunction<string (ComboAddress::*)() const>("toStringNoInterface", [](const ComboAddress& addr) { return addr.toStringNoInterface(); }); ++ luaCtx.registerFunction<string (ComboAddress::*)() const>("toStringReversed", [](const ComboAddress& addr) { return addr.toStringReversed(); }); + luaCtx.registerFunction<string (ComboAddress::*)() const>("toStringWithPort", [](const ComboAddress& addr) { return addr.toStringWithPort(); }); + luaCtx.registerFunction<string (ComboAddress::*)() const>("getRaw", [](const ComboAddress& addr) { return addr.toByteString(); }); + luaCtx.registerFunction<uint16_t (ComboAddress::*)() const>("getPort", [](const ComboAddress& addr) { return ntohs(addr.sin4.sin_port); }); diff --git a/net-dns/doggo/Manifest b/net-dns/doggo/Manifest index f9988595768a..5c80e8610432 100644 --- a/net-dns/doggo/Manifest +++ b/net-dns/doggo/Manifest @@ -1,4 +1,4 @@ -DIST doggo-1.1.5-vendor.tar.xz 2386128 BLAKE2B 23d5b9b2b48cb29667aa469ea93a7604c624c5d062feb347081179d724e560961d4ff3d0e528859d2a082609a30aa5ebff3f027a0db33b5d11c1ca0e34f43a54 SHA512 b0acd365405b8cd2ca133b07de380d9c4e03cba4643f0d36b924cbd5ae9352335dff0e8aaf489fd6bf3bcf80c1081509bab7bf52f20ba4a05c84f2cf7b5e18fb -DIST doggo-1.1.5.tar.gz 2460993 BLAKE2B fc28921c963f280a89862dbaf6713592a3f8cfda67b99bf93a339e782ad8633a084ccaf00f9d2366df44185497b50a5b4cc8fb4304fd14648f4fe7a939a4745a SHA512 4dcd75dd67620ce1b8ff0f3deab57cc27b5b2be1b7e70f259d6535c2abbf080c45b25b1d10349cc813df7ba3d6d7979ad3aeed7912ef252bcb6e86af58a68044 DIST doggo-1.1.7-vendor.tar.xz 2386876 BLAKE2B 3f29045f07cdf23944d7b2dd65509e8b55713813ed262258acb22651d55add5cf5fdb606490bd689dd81d89d72322299e9f10a2bffdb0ceb60275f36b2feb3e8 SHA512 ad4837455412221b856133e0c75c76f0de10b4c2ba9b286806726c2d4d181d9b1277d26781dc786cd9f85d5ed0e7302ee014b1053635a4a0f701c6bb6e50a993 DIST doggo-1.1.7.tar.gz 2469590 BLAKE2B a3f21106d57e6d215a0f7fd08806352fe8df9c60bd6486b910d93963f39b785123a1f5d090ede9a0bf2e8a6775bf624a2f1a6e0613f15c96d57e5d3a9d558650 SHA512 27b5ca46c1ea23b8d363221bfb7a5c2dbf7f53b0ec605df26df800c649dd9b0090693da24165f258a3e8336251ed8897d23bc66ae212af272594820b3db849e5 +DIST doggo-1.2.0-vendor.tar.xz 2386052 BLAKE2B 6d36d48437b477590421cc4c53b8684672b0430a0f80e2115b6a12cdddc21f9c48080ae75a796ea414e28b3a3c6e559d4a1f3e2ea8c6408ecdfa62d3d137c725 SHA512 72424a7e06f477d108846b345a37aa5bc20a63a6ea24435be973ec8b92126531d42deff90ab680be064863213a4cd24fceed4412f7d6884cd0efd2354ba65dae +DIST doggo-1.2.0.tar.gz 2471501 BLAKE2B aadf18cf9dbe83dcd493821d22349503a6e9ce89fe4bbf2d47aff5dcbe854426bb4f1908de69233e39c1336b86549257451287668dfc280fdc38e3c872ac669f SHA512 327340db86c901aa63bcfb1d44dd888829de3ea0eb3da0e54f1ea6266f58d4dd8d5360642a4978c842111369f7c75ca1a401a9b2cba77296bee39e630822b57e diff --git a/net-dns/doggo/doggo-1.1.5.ebuild b/net-dns/doggo/doggo-1.2.0.ebuild index ad4147512bd0..cffb00e764cc 100644 --- a/net-dns/doggo/doggo-1.1.5.ebuild +++ b/net-dns/doggo/doggo-1.2.0.ebuild @@ -14,9 +14,9 @@ SRC_URI="https://github.com/mr-karan/doggo/archive/refs/tags/v${PV}.tar.gz -> ${ LICENSE="GPL-3" SLOT="0" -KEYWORDS="amd64" +KEYWORDS="~amd64" -BDEPEND=">=dev-lang/go-1.25.5" +BDEPEND=">=dev-lang/go-1.26.4" src_compile() { emake build-cli VERSION=${PV} |
