git: 95a0392cb09f - main - Revert: "security/yubioath-desktop: Remove expired port"

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Thu, 04 Sep 2025 17:14:40 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=95a0392cb09f24b2f6a1000c9b7c80f6f411c70d

commit 95a0392cb09f24b2f6a1000c9b7c80f6f411c70d
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-09-04 17:11:08 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-09-04 17:14:24 +0000

    Revert: "security/yubioath-desktop: Remove expired port"
    
    This reverts commit c33d916020276f1442482674cb93575201975256.
    
    security/py-yubikey-manager no longer depends on security/libu2f-host
    since commit 0708111995957ebffe65a018c997be9b7d3d681c
---
 MOVED                                 |  1 -
 security/Makefile                     |  1 +
 security/yubioath-desktop/Makefile    | 48 +++++++++++++++++++++++++++++++++++
 security/yubioath-desktop/distinfo    |  3 +++
 security/yubioath-desktop/pkg-descr   |  3 +++
 security/yubioath-desktop/pkg-message |  7 +++++
 6 files changed, 62 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index 471b684a3f00..afcb60a20fce 100644
--- a/MOVED
+++ b/MOVED
@@ -4751,7 +4751,6 @@ math/libmissing||2025-09-02|Has expired: Old. FreeBSD's libm improved since 2012
 security/p5-Dancer2-Plugin-Auth-Extensible-Provider-Usergroup||2025-09-02|Has expired: Depends on expired security/p5-Data-Entropy via security/p5-Dancer2-Plugin-Passphrase
 security/p5-Dancer-Plugin-Auth-Extensible-Provider-Usergroup||2025-09-02|Has expired: Depends on expired security/p5-Data-Entropy via security/p5-Dancer-Plugin-Passphrase
 security/py-onlykey||2025-09-02|Has expired: Depends on expired security/libu2f-host
-security/yubioath-desktop||2025-09-02|Has expired: Depends on expired security/libu2f-host via security/py-yubikey-manager
 textproc/opensearch-dashboards213||2025-09-02|Has expired: Depends on expired www/npm-node18
 textproc/opensearch-dashboards210||2025-09-02|Has expired: Depends on expired www/npm-node18
 textproc/opensearch-dashboards216||2025-09-02|Has expired: Depends on expired www/npm-node18
diff --git a/security/Makefile b/security/Makefile
index c213c5f4e2e6..fbfc8471a1f5 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1437,6 +1437,7 @@
     SUBDIR += yubikey-agent
     SUBDIR += yubikey-manager-qt
     SUBDIR += yubikey-personalization-gui
+    SUBDIR += yubioath-desktop
     SUBDIR += zaproxy
     SUBDIR += zeek
     SUBDIR += zeronet
diff --git a/security/yubioath-desktop/Makefile b/security/yubioath-desktop/Makefile
new file mode 100644
index 000000000000..7f536c778050
--- /dev/null
+++ b/security/yubioath-desktop/Makefile
@@ -0,0 +1,48 @@
+PORTNAME=	yubioath-desktop
+DISTVERSIONPREFIX=	yubioath-desktop-
+DISTVERSION=	5.0.4
+PORTREVISION=	2
+CATEGORIES=	security
+
+MAINTAINER=	daniel@shafer.cc
+COMMENT=	GUI for displaying OATH codes with a Yubikey
+WWW=		https://developers.yubico.com/yubioath-desktop/
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+DEPRECATED=	Depends on expired security/libu2f-host via security/py-yubikey-manager
+EXPIRATION_DATE=2025-09-01
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yubikey-manager>=0.7.0:security/py-yubikey-manager@${PY_FLAVOR} \
+		pyotherside-qt5>0:devel/pyotherside-qt5 \
+		RSA_SecurID_getpasswd:devel/libccid \
+		libffi>0:devel/libffi \
+		pcscd:devel/pcsc-lite \
+		swig:devel/swig
+
+USES=		compiler:c++11-lang desktop-file-utils gl python qmake qt:5 \
+		shebangfix ssl
+USE_GL=		gl
+USE_QT=		core declarative gui network quickcontrols2 svg widgets buildtools:build
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Yubico
+
+SHEBANG_FILES=	build_qrc.py \
+		py/yubikey.py \
+
+PLIST_FILES=	bin/yubioath-desktop \
+		share/applications/com.yubico.yubioath.desktop \
+		share/pixmaps/com.yubico.yubioath.png
+
+post-patch:
+	@${REINPLACE_CMD} -e '/PYTHON_CMD/s|python3|${PYTHON_CMD}|g' \
+		${WRKSRC}/yubioath-desktop.pro
+	@${REINPLACE_CMD} -e 's|target.path = /usr/bin|target.path = ${PREFIX}/bin|g' ${WRKSRC}/deployment.pri
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/resources/com.yubico.yubioath.desktop ${STAGEDIR}${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/resources/icons/com.yubico.yubioath.png ${STAGEDIR}${PREFIX}/share/pixmaps
+
+.include <bsd.port.mk>
diff --git a/security/yubioath-desktop/distinfo b/security/yubioath-desktop/distinfo
new file mode 100644
index 000000000000..568b3dd1904e
--- /dev/null
+++ b/security/yubioath-desktop/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1616213145
+SHA256 (Yubico-yubioath-desktop-yubioath-desktop-5.0.4_GH0.tar.gz) = b47c8715e415b0e0ea0237e6f56d328fc8d3303a87ad89d4540d4f4a93138bd7
+SIZE (Yubico-yubioath-desktop-yubioath-desktop-5.0.4_GH0.tar.gz) = 5657338
diff --git a/security/yubioath-desktop/pkg-descr b/security/yubioath-desktop/pkg-descr
new file mode 100644
index 000000000000..8a3575b7be09
--- /dev/null
+++ b/security/yubioath-desktop/pkg-descr
@@ -0,0 +1,3 @@
+Cross-platform application for generating Open Authentication (OATH) time-based
+TOTP and event-based HOTP one-time password codes, with the help of a YubiKey
+that protects the shared secrets.
diff --git a/security/yubioath-desktop/pkg-message b/security/yubioath-desktop/pkg-message
new file mode 100644
index 000000000000..7f4f2a2c4875
--- /dev/null
+++ b/security/yubioath-desktop/pkg-message
@@ -0,0 +1,7 @@
+[
+{ type: install
+  message: <<EOM
+  Before running make sure that the pcscd service is enabled and running
+EOM
+}
+]