From 7cc5ae81f5e1b254602d50c0ebe2fd41be0946e2 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 7 May 2023 18:30:49 +0200 Subject: app-crypt/yubioath-flutter-bin: add RDEP on sys-apps/pcsc-lite Closes: https://bugs.gentoo.org/905847 Signed-off-by: David Seifert --- .../yubioath-flutter-bin-6.1.0-r1.ebuild | 78 ++++++++++++++++++++++ .../yubioath-flutter-bin-6.1.0.ebuild | 70 ------------------- 2 files changed, 78 insertions(+), 70 deletions(-) create mode 100644 app-crypt/yubioath-flutter-bin/yubioath-flutter-bin-6.1.0-r1.ebuild delete mode 100644 app-crypt/yubioath-flutter-bin/yubioath-flutter-bin-6.1.0.ebuild (limited to 'app-crypt') diff --git a/app-crypt/yubioath-flutter-bin/yubioath-flutter-bin-6.1.0-r1.ebuild b/app-crypt/yubioath-flutter-bin/yubioath-flutter-bin-6.1.0-r1.ebuild new file mode 100644 index 000000000000..9c1a59dda12c --- /dev/null +++ b/app-crypt/yubioath-flutter-bin/yubioath-flutter-bin-6.1.0-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg + +DESCRIPTION="Yubico Authenticator for TOTP" +HOMEPAGE=" + https://developers.yubico.com/yubioath-flutter/ + https://github.com/Yubico/yubioath-flutter" +SRC_URI="https://github.com/Yubico/yubioath-flutter/releases/download/${PV}/yubico-authenticator-${PV}-linux.tar.gz" +S="${WORKDIR}/yubico-authenticator-${PV}-linux" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="-* ~amd64" + +RDEPEND=" + app-accessibility/at-spi2-core:2 + dev-libs/glib:2 + media-libs/libepoxy + sys-apps/pcsc-lite + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libxcb + x11-libs/pango" +BDEPEND="app-admin/chrpath" + +# "Modern" app, built using Google's flutter framework. +# +# Don't even *think* about unbundling the dependencies, they're all +# hardcoded into the main binary and the helper, including but not +# limited to a full-fledged python interpreter that gets dlopen'd, an +# assortment of python packages, the X11 kitchen sink, random GCC +# libraries, and OpenSSL 1.1, oftentimes using git checkouts instead of +# released versioned libraries. +# +# The only way to avoid this mess would be to build flutter from source, +# but unfortunately life is too short to be dealing with whatever is +# Google's framework-de-jour on a regular basis. +QA_PREBUILT="opt/yubico-authenticator/*" + +src_install() { + einstalldocs + rm -r README* || die + + sed -e 's|@EXEC_PATH/authenticator|authenticator|' \ + -e 's|@EXEC_PATH/linux_support/com.yubico.yubioath.png|com.yubico.yubioath|g' \ + -i linux_support/com.yubico.authenticator.desktop || die + domenu linux_support/com.yubico.authenticator.desktop + doicon -s 128 linux_support/com.yubico.yubioath.png + rm -r linux_support || die + + exeinto /opt/yubico-authenticator + doexe authenticator + rm authenticator || die + + exeinto /opt/yubico-authenticator/helper + doexe helper/authenticator-helper + rm helper/authenticator-helper || die + + # prevent rpath_security_checks() trigger + chrpath -d helper/libjpeg*.so.* || die + + insinto /opt/yubico-authenticator + doins -r . + + dosym ../../opt/yubico-authenticator/authenticator /usr/bin/authenticator +} + +pkg_postinst() { + xdg_pkg_postinst + + elog "Make sure you are a member of the pcscd group" + elog "and the pcscd service is running." +} diff --git a/app-crypt/yubioath-flutter-bin/yubioath-flutter-bin-6.1.0.ebuild b/app-crypt/yubioath-flutter-bin/yubioath-flutter-bin-6.1.0.ebuild deleted file mode 100644 index 7662796ea649..000000000000 --- a/app-crypt/yubioath-flutter-bin/yubioath-flutter-bin-6.1.0.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop xdg - -DESCRIPTION="Yubico Authenticator for TOTP" -HOMEPAGE=" - https://developers.yubico.com/yubioath-flutter/ - https://github.com/Yubico/yubioath-flutter" -SRC_URI="https://github.com/Yubico/yubioath-flutter/releases/download/${PV}/yubico-authenticator-${PV}-linux.tar.gz" -S="${WORKDIR}/yubico-authenticator-${PV}-linux" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="-* ~amd64" - -RDEPEND=" - app-accessibility/at-spi2-core:2 - dev-libs/glib:2 - media-libs/libepoxy - x11-libs/cairo - x11-libs/gdk-pixbuf:2 - x11-libs/gtk+:3 - x11-libs/libxcb - x11-libs/pango" -BDEPEND="app-admin/chrpath" - -# "Modern" app, built using Google's flutter framework. -# -# Don't even *think* about unbundling the dependencies, they're all -# hardcoded into the main binary and the helper, including but not -# limited to a full-fledged python interpreter that gets dlopen'd, an -# assortment of python packages, the X11 kitchen sink, random GCC -# libraries, and OpenSSL 1.1, oftentimes using git checkouts instead of -# released versioned libraries. -# -# The only way to avoid this mess would be to build flutter from source, -# but unfortunately life is too short to be dealing with whatever is -# Google's framework-de-jour on a regular basis. -QA_PREBUILT="opt/yubico-authenticator/*" - -src_install() { - einstalldocs - rm -r README* || die - - sed -e 's|@EXEC_PATH/authenticator|authenticator|' \ - -e 's|@EXEC_PATH/linux_support/com.yubico.yubioath.png|com.yubico.yubioath|g' \ - -i linux_support/com.yubico.authenticator.desktop || die - domenu linux_support/com.yubico.authenticator.desktop - doicon -s 128 linux_support/com.yubico.yubioath.png - rm -r linux_support || die - - exeinto /opt/yubico-authenticator - doexe authenticator - rm authenticator || die - - exeinto /opt/yubico-authenticator/helper - doexe helper/authenticator-helper - rm helper/authenticator-helper || die - - # prevent rpath_security_checks() trigger - chrpath -d helper/libjpeg*.so.* || die - - insinto /opt/yubico-authenticator - doins -r . - - dosym ../../opt/yubico-authenticator/authenticator /usr/bin/authenticator -} -- cgit v1.2.3-65-gdbad