From: "Ivan Lloro" <ivan.lloro.boada@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-crypt/autofirma/
Date: Sat, 29 Jun 2024 22:16:40 +0000 (UTC) [thread overview]
Message-ID: <1719699230.15a574302826f97722e7f7a5eca7bdb1edfca251.ivan.lloro.boada@gentoo> (raw)
commit: 15a574302826f97722e7f7a5eca7bdb1edfca251
Author: Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com>
AuthorDate: Sat Jun 29 22:13:50 2024 +0000
Commit: Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com>
CommitDate: Sat Jun 29 22:13:50 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=15a57430
app-crypt/autofirma: Included fallback method for automatically downloading source file.
Signed-off-by: Ivan Lloro <ivan.lloro.boada <AT> gmail.com>
app-crypt/autofirma/autofirma-1.8.3.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/app-crypt/autofirma/autofirma-1.8.3.ebuild b/app-crypt/autofirma/autofirma-1.8.3.ebuild
index 3d2d98588..f9d8c773f 100644
--- a/app-crypt/autofirma/autofirma-1.8.3.ebuild
+++ b/app-crypt/autofirma/autofirma-1.8.3.ebuild
@@ -11,7 +11,8 @@ HOMEPAGE="
https://github.com/ctt-gob-es/clienteafirma
"
-# Upstream blocks wget with no User Agent.
+# Upstream blocks wget with no User Agent. It can be addressed globally (see https://wiki.gentoo.org/wiki/FETCHCOMMAND).
+# If Gentoo's default configuration is in place, pkg_pretend() and pkg_nofetch() provide fallback options.
SRC_URI="https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip -> ${P}.zip"
S=${WORKDIR}
@@ -23,6 +24,12 @@ KEYWORDS="~amd64"
RDEPEND="virtual/jre:1.8"
BDEPEND="app-arch/unzip"
+pkg_pretend() {
+ # Upstream blocks vanilla wget, so we set up a browser User-Agent as a fallback.
+ URI="https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip"
+ /usr/sbin/wget --user-agent="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" "${URI}" -O "${PORTAGE_ACTUAL_DISTDIR}"/"${P}".zip
+}
+
pkg_nofetch() {
einfo "Please download:"
einfo " https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip"
next reply other threads:[~2024-06-29 22:16 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-29 22:16 Ivan Lloro [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-08-13 14:39 [gentoo-commits] repo/proj/guru:dev commit in: app-crypt/autofirma/ demize
2025-02-13 14:43 Pedro Arizmendi
2024-09-26 18:26 Jesús P Rey
2024-08-21 23:41 Ivan Lloro
2024-08-05 13:44 Ivan Lloro
2024-07-16 17:01 Ivan Lloro
2024-06-29 23:15 Ivan Lloro
2024-06-29 1:33 Ivan Lloro
2024-06-29 1:25 Ivan Lloro
2024-04-17 20:43 Jesús P Rey
2022-12-10 18:40 Jesús P Rey
2021-05-06 9:53 Andrew Ammerlaan
2021-05-06 0:22 Alessandro Barbieri
2020-09-24 19:59 Jesús P Rey
2020-09-24 11:33 Andrew Ammerlaan
2020-09-23 20:46 Jesús P Rey
2020-09-23 20:36 Jesús P Rey
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=1719699230.15a574302826f97722e7f7a5eca7bdb1edfca251.ivan.lloro.boada@gentoo \
--to=ivan.lloro.boada@gmail.com \
--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