commit: 0704def7de188acd80669bc0103ceeea5b8c3966 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Thu Oct 16 15:22:57 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Oct 17 07:48:54 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0704def7
net-dns/redis-knot: add 3.5.1 use emake instead of calling libtool Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44213 Signed-off-by: Sam James <sam <AT> gentoo.org> net-dns/redis-knot/Manifest | 2 + net-dns/redis-knot/redis-knot-3.5.1.ebuild | 61 ++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/net-dns/redis-knot/Manifest b/net-dns/redis-knot/Manifest index b4fac8b5a288..1482649ddda8 100644 --- a/net-dns/redis-knot/Manifest +++ b/net-dns/redis-knot/Manifest @@ -1,2 +1,4 @@ DIST knot-3.5.0.tar.xz 1716348 BLAKE2B 681de5b8947de9d104e949ac99f15cacea7be36f3c1a03c0328aa2894222c920b37bc1123afd1705fb2430def912287cfe0c760e9e4862d430477a7da4fdf314 SHA512 740c8f2d92921e68de3e2e62b7c714bad7ca41884e59236df02e5935889cc4f2102d8693dda2b700e1bfafda71d8760ec4337cc80d42c493d37eef5d0516d1ad DIST knot-3.5.0.tar.xz.asc 833 BLAKE2B e183ed714215df6e18bdfe839a085e7be5a7a411097a8de6632eed3330a2d4f031bbbdac37345d9ed97f9eefba61dcb7996d6a7eeef6d5dc4260007cd4251903 SHA512 44675f89bcb6186bf96f8297ffc898bbb08b7a33470038797abee5b3eadc8e20c321e2bebb43ac7b2cb560beccbbf4dca5446b0964de89670cf63e0c7c910aff +DIST knot-3.5.1.tar.xz 1676008 BLAKE2B aa6b9d173c7fc0ff7011691ac6178a8b24ae7482c9ccc87ee4b7cc1932d5fa678a367462098f2c2e28865aa5b37bc5ba1b787d8fc4d222cfd1aeb1da1452ebc8 SHA512 f4f42425fe20a0632489a6de642993515a7914b0392553dc8842e3ec2a4ab0c515dd3e11799c90a7f36e79d83fa92998aa6f03a5c6c527d1520c2cb6388fc9ba +DIST knot-3.5.1.tar.xz.asc 833 BLAKE2B 02f6fe62cdff94c8f274a203ff3873b0d10abc52c8fb2817325ebfcf56e16b048db46c63874894e2922db3a7db3ecfb25155f54c0958d2095054aff50aff555f SHA512 740528e26e999bf4c12cc2995838f8d1bf0aaac68d3bc823f45090ed5f498bb3cb294b4c07fa0056dd8b7033a7502f800cbdf608276fbf40c79d566035aca8d3 diff --git a/net-dns/redis-knot/redis-knot-3.5.1.ebuild b/net-dns/redis-knot/redis-knot-3.5.1.ebuild new file mode 100644 index 000000000000..fa87a5689e2d --- /dev/null +++ b/net-dns/redis-knot/redis-knot-3.5.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools verify-sig + +MY_PN="knot" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Redis module for Knot DNS" +HOMEPAGE="https://www.knot-dns.cz/ https://gitlab.nic.cz/knot/knot-dns" +SRC_URI=" + https://knot-dns.nic.cz/release/${MY_P}.tar.xz + verify-sig? ( https://knot-dns.nic.cz/release/${MY_P}.tar.xz.asc ) +" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +# no test, it requires a Redis instance and RLTest (not packaged) +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-knot )" + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/${MY_PN}.asc + +PATCHES=( + # https://gitlab.nic.cz/knot/knot-dns/-/merge_requests/1809.patch + "${FILESDIR}"/${PN}-3.5.0-opt_gnutls.patch +) + +# Used to check cpuset_t in sched.h with NetBSD. +# False positive because linux have sched.h too but with cpu_set_t +QA_CONFIG_IMPL_DECL_SKIP=( cpuset_create cpuset_destroy ) + +# because configure.ac is patched +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-daemon + --disable-modules + --disable-utilities + --disable-xdp + --enable-redis=module + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + emake -C src/redis +} + +src_install() { + emake DESTDIR="${D}" -C src/redis install + + find "${D}" -name '*.la' -delete || die +}
