aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Lloro <ivan.lloro.boada@gmail.com>2024-06-29 03:22:01 +0200
committerIvan Lloro <ivan.lloro.boada@gmail.com>2024-06-29 03:24:14 +0200
commite956e2ceae1b88b182f1a7ea8e44b8ae6b4c6962 (patch)
tree2406c3df2cfcc09c121a969c58fa2a820e59109d /app-crypt
parentsys-boot/grml-rescueboot: http -> httpS (diff)
downloadguru-e956e2ceae1b88b182f1a7ea8e44b8ae6b4c6962.tar.gz
guru-e956e2ceae1b88b182f1a7ea8e44b8ae6b4c6962.tar.bz2
guru-e956e2ceae1b88b182f1a7ea8e44b8ae6b4c6962.zip
app-crypt/autofirma: add 1.8.3
Signed-off-by: Ivan Lloro <ivan.lloro.boada@gmail.com>
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/autofirma/Manifest1
-rw-r--r--app-crypt/autofirma/autofirma-1.8.3.ebuild52
2 files changed, 53 insertions, 0 deletions
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"
+}