public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/eduvpn-common/
Date: Mon, 26 Feb 2024 16:43:40 +0000 (UTC)	[thread overview]
Message-ID: <1708965707.03a8b73964892e45e3a8054416d2e91f3ce2da3c.flow@gentoo> (raw)

commit:     03a8b73964892e45e3a8054416d2e91f3ce2da3c
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Fri Dec  8 22:40:45 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Feb 26 16:41:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03a8b739

net-vpn/eduvpn-common: add verify-sig support

Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 net-vpn/eduvpn-common/Manifest                   |  3 ++-
 net-vpn/eduvpn-common/eduvpn-common-1.2.0.ebuild | 20 +++++++++++++++++++-
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/net-vpn/eduvpn-common/Manifest b/net-vpn/eduvpn-common/Manifest
index 16f9fda92fc4..333e74870bcb 100644
--- a/net-vpn/eduvpn-common/Manifest
+++ b/net-vpn/eduvpn-common/Manifest
@@ -1,4 +1,5 @@
 DIST eduvpn-common-1.1.2-deps.tar.xz 7517364 BLAKE2B a6bd2c11d5056170d88ca8c35d054cd6d529462af6595fe31c535640cdf59a25ae4811c04bc738832fa4c28d2d3308ca5615170547b0c93edf7c4dd3f475978b SHA512 ce167298a76df4e22b23e3cfb7640f0272ea546dc5767f66baab900029c2a4850b383521d2f74ae0d77c53f47ba6eb51d80ab122362e4a7470e69a1fc3ac423f
 DIST eduvpn-common-1.1.2.gh.tar.gz 208300 BLAKE2B 8cb7e96d4a6a5032a1696aa57a6322f6a861aebba8b1f653d8be98e0044eacb3f23dc400ac9a8598dd83f30ca2140394ee2aa5733a27547f2a0378ad03ab422d SHA512 dbc290e48bc045456ad83e58e63c223cef5a7e1c7178537a44ed306a423276e644fb0f5607a7d8ddc5014b48ae11b57e365068d72887062277f8ab4f6f1ae660
 DIST eduvpn-common-1.2.0-deps.tar.xz 7583176 BLAKE2B af35dd134a77753448fc9e7f91bde9d52fe05c20339eea637d0d0c5e9564f19cae6e294723adf1ef6c516ae05bc0495be2f316b2560b9d1860d9ce509517e04b SHA512 83e88038a6b5cb39917f9b892ac8783ef273c9e606173aad68125702a70a70dc9c61f54f0078d92214d6e1ec3e92cbdff3d10f18caf889cd603a2d75fa70c209
-DIST eduvpn-common-1.2.0.gh.tar.gz 210499 BLAKE2B 1e584138378f2c08ca71c6954b35196db2541a77327a3a7d88fefd2f2e946fd544d8d54d39b539a558830ad60ba65e3382035f016446ef596a015db3ccf43704 SHA512 abd7c4372ef5a2b7e182b497c46235f2c10b7d7e87bcab32910a3a149a0db31a93890a8e6d5434935ca444da69ec8bbccb944762dc160a879903baccac18bb35
+DIST eduvpn-common-1.2.0.tar.xz 738836 BLAKE2B 85a10cee1a18e88a8f19bae8c8273cc2993b4dfa29106804342079739c5549e517194f2f4b52225e7f557cce45cffbc74b110f82c4cfd9d8141096d97445938d SHA512 8858e85b1422340a87ee8df2a8392bdf910fb282c6a80c171a89cd535bb119958c46576a17c57cf9a02bf9946ed749e01bacdbd9c45fa8623c7d6dfa9272aa36
+DIST eduvpn-common-1.2.0.tar.xz.asc 228 BLAKE2B 6b9de0767b9f755235556ab15447a639930447bea91c7880b9248844eac7600ad22ff2828a3e73176c65fb824a0b870604d53e68964850b5e8239dbd5ffd1fff SHA512 6d54112f22ba6272ca56cea3ad82d0de1b24365a9d61f8ac9f1708741d491ff3184b47bc86845f8ace0a5f44fb5ad7614535ce665b71dd56510445c1d4777d34

diff --git a/net-vpn/eduvpn-common/eduvpn-common-1.2.0.ebuild b/net-vpn/eduvpn-common/eduvpn-common-1.2.0.ebuild
index 3545e366925a..3aae9a36bd55 100644
--- a/net-vpn/eduvpn-common/eduvpn-common-1.2.0.ebuild
+++ b/net-vpn/eduvpn-common/eduvpn-common-1.2.0.ebuild
@@ -16,8 +16,11 @@ if [[ ${PV} == "9999" ]] ; then
 	inherit git-r3
 	EGIT_REPO_URI="https://github.com/eduvpn/eduvpn-common.git"
 else
+	VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/eduvpn.asc
+	inherit verify-sig
 	SRC_URI="
-		https://github.com/eduvpn/eduvpn-common/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
+		https://github.com/eduvpn/eduvpn-common/releases/download/${PV}/eduvpn-common-${PV}.tar.xz
+		verify-sig? ( https://github.com/eduvpn/eduvpn-common/releases/download/${PV}/eduvpn-common-${PV}.tar.xz.asc )
 		https://www-user.tu-chemnitz.de/~hamari/eduvpn/${P}-deps.tar.xz
 	"
 fi
@@ -31,6 +34,10 @@ RDEPEND="
 	openvpn? ( net-vpn/openvpn )
 "
 
+if [[ ${PV} != *9999* ]] ; then
+	BDEPEND="verify-sig? ( sec-keys/openpgp-keys-eduvpn )"
+fi
+
 wrap_python() {
 	local phase=$1
 	shift
@@ -48,6 +55,17 @@ pkg_pretend() {
 	fi
 }
 
+src_unpack() {
+	# go dependencies are not signed
+	if use verify-sig; then
+		pushd "${DISTDIR}" > /dev/null || die
+		verify-sig_verify_detached \
+			${P}.tar.xz{,.asc}
+		popd > /dev/null || die
+	fi
+	default_src_unpack
+}
+
 src_prepare() {
 	default
 


             reply	other threads:[~2024-02-26 16:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-26 16:43 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-19 11:14 [gentoo-commits] repo/gentoo:master commit in: net-vpn/eduvpn-common/ Sam James
2025-02-19 11:14 Sam James
2024-09-09 18:02 Sam James
2024-09-09 18:02 Sam James
2024-08-04 12:53 Jakov Smolić
2024-08-04  8:49 Sam James
2024-07-04  1:15 Sam James
2024-07-04  1:15 Sam James
2024-07-04  1:15 Sam James
2024-07-04  1:15 Sam James
2024-05-19 13:58 Sam James
2024-05-19 13:58 Sam James
2024-04-19 10:07 Florian Schmaus
2024-04-19 10:07 Florian Schmaus
2024-02-26 16:43 Florian Schmaus
2023-11-23 10:09 Ulrich Müller
2023-11-23 10:09 Ulrich Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1708965707.03a8b73964892e45e3a8054416d2e91f3ce2da3c.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox