summaryrefslogtreecommitdiff
path: root/security/yubikey-manager-qt
diff options
context:
space:
mode:
Diffstat (limited to 'security/yubikey-manager-qt')
-rw-r--r--security/yubikey-manager-qt/Makefile47
-rw-r--r--security/yubikey-manager-qt/distinfo3
-rw-r--r--security/yubikey-manager-qt/pkg-descr2
-rw-r--r--security/yubikey-manager-qt/pkg-message7
4 files changed, 59 insertions, 0 deletions
diff --git a/security/yubikey-manager-qt/Makefile b/security/yubikey-manager-qt/Makefile
new file mode 100644
index 000000000000..70f1c79cd6e9
--- /dev/null
+++ b/security/yubikey-manager-qt/Makefile
@@ -0,0 +1,47 @@
+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
+
+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
+}
+]