diff options
Diffstat (limited to 'app-crypt/autofirma/autofirma-1.8.3.ebuild')
-rw-r--r-- | app-crypt/autofirma/autofirma-1.8.3.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
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" +} |