diff options
author | Marek Szuba <marecki@gentoo.org> | 2024-05-02 14:50:30 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2024-05-02 14:53:22 +0100 |
commit | 24e31ecb50bc6d16c77bb0c1f066fd776d9a2796 (patch) | |
tree | 9ca1fd031ff5df3b7db2df576911cf688af0f490 /app-crypt/yubikey-manager | |
parent | dev-qt/qtbase: backport fix for CVE-2024-33861 (diff) | |
download | gentoo-24e31ecb50bc6d16c77bb0c1f066fd776d9a2796.tar.gz gentoo-24e31ecb50bc6d16c77bb0c1f066fd776d9a2796.tar.bz2 gentoo-24e31ecb50bc6d16c77bb0c1f066fd776d9a2796.zip |
app-crypt/yubikey-manager: allow running against ~dev-python/keyring-25
Builds, tests, installs and runs (as far as I could tell) fine with that
version. Upstream notified but no reaction yet.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-crypt/yubikey-manager')
-rw-r--r-- | app-crypt/yubikey-manager/yubikey-manager-5.4.0-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app-crypt/yubikey-manager/yubikey-manager-5.4.0-r1.ebuild b/app-crypt/yubikey-manager/yubikey-manager-5.4.0-r1.ebuild new file mode 100644 index 000000000000..fc22190f735e --- /dev/null +++ b/app-crypt/yubikey-manager/yubikey-manager-5.4.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=poetry + +inherit distutils-r1 verify-sig + +MY_PN="${PN/-/_}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python library and command line tool for configuring a YubiKey" +HOMEPAGE="https://developers.yubico.com/yubikey-manager/" +# According to https://github.com/Yubico/yubikey-manager/issues/518 the release +# tarballs on Yubico Web site and on GitHub should be identical, and at least +# for recent releases the latter are signed as well. Only the automatically +# generated "Source code (tar.gz)" tarballs should not be used. +# Still, prefer the former if available. +SRC_URI="https://developers.yubico.com/${PN}/Releases/${MY_P}.tar.gz + verify-sig? ( https://developers.yubico.com/${PN}/Releases/${MY_P}.tar.gz.sig )" + +S="${WORKDIR}"/${MY_P} + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="ssl" +VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/yubico.com.asc" + +# app-crypt/ccid required for +# - 'ykman oath' +# - 'ykman openpgp' +# - 'ykman piv' +RDEPEND=" + app-crypt/ccid + >=dev-python/click-8.0[${PYTHON_USEDEP}] + <dev-python/cryptography-45[${PYTHON_USEDEP}] + dev-python/fido2:0/1.0[${PYTHON_USEDEP}] + dev-python/keyring[${PYTHON_USEDEP}] + >=dev-python/pyscard-2.0[${PYTHON_USEDEP}] + ssl? ( >=dev-python/pyopenssl-0.15.1[${PYTHON_USEDEP}] )" +BDEPEND=" + test? ( dev-python/makefun[${PYTHON_USEDEP}] ) + verify-sig? ( >=sec-keys/openpgp-keys-yubico-20220824 )" + +distutils_enable_tests pytest + +python_install_all() { + distutils-r1_python_install_all + doman man/ykman.1 +} |