summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-09-14 07:01:24 +0100
committerSam James <sam@gentoo.org>2023-09-16 10:43:06 +0100
commit6695ceddfc2b55392293665205c6e28c3cf0503a (patch)
tree6fa38b5067aaa75a50bbb96a48e145fa8b813678 /dev-libs/libsodium
parentsec-keys/minisig-keys-libsodium: new package, add 20230914 (diff)
downloadgentoo-6695ceddfc2b55392293665205c6e28c3cf0503a.tar.gz
gentoo-6695ceddfc2b55392293665205c6e28c3cf0503a.tar.bz2
gentoo-6695ceddfc2b55392293665205c6e28c3cf0503a.zip
dev-libs/libsodium: use new verify-sig minisign support
Closes: https://bugs.gentoo.org/783066 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libsodium')
-rw-r--r--dev-libs/libsodium/libsodium-1.0.19-r1.ebuild20
1 files changed, 3 insertions, 17 deletions
diff --git a/dev-libs/libsodium/libsodium-1.0.19-r1.ebuild b/dev-libs/libsodium/libsodium-1.0.19-r1.ebuild
index cb3ef0373a0f..d175a5ffc7f5 100644
--- a/dev-libs/libsodium/libsodium-1.0.19-r1.ebuild
+++ b/dev-libs/libsodium/libsodium-1.0.19-r1.ebuild
@@ -3,7 +3,9 @@
EAPI=8
-inherit autotools multilib-minimal
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/libsodium.key
+VERIFY_SIG_METHOD=minisig
+inherit autotools multilib-minimal verify-sig
DESCRIPTION="Portable fork of NaCl, a higher-level cryptographic library"
HOMEPAGE="https://libsodium.org"
@@ -41,22 +43,6 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.0.10-cpuflags.patch
)
-src_unpack() {
- # TODO: Could verify-sig.eclass support minisig? bug #783066
- MINISIGN_KEY="RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3"
-
- if use verify-sig ; then
- ebegin "Verifying signature using app-crypt/minisign"
- minisign -V \
- -P ${MINISIGN_KEY} \
- -x "${DISTDIR}"/${P}.tar.gz.minisig \
- -m "${DISTDIR}"/${P}.tar.gz
- eend $? || die "Failed to verify distfile using minisign!"
- fi
-
- default
-}
-
src_prepare() {
default