From nobody Fri Dec 12 18:47:58 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dSdkR2xnNz6K6Zk for ; Fri, 12 Dec 2025 18:47:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dSdkR1C8Xz3MMT for ; Fri, 12 Dec 2025 18:47:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765565279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LvKUuyvCpKjwInQd4dCmISWDJm+RqimAMCEDGQuReVw=; b=WZbWXf5IMX97H4iAlwSFZD5T/y5zNfJjZ7LIP2HAG3A9jy1wZKzaSVgsY/8Gl8pv4KJYGk Saz0kzb0PapmXL0XmG5ghyS/D3XZiG54uUKval5XEv7jipVC0nZmDiYZsB1ne5iCoTLx9w RA1p0UsUWUL9k+gT9brHYy+eEpKlnv5j7WpliKQ/APVCSKgx02uQ+LL+ME00WqNtt3kc5K qEl/sLTIPDbmUnkvZtBRNLfluWUSVswqaFSi1zoosqp89yyLMXg6l4wzse1Mb25Ki0WCyD nF+Wtzp3qHOYyb2dC99YQb8O/PumRyr7ftsJ776P/tXOk06bbJrKqdpdDCXYSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765565279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LvKUuyvCpKjwInQd4dCmISWDJm+RqimAMCEDGQuReVw=; b=me1FaY9QQK9wh+RMUE12vx2t4xuGtf2zpOSnYB84DDWotci/YM3vctf0KeLrMH8hfvaGX6 xJZV77+7R0Ge90nQMJURbDGt/9qzQ+pfTFU6BTxSGw19yCFyRgMXLSWY7AXzh+H+naYh6v n3ggJbNCit6S+KXBVctwf9P4+gwFawPpdYo0YLifL5MQvcORt+h1Lx1sE8vuP4E+ZE3VlR 9mxNOzIqVtk6A+6YFn9iOIMoV0vfBTbv2mqQ2jScL6G47SsEKw3I4frGY66IQcwtYYPcZt 4fs56Jd23pnM2fM5/PhdiD9jgzdWIlkdc7y0Og4CzHBX1eYG+HrOjxO4aVcOlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765565279; a=rsa-sha256; cv=none; b=WAkhhuU6SRracyTlUiHWF1K68k4YETsjw4Qo7SH6AbnltQnjWbj82ot6af5dibvP0qn0ob K+1JHykewOx5o5OmA5TEPYfa3bRw9YlMRQiNoCEszkAYULBs9bX3PPSEaRdm/tFITim7pC UBF8wBFqh0EwWQoXjF+JrSU10PxwI6G9y3EF8kYTeIDY8nIgGCS0jMoB80+rmfzSclD1x3 SOSd+CfknOkZ3k7rv8EnYFnbXyA6pNL+jzsqXe/RO01WhEgKo3aj0URHhHfU0nGsblLWbp lMgI2MgIdMdeoApiVviqehe7FCR+7+4iqtYWsy36jwkfBUYzpSN4j5doIdsmTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dSdkR00MKzDQ4 for ; Fri, 12 Dec 2025 18:47:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id fce1 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 12 Dec 2025 18:47:58 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fernando Apeste=?utf-8?Q?gu=C3=ADa?= Subject: git: 548c97a157b8 - main - java/autofirma: [new port]. Digital signature application List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 548c97a157b80d813cad1cdef4e0182e74c3fb2b Auto-Submitted: auto-generated Date: Fri, 12 Dec 2025 18:47:58 +0000 Message-Id: <693c635e.fce1.6a647efe@gitrepo.freebsd.org> The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=548c97a157b80d813cad1cdef4e0182e74c3fb2b commit 548c97a157b80d813cad1cdef4e0182e74c3fb2b Author: Fernando ApesteguĂ­a AuthorDate: 2025-11-01 19:28:27 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2025-12-12 18:46:30 +0000 java/autofirma: [new port]. Digital signature application Autofirma is a java application used to sign digital documents. It is the official application of the Spanish Government and as such it is required to perform many online tasks with the Administration. Reviewed by: michaelo@ Differential Revision: https://reviews.freebsd.org/D53807 --- security/Makefile | 1 + security/autofirma/Makefile | 47 ++++++++++++++++++++++++++++++ security/autofirma/distinfo | 3 ++ security/autofirma/files/Autofirma.js.in | 4 +++ security/autofirma/files/afirma.desktop.in | 16 ++++++++++ security/autofirma/files/autofirma.in | 5 ++++ security/autofirma/files/pkg-message.in | 9 ++++++ security/autofirma/pkg-descr | 4 +++ security/autofirma/pkg-plist | 5 ++++ 9 files changed, 94 insertions(+) diff --git a/security/Makefile b/security/Makefile index 176dfc48ad3f..67f44efbc33a 100644 --- a/security/Makefile +++ b/security/Makefile @@ -36,6 +36,7 @@ SUBDIR += assh SUBDIR += authenticator SUBDIR += authoscope + SUBDIR += autofirma SUBDIR += autossh SUBDIR += aws-c-auth SUBDIR += aws-c-cal diff --git a/security/autofirma/Makefile b/security/autofirma/Makefile new file mode 100644 index 000000000000..034ca3b487e2 --- /dev/null +++ b/security/autofirma/Makefile @@ -0,0 +1,47 @@ +PORTNAME= autofirma +DISTVERSION= 1.9 +CATEGORIES= security +MASTER_SITES= https://firmaelectronica.gob.es/content/dam/firmaelectronica/descargas-software/autofirma19/ +DISTNAME= Autofirma_Linux_Debian + +MAINTAINER= fernape@FreeBSD.org +COMMENT= Spanish Government digital signature application +WWW= https://sedediatid.digital.gob.es/es-es/firmaelectronica/Paginas/AutoFirma.aspx + +LICENSE= GPLv2 EUPL11 +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/usr/share/common-licenses/eupl-1.1.txt + +LIB_DEPENDS= libnss3.so:security/nss + +USES= desktop-file-utils java zip +JAVA_VERSION= 24 +JAVA_VENDOR= openjdk + +DATADIR= ${JAVASHAREDIR}/${PORTNAME} + +NO_BUILD= yes + +SUB_FILES= ${PORTNAME} \ + Autofirma.js \ + afirma.desktop \ + pkg-message +SUB_LIST+= JAVA_HOME=${JAVA_HOME} \ + JAVA=${JAVA} + +WRKSRC=${WRKDIR} + +post-extract: + ${TAR} -C ${WRKDIR} -xvzf ${WRKDIR}/autofirma_1_9.deb + ${TAR} -C ${WRKDIR} -xvzf ${WRKDIR}/data.tar.gz + ${ZIP_CMD} -d ${PORTNAME}.jar "nss/WINDOWS/*" "windows/*" "osx/*" "linux/*" + +do-install: + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/usr/lib/Autofirma/autofirma.jar ${STAGEDIR}${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/usr/lib/Autofirma/Autofirma.png ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKDIR}/afirma.desktop ${STAGEDIR}${PREFIX}/share/applications/ + ${INSTALL_DATA} ${WRKDIR}/Autofirma.js ${STAGEDIR}${DATADIR} + +.include diff --git a/security/autofirma/distinfo b/security/autofirma/distinfo new file mode 100644 index 000000000000..451ef847a707 --- /dev/null +++ b/security/autofirma/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1762021451 +SHA256 (Autofirma_Linux_Debian.zip) = c29c251f2ee9f00dfc87f9582677dbd436a83565986ab0417ff065ceae716798 +SIZE (Autofirma_Linux_Debian.zip) = 67295518 diff --git a/security/autofirma/files/Autofirma.js.in b/security/autofirma/files/Autofirma.js.in new file mode 100644 index 000000000000..3a5451fe2bbc --- /dev/null +++ b/security/autofirma/files/Autofirma.js.in @@ -0,0 +1,4 @@ +pref("network.protocol-handler.app.afirma","%%LOCALBASE%%/bin/autofirma"); +pref("network.protocol-handler.warn-external.afirma",false); +pref("network.protocol-handler.external.afirma",true); + diff --git a/security/autofirma/files/afirma.desktop.in b/security/autofirma/files/afirma.desktop.in new file mode 100644 index 000000000000..6005ea9bde1a --- /dev/null +++ b/security/autofirma/files/afirma.desktop.in @@ -0,0 +1,16 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.9 +Name=Autofirma +Type=Application +Terminal=false +Categories=Office;Utilities;Signature;Java +Exec=%%LOCALBASE%%/bin/autofirma %u +Icon=%%DATADIR%%/Autofirma.png +GenericName=Herramienta de firma +Comment=Herramienta de firma +MimeType=x-scheme-handler/afirma; +StartupNotify=true +StartupWMClass=autofirma +Name[es_ES]=Autofirma + diff --git a/security/autofirma/files/autofirma.in b/security/autofirma/files/autofirma.in new file mode 100644 index 000000000000..b124586a67d7 --- /dev/null +++ b/security/autofirma/files/autofirma.in @@ -0,0 +1,5 @@ +#!/bin/sh +export AFIRMA_NSS_HOME_ENV=%%LOCALBASE%%/lib/ +JAVA_OPTS="-Djdk.tls.maxHandshakeMessageSize=65536 \ + -Des.gob.afirma.keystores.mozilla.UseEnvironmentVariables=true" +%%JAVA%% ${JAVA_OPTS} -jar %%JAVAJARDIR%%/autofirma.jar "$@" diff --git a/security/autofirma/files/pkg-message.in b/security/autofirma/files/pkg-message.in new file mode 100644 index 000000000000..df006385bd4b --- /dev/null +++ b/security/autofirma/files/pkg-message.in @@ -0,0 +1,9 @@ +[ +{ type: install + message: <