From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1647845-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 04FEE15802E
	for <garchives@archives.gentoo.org>; Sat, 29 Jun 2024 01:25:56 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 25AA02BC01A;
	Sat, 29 Jun 2024 01:25:55 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id F383B2BC01A
	for <gentoo-commits@lists.gentoo.org>; Sat, 29 Jun 2024 01:25:54 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id E4EF3335C36
	for <gentoo-commits@lists.gentoo.org>; Sat, 29 Jun 2024 01:25:53 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 6F8A31BC0
	for <gentoo-commits@lists.gentoo.org>; Sat, 29 Jun 2024 01:25:52 +0000 (UTC)
From: "Ivan Lloro" <ivan.lloro.boada@gmail.com>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ivan Lloro" <ivan.lloro.boada@gmail.com>
Message-ID: <1719624254.e956e2ceae1b88b182f1a7ea8e44b8ae6b4c6962.ivan.lloro.boada@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-crypt/autofirma/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: app-crypt/autofirma/Manifest app-crypt/autofirma/autofirma-1.8.3.ebuild
X-VCS-Directories: app-crypt/autofirma/
X-VCS-Committer: ivan.lloro.boada
X-VCS-Committer-Name: Ivan Lloro
X-VCS-Revision: e956e2ceae1b88b182f1a7ea8e44b8ae6b4c6962
X-VCS-Branch: dev
Date: Sat, 29 Jun 2024 01:25:52 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 76f5b1be-8072-4ddf-aefe-123590030e1f
X-Archives-Hash: 454c9a641eb304134c34893f99edc3c2

commit:     e956e2ceae1b88b182f1a7ea8e44b8ae6b4c6962
Author:     Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com>
AuthorDate: Sat Jun 29 01:22:01 2024 +0000
Commit:     Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com>
CommitDate: Sat Jun 29 01:24:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e956e2ce

app-crypt/autofirma: add 1.8.3

Signed-off-by: Ivan Lloro <ivan.lloro.boada <AT> gmail.com>

 app-crypt/autofirma/Manifest               |  1 +
 app-crypt/autofirma/autofirma-1.8.3.ebuild | 52 ++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/app-crypt/autofirma/Manifest b/app-crypt/autofirma/Manifest
index 0032fcafa..34b8bca25 100644
--- a/app-crypt/autofirma/Manifest
+++ b/app-crypt/autofirma/Manifest
@@ -1 +1,2 @@
 DIST autofirma-1.8.2.zip 51224492 BLAKE2B 22dcf856a9fae720f978976a7e6ac6e55af7b0e4d590ea2f2fe29021af3544600b5fa90460a6a30bdbe44803b8c719e80bfef0638513f8b47a98efc757e611ef SHA512 119bb55726f790eb432cf571ab3e30bf2f7eb166fcaa66c01b77eceba093ee5a10987dfbd73b67524e0bfc8a84e043b8b50ad3553e4364d50d46e3bcfd66103c
+DIST autofirma-1.8.3.zip 51229179 BLAKE2B 6638ba177e9e924de41bc3b4188f503ecf9135f86036540a29592eee861e9453e2a14e56c686130b056900c4560ecc689a6613e701f5203413ee79c1cf0d9718 SHA512 d31650b6ce051700f77b9011b8ca4e01ac28dcbf8fc4c8badd867f0eee6ab91d05222b9d7eac8df64772f7ec956935d4a2dce2ad7201d5b83acd70b78de4ea90

diff --git a/app-crypt/autofirma/autofirma-1.8.3.ebuild b/app-crypt/autofirma/autofirma-1.8.3.ebuild
new file mode 100644
index 000000000..60ea44379
--- /dev/null
+++ b/app-crypt/autofirma/autofirma-1.8.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop java-utils-2 rpm xdg
+
+DESCRIPTION="Spanish government's electronic signature application for online procedures"
+HOMEPAGE="
+	https://administracionelectronica.gob.es/ctt/clienteafirma
+	https://github.com/ctt-gob-es/clienteafirma
+"
+
+# Upstream blocks wget with no User Agent.
+SRC_URI="https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip -> ${P}.zip"
+
+S=${WORKDIR}
+
+LICENSE="|| ( GPL-2 EUPL-1.1 )"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="virtual/jre:1.8"
+BDEPEND="app-arch/unzip"
+
+#pkg_setup() {
+	# Upstream blocks vanilla wget, so we set up a browser User-Agent.
+#	URI="https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip"
+	#wget -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}" --user-agent="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"
+#	wget --user-agent="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" ${URI} -O ${DISTDIR}/${P}.zip
+#}
+
+pkg_nofetch() {
+	einfo "Please download:"
+	einfo " https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip"
+	einfo "and move it to your distfiles directory as autofirma-${PV}.zip."
+}
+
+src_unpack() {
+	default
+	rpm_unpack "./${P}-1.noarch_FEDORA.rpm"
+}
+
+src_install() {
+	java-pkg_dojar "usr/lib64/${PN}/${PN}.jar"
+	java-pkg_dolauncher
+	java-pkg_dojar "usr/lib64/${PN}/${PN}Configurador.jar"
+	doicon "usr/lib64/${PN}/${PN}.png"
+	make_desktop_entry \
+		"${PN} %u" AutoFirma "${PN}" "Utility" \
+		"Comment[es]=Aplicación de firma electrónica de la FNMT\nMimeType=x-scheme-handler/afirma"
+}