diff options
author | 2024-06-28 14:41:10 +0200 | |
---|---|---|
committer | 2024-07-04 02:14:43 +0100 | |
commit | ee02de07086190b2eb05e88a667e177582cf3bca (patch) | |
tree | 3caa7284a6d64c5f0812bfee90f5a3821365e028 /sys-auth/yubico-piv-tool/yubico-piv-tool-2.5.2.ebuild | |
parent | sys-auth/libyubikey: add myself as a maintainer (diff) | |
download | gentoo-ee02de07086190b2eb05e88a667e177582cf3bca.tar.gz gentoo-ee02de07086190b2eb05e88a667e177582cf3bca.tar.bz2 gentoo-ee02de07086190b2eb05e88a667e177582cf3bca.zip |
sys-auth/yubico-piv-tool: add 2.5.2
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-auth/yubico-piv-tool/yubico-piv-tool-2.5.2.ebuild')
-rw-r--r-- | sys-auth/yubico-piv-tool/yubico-piv-tool-2.5.2.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.5.2.ebuild b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.5.2.ebuild new file mode 100644 index 000000000000..431639fedfe6 --- /dev/null +++ b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.5.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake verify-sig + +DESCRIPTION="Command-line tool and p11-kit module for the YubiKey PIV application" +HOMEPAGE="https://developers.yubico.com/yubico-piv-tool/ https://github.com/Yubico/yubico-piv-tool" +SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.gz + verify-sig? ( https://developers.yubico.com/${PN}/Releases/${P}.tar.gz.sig )" + +LICENSE="BSD-2" +SLOT="0/2" +KEYWORDS="~amd64 ~arm64 ~riscv" +IUSE="test verify-sig" +VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/yubico.com.asc" + +RESTRICT="!test? ( test )" + +RDEPEND="sys-apps/pcsc-lite + dev-libs/openssl:=[-bindist(-)]" +DEPEND="${RDEPEND} + test? ( dev-libs/check )" +BDEPEND="dev-util/gengetopt + sys-apps/help2man + virtual/pkgconfig + test? ( dev-libs/check ) + verify-sig? ( >=sec-keys/openpgp-keys-yubico-20240628 )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.1-tests-optional.patch + "${FILESDIR}"/${PN}-2.1.1-ykcs11-threads.patch + "${FILESDIR}"/${PN}-2.3.0-no-Werror.patch +) + +src_configure() { + local mycmakeargs=( + -DBUILD_STATIC_LIB=OFF + -DBUILD_TESTING=$(usex test) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + echo "module: ${EPREFIX}/usr/$(get_libdir)/libykcs11.so" > ${PN}.module \ + || die "Failed to generate p11-kit module configuration" + insinto /usr/share/p11-kit/modules + doins ${PN}.module +} |