diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-09-06 22:38:16 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-09-06 22:39:26 +0200 |
commit | e1978be7e390b24a4edbccb0db659e6ba7532f34 (patch) | |
tree | da95494f2d60ec2e04120a35bc7854c5db4caa68 /sys-auth | |
parent | sys-kernel/bliss-initramfs: bumping to 9.3.0 (diff) | |
download | gentoo-e1978be7e390b24a4edbccb0db659e6ba7532f34.tar.gz gentoo-e1978be7e390b24a4edbccb0db659e6ba7532f34.tar.bz2 gentoo-e1978be7e390b24a4edbccb0db659e6ba7532f34.zip |
sys-auth/yubico-piv-tool: make p11-kit aware of libykcs11
Closes: https://bugs.gentoo.org/701058
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild new file mode 100644 index 000000000000..8065e7bafa77 --- /dev/null +++ b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.1.1-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Command line tool for the YubiKey PIV application" +SRC_URI="https://github.com/Yubico/yubico-piv-tool/archive/yubico-piv-tool-${PV}.tar.gz" +HOMEPAGE="https://developers.yubico.com/yubico-piv-tool/ https://github.com/Yubico/yubico-piv-tool" + +LICENSE="BSD-2" +SLOT="0/1" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/openssl:0=[-bindist] + sys-apps/pcsc-lite +" +DEPEND="${RDEPEND} + dev-util/gengetopt + sys-apps/help2man + virtual/pkgconfig + test? ( dev-libs/check ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.1-install-man-page.patch + "${FILESDIR}"/${PN}-2.1.1-tests-optional.patch +) + +S="${WORKDIR}/${PN}-${P}" + +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 +} |