commit: dea2aed0fe504b639ca76d75c2ad7d0f6409ecf1
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 24 02:38:46 2026 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 24 02:38:56 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dea2aed0
dev-libs/libnl: wire up verify-sig
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/libnl/Manifest | 1 +
dev-libs/libnl/libnl-3.11.0.ebuild | 14 +++++++++++---
dev-libs/libnl/libnl-9999.ebuild | 16 ++++++++++++----
3 files changed, 24 insertions(+), 7 deletions(-)
diff --git a/dev-libs/libnl/Manifest b/dev-libs/libnl/Manifest
index 4f3a214de00c..01c53dc18f6f 100644
--- a/dev-libs/libnl/Manifest
+++ b/dev-libs/libnl/Manifest
@@ -1,2 +1,3 @@
DIST libnl-3.10.0.tar.gz 1116186 BLAKE2B
13383c4ef49be3bcf89122b24d1d5dc9834353aa7128f04f50993203add14aa7f97a4500164982ddcb82f481f7324a26efc2375036d5a23bfa62b15c4fe07473
SHA512
c95e79fba69308c63a08d0c576503b4398710ea9cd1d0097851500a7fbc5fbe87fb32ac281cf42bbfe57eab07b110055e6bc9b95d82244bba3df8a31fe562962
DIST libnl-3.11.0.tar.gz 1124072 BLAKE2B
8e2792620f56e1e9e05e4fe1f9bece70938c82c2d1a9f4e0f9de1ce0b1a7a2bf60f31a42e6056407b383875c08c575b26df87b9bd6b421d5053e96983e193c54
SHA512
69ecec6e792fc7b9c443fff8742cf45782af5c5c4664687440942eaeb616ba7b4ed2b606e33c5d86e44e6b49a9c79a1fed4b7c77781a059e13cf6a844d94530e
+DIST libnl-3.11.0.tar.gz.sig 862 BLAKE2B
48386ba3821e4876d425a929a562b5c85a8da3db26effa81c8e2494458b9cb840425bd795924b79a068ddf2ccb6ca56e5874cd91b64b10f9a3948e069d42a810
SHA512
de98fdd254ec587c1e467b590b6f876c8dee0ef10be86b0644c6de366f4deba9205ffa1881d6a6c394af9543dea38eb4553139ad9293c5788ef23c15db4381df
diff --git a/dev-libs/libnl/libnl-3.11.0.ebuild
b/dev-libs/libnl/libnl-3.11.0.ebuild
index 3cd69d2292b1..6c8fc3b5081a 100644
--- a/dev-libs/libnl/libnl-3.11.0.ebuild
+++ b/dev-libs/libnl/libnl-3.11.0.ebuild
@@ -9,6 +9,7 @@ DISTUTILS_EXT=1
DISTUTILS_OPTIONAL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/thomashaller.asc
inherit autotools distutils-r1 multilib-minimal
LIBNL_P=${P/_/-}
@@ -17,14 +18,21 @@ LIBNL_DIR=${LIBNL_DIR//./_}
DESCRIPTION="Libraries providing APIs to netlink protocol based Linux kernel
interfaces"
HOMEPAGE="https://www.infradead.org/~tgr/libnl/
https://github.com/thom311/libnl"
+
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/thom311/libnl"
inherit git-r3
else
-
SRC_URI="https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz"
+ inherit verify-sig
+ SRC_URI="
+
https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz
+ verify-sig? (
https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz.sig
)
+ "
+ S="${WORKDIR}/${LIBNL_P}"
+
KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64
~riscv ~s390 ~sparc ~x86"
- S="${WORKDIR}/${LIBNL_P}"
+ BDEPEND="verify-sig? ( sec-keys/openpgp-keys-thomashaller )"
fi
LICENSE="LGPL-2.1 utils? ( GPL-2 )"
@@ -34,7 +42,7 @@ RESTRICT="!test? ( test )"
RDEPEND="python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}"
-BDEPEND="
+BDEPEND+="
${RDEPEND}
sys-devel/bison
sys-devel/flex
diff --git a/dev-libs/libnl/libnl-9999.ebuild b/dev-libs/libnl/libnl-9999.ebuild
index f7369de736ab..6484163e3f55 100644
--- a/dev-libs/libnl/libnl-9999.ebuild
+++ b/dev-libs/libnl/libnl-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -9,6 +9,7 @@ DISTUTILS_EXT=1
DISTUTILS_OPTIONAL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/thomashaller.asc
inherit autotools distutils-r1 multilib-minimal
LIBNL_P=${P/_/-}
@@ -17,14 +18,21 @@ LIBNL_DIR=${LIBNL_DIR//./_}
DESCRIPTION="Libraries providing APIs to netlink protocol based Linux kernel
interfaces"
HOMEPAGE="https://www.infradead.org/~tgr/libnl/
https://github.com/thom311/libnl"
+
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/thom311/libnl"
inherit git-r3
else
-
SRC_URI="https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz"
+ inherit verify-sig
+ SRC_URI="
+
https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz
+ verify-sig? (
https://github.com/thom311/${PN}/releases/download/${PN}${LIBNL_DIR}/${P/_rc/-rc}.tar.gz.sig
)
+ "
+ S="${WORKDIR}/${LIBNL_P}"
+
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc
~ppc64 ~riscv ~s390 ~sparc ~x86"
- S="${WORKDIR}/${LIBNL_P}"
+ BDEPEND="verify-sig? ( sec-keys/openpgp-keys-thomashaller )"
fi
LICENSE="LGPL-2.1 utils? ( GPL-2 )"
@@ -34,7 +42,7 @@ RESTRICT="!test? ( test )"
RDEPEND="python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}"
-BDEPEND="
+BDEPEND+="
${RDEPEND}
sys-devel/bison
sys-devel/flex