net-dns/knot-resolver: Bump to 6.3.0

the patch for luajit is merged
update keys

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/761
Merges: https://codeberg.org/gentoo/gentoo/pulls/761
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2026-04-27 16:19:55 +02:00
committed by Sam James
parent 2f002b8e8a
commit 696dfe5771
2 changed files with 199 additions and 0 deletions

View File

@@ -2,3 +2,5 @@ DIST knot-resolver-5.7.6.tar.xz 1924840 BLAKE2B aca1a3f70921c63005b23f3a9ebb6b60
DIST knot-resolver-5.7.6.tar.xz.asc 833 BLAKE2B 93579242e6deee33477610c91d72c1152bdbd05355a57893a9519955ce022034315669a91c311081a6e2b4683bf641305fe79ae360b2b61e51a02e0b5c4d8361 SHA512 478449d96dddaff9aff134a2a3bc991d8e50423f38a00e7256b54be9ab89d85d66eaa8e83815f4b31700b16fd94f8017493db6347e57d0583feec38bb35655f6
DIST knot-resolver-6.2.0.tar.xz 2366172 BLAKE2B dbf07f782d40e50a35fbadc787b26093f3ecac19c0c8d004b718f7c7263c7b6859a4b4c2eb0ade9c34ca5310508e017e436cc68b544891c142a8d9dbab0fee44 SHA512 d1fc1e092b12750114699a0c63ffabacd710eed5bed36412661d006a12287e126558ae1edcdb106f46d1c17c570aefa3b665863469f9a86d910b134a02383278
DIST knot-resolver-6.2.0.tar.xz.asc 833 BLAKE2B 5426c9d2dc5d1eb47066eeceaae4c5625bdb3d7c196a776c64a97b8ef9f112bd8ff77009e2816e7b5140a62f96a9e08a20f28ee3ffe135556dada7add1dc2018 SHA512 e139ae79ec3740eb007a53066a040c44bc359961e957c6290aaa4848b52264d9895b3d6806d492f69ca625e314a1476d8646c9786d9db50fd9fad504f8dd5ca3
DIST knot-resolver-6.3.0.tar.xz 2366488 BLAKE2B 5745be9d031d58e7a9175d29307fb7453b76a6ef65a3b9970b9e5c256a38b2f13e5f4eb5bd126c44e4263b5dbebef2f5addf9c495c80e4a8d4ebe5c2169c0a9c SHA512 eafc8f1875561346cf06b13717a96041e5e6d63e02dea85525ff7afa6e7271a8e37048f9596f17d826cc37e157dff666ee8b55eb2c18bae069ca19d3377dceeb
DIST knot-resolver-6.3.0.tar.xz.asc 833 BLAKE2B 89fcb4b7e83da324c2ab795eaf3f2774d32fda37a702e661d204de5f9e51fbdffdc22c4080e04e07d48574ea8308ea82967ef7ead88d1a8eaaea6b8609215399 SHA512 bb18bd82a348cafeafbfcc3ddad699e804242eadb2b29f29121be7adffd3078af86bf9ce1d86704e8084aa424b94990bc12c1c209b81d72ed785b95854cfc3d5

View File

@@ -0,0 +1,197 @@
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LUA_COMPAT=( luajit )
DISTUTILS_EXT=1
DISTUTILS_OPTIONAL=1
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 eapi9-ver lua-single meson optfeature tmpfiles verify-sig
DESCRIPTION="Scaleable caching DNS resolver"
HOMEPAGE="https://www.knot-resolver.cz https://gitlab.nic.cz/knot/knot-resolver"
SRC_URI="
https://knot-resolver.nic.cz/release/${P}.tar.xz
verify-sig? ( https://knot-resolver.nic.cz/release/${P}.tar.xz.asc )
"
LICENSE="Apache-2.0 BSD CC0-1.0 GPL-3+ LGPL-2.1+ MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="caps dnstap +manager nghttp2 quic selinux systemd test xdp"
RESTRICT="!test? ( test )"
REQUIRED_USE="
${LUA_REQUIRED_USE}
manager? ( ${PYTHON_REQUIRED_USE} )
"
RDEPEND="
${LUA_DEPS}
acct-group/knot-resolver
acct-user/knot-resolver
dev-db/lmdb:=
dev-libs/libuv:=
>=net-dns/knot-3.3:=[xdp?]
net-libs/gnutls:=
caps? ( sys-libs/libcap-ng )
dnstap? (
dev-libs/fstrm
dev-libs/protobuf-c:=
)
manager? (
${PYTHON_DEPS}
$(python_gen_cond_dep '
app-admin/supervisor[${PYTHON_USEDEP}]
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/jinja2[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
')
)
nghttp2? ( net-libs/nghttp2:= )
quic? ( >=net-libs/ngtcp2-1.11.0[gnutls] )
selinux? ( sec-policy/selinux-knot )
systemd? ( sys-apps/systemd:= )
"
DEPEND="
${RDEPEND}
test? (
dev-util/cmocka
manager? (
$(python_gen_cond_dep '
dev-python/pyparsing[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
')
)
)
"
BDEPEND="
virtual/pkgconfig
dnstap? (
dev-libs/protobuf[protoc(+)]
dev-libs/protobuf-c
)
manager? (
${DISTUTILS_DEPS}
${PYTHON_DEPS}
)
verify-sig? ( >=sec-keys/openpgp-keys-knot-resolver-20260304 )
"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/${PN}.asc
PATCHES=(
"${FILESDIR}"/${PN}-5.5.3-docdir.patch
"${FILESDIR}"/${PN}-5.5.3-nghttp-openssl.patch
"${FILESDIR}"/${PN}-6.0.9-config-example.patch
"${FILESDIR}"/${PN}-6.0.12-pytest_tomllib.patch
"${FILESDIR}"/${PN}-6.1.0-libsystemd.patch
)
pkg_setup() {
lua-single_pkg_setup
use manager && python-single-r1_pkg_setup
}
src_prepare() {
default
use manager && distutils-r1_src_prepare
}
src_configure() {
local emesonargs=(
--localstatedir="${EPREFIX}"/var # double lib
# avoid automagic, see #870019
-Dauto_features=disabled
# post-install tests
-Dconfig_tests=disabled
# DISTUTILS_SINGLE_IMPL can't use python_gen_any_dep
# disable doc (html) to avoid relying on sphinx for PYTHON_COMPAT
-Ddoc=disabled
-Ddocdir="${EPREFIX}"/usr/share/doc/${PF}
# legacy sample config w/o manager
-Dinstall_kresd_conf=enabled
# disable jemalloc, see #969223
-Dmalloc=disabled
# disable debug for the deprecated module 'http'
-Dopenssl=disabled
# always install tmpfiles
-Dsystemd_files=enabled
$(meson_feature caps capng)
$(meson_feature dnstap)
$(meson_feature nghttp2)
-Dquic=$(usex quic external disabled)
$(meson_feature systemd)
# legacy service w/o manager
$(meson_feature systemd systemd_legacy_units)
$(meson_feature test unit_tests)
)
meson_src_configure
}
src_compile() {
meson_src_compile
use manager && distutils-r1_src_compile
}
src_test() {
meson_src_test
use manager && distutils-r1_src_test
}
python_test() {
epytest tests/manager
}
src_install() {
meson_src_install
if use manager; then
distutils-r1_src_install
newinitd "${FILESDIR}"/knot-resolver.initd knot-resolver
newconfd "${FILESDIR}"/knot-resolver.confd knot-resolver
else
rm "${ED}"/usr/lib/systemd/system/knot-resolver.service || die
fi
fowners -R ${PN}: /etc/${PN}
newinitd "${FILESDIR}"/kresd.initd-r2 kresd
newconfd "${FILESDIR}"/kresd.confd-r1 kresd
newinitd "${FILESDIR}"/kres-cache-gc.initd kres-cache-gc
}
pkg_preinst() {
if use manager && has_version "net-dns/knot-resolver[-manager(-)]"; then
show_manager_info=1
fi
}
pkg_postinst() {
tmpfiles_process knot-resolver.conf
if ver_replacing -lt 6.0.0; then
ewarn "Knot-Resolver-6.X brings major changes, please read the guide for upgrading:"
ewarn "https://www.knot-resolver.cz/documentation/v${PV}/upgrading-to-6.html"
fi
if [[ -n ${show_manager_info} ]]; then
elog "You choose the new way, called the manager, to start Knot Resolver:"
use systemd && elog " systemctl start knot-resolver.service"
use !systemd && elog " /etc/init.d/knot-resolver start"
elog "Configuration file: /etc/knot-resolver/config.yaml"
elog "The older way, without the manager, is still available:"
use systemd && elog " systemctl start kresd@N.service"
use !systemd && elog " /etc/init.d/kresd start"
elog "Configuration file: /etc/knot-resolver/kresd.conf"
elog "Optional garbage collector: /etc/init.d/kres-cache-gc"
fi
optfeature_header "This package is recommended with Knot Resolver:"
optfeature "asynchronous execution, especially with policy module" dev-lua/cqueues
optfeature_header "Other packages may also be useful:"
use manager && optfeature "Prometheus metrics (need manager)" dev-python/prometheus-client
use manager && optfeature "auto-reload TLS certificate files and RPZ files (need manager)" dev-python/watchdog
}