git: 34df2ab11d35 - main - Revert: "security/yubikey-manager-qt: Remove expired port"

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=34df2ab11d35abf1adc112fcace83e06bec59fd3

commit 34df2ab11d35abf1adc112fcace83e06bec59fd3
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-09-04 17:07:00 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-09-04 17:14:14 +0000

    Revert: "security/yubikey-manager-qt: Remove expired port"
    
    This reverts commit 5aaae75d74b38beb1391200f9b29d00904b240df.
    
    security/py-yubikey-manager no longer depends on security/libu2f-host
    since commit 0708111995957ebffe65a018c997be9b7d3d681c
    
    Reported by:    Jan Henrik Sylvester <me@janh.de>
---
 MOVED                                   |  1 -
 security/Makefile                       |  1 +
 security/yubikey-manager-qt/Makefile    | 50 +++++++++++++++++++++++++++++++++
 security/yubikey-manager-qt/distinfo    |  3 ++
 security/yubikey-manager-qt/pkg-descr   |  2 ++
 security/yubikey-manager-qt/pkg-message |  7 +++++
 6 files changed, 63 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index 47501593a3e0..471b684a3f00 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/yubikey-manager-qt||2025-09-02|Has expired: Depends on expired security/libu2f-host via security/py-yubikey-manager
 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
diff --git a/security/Makefile b/security/Makefile
index c25bff7144da..c213c5f4e2e6 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1435,6 +1435,7 @@
     SUBDIR += ylva
     SUBDIR += yubico-piv-tool
     SUBDIR += yubikey-agent
+    SUBDIR += yubikey-manager-qt
     SUBDIR += yubikey-personalization-gui
     SUBDIR += zaproxy
     SUBDIR += zeek
diff --git a/security/yubikey-manager-qt/Makefile b/security/yubikey-manager-qt/Makefile
new file mode 100644
index 000000000000..9a92a11991df
--- /dev/null
+++ b/security/yubikey-manager-qt/Makefile
@@ -0,0 +1,50 @@
+PORTNAME=	yubikey-manager-qt
+DISTVERSIONPREFIX=	yubikey-manager-qt-
+DISTVERSION=	1.2.0
+PORTREVISION=	1
+CATEGORIES=	security
+
+MAINTAINER=	daniel@shafer.cc
+COMMENT=	Cross-platform application for configuring any YubiKey
+WWW=		https://developers.yubico.com/yubikey-manager-qt/
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+DEPRECATED=	Depends on expired security/libu2f-host via security/py-yubikey-manager
+EXPIRATION_DATE=2025-09-01
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yubikey-manager>0:security/py-yubikey-manager@${PY_FLAVOR} \
+		pyotherside-qt5>0:devel/pyotherside-qt5
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yubikey-manager>0:security/py-yubikey-manager@${PY_FLAVOR} \
+		pyotherside-qt5>0:devel/pyotherside-qt5
+
+USES=		compiler:c++11-lang gl pkgconfig python qt:5 qmake \
+		shebangfix
+USE_GL=		gl
+USE_QT=		core declarative graphicaleffects gui network quickcontrols \
+		quickcontrols2 svg widgets buildtools:build
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Yubico
+
+SHEBANG_FILES=	ykman-gui/py/yubikey.py \
+		ykman-cli/test.py \
+		ykman-cli/py/cli.py \
+		build_qrc.py
+
+PLIST_FILES=	bin/ykman-gui \
+		share/applications/ykman-gui.desktop \
+		share/pixmaps/ykman.png
+
+post-extract:
+	@${REINPLACE_CMD} -e '/system/s|python|${PYTHON_CMD}|g' ${WRKSRC}/ykman-gui/ykman-gui.pro \
+		${WRKSRC}/ykman-cli/ykman-cli.pro
+	@${REINPLACE_CMD} -e 's|/usr/bin/ykman-gui|${PREFIX}/bin/ykman-gui|g' ${WRKSRC}/resources/linux/AppRun
+	@${REINPLACE_CMD} -e 's|target.path = /usr/bin|target.path = ${PREFIX}/bin|g' ${WRKSRC}/ykman-gui/deployment.pri
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/resources/ykman-gui.desktop ${STAGEDIR}${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/resources/icons/ykman.png ${STAGEDIR}${PREFIX}/share/pixmaps
+
+.include <bsd.port.mk>
diff --git a/security/yubikey-manager-qt/distinfo b/security/yubikey-manager-qt/distinfo
new file mode 100644
index 000000000000..d8ad64d7c0ac
--- /dev/null
+++ b/security/yubikey-manager-qt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1616216055
+SHA256 (Yubico-yubikey-manager-qt-yubikey-manager-qt-1.2.0_GH0.tar.gz) = 3f3c998f93b74b869c232f5f951a9d7b2f68b007c20be8e39a698e24ea7aae0b
+SIZE (Yubico-yubikey-manager-qt-yubikey-manager-qt-1.2.0_GH0.tar.gz) = 17311666
diff --git a/security/yubikey-manager-qt/pkg-descr b/security/yubikey-manager-qt/pkg-descr
new file mode 100644
index 000000000000..86b0e115ab9f
--- /dev/null
+++ b/security/yubikey-manager-qt/pkg-descr
@@ -0,0 +1,2 @@
+Cross-platform application for configuring any YubiKey
+over all USB interfaces.
diff --git a/security/yubikey-manager-qt/pkg-message b/security/yubikey-manager-qt/pkg-message
new file mode 100644
index 000000000000..69e21c9701be
--- /dev/null
+++ b/security/yubikey-manager-qt/pkg-message
@@ -0,0 +1,7 @@
+[
+{ type: install
+  message: <<EOM
+In addition to the application itself, you may also need to manually install and start the pcscd service <devel/pcsc-lite> for CCID support.
+EOM
+}
+]