1 |
commit: a37c22e60aa71752af57194b9231272b80e0d4ac |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 3 00:23:11 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 3 00:24:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a37c22e6 |
7 |
|
8 |
sys-auth/yubico-piv-tool: add 2.3.0 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
sys-auth/yubico-piv-tool/Manifest | 1 + |
13 |
.../yubico-piv-tool/yubico-piv-tool-2.3.0.ebuild | 48 ++++++++++++++++++++++ |
14 |
2 files changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/sys-auth/yubico-piv-tool/Manifest b/sys-auth/yubico-piv-tool/Manifest |
17 |
index f2a0fe19e931..a255bd8c44b4 100644 |
18 |
--- a/sys-auth/yubico-piv-tool/Manifest |
19 |
+++ b/sys-auth/yubico-piv-tool/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST yubico-piv-tool-2.2.1.tar.gz 1310253 BLAKE2B f5e5d2c351200b2fc57aafdd02a604ee5f15cd8f1a0cb552133a367da2cbf7fe248ec9eba649427b30e8322126be1f9677fd471b38db1f00cda37ccb0ac413c9 SHA512 495a269194d8d9d8957542611959b3fc8e0ae54d1cab5c041f2604590cc740e89e0956b9d595f8a06f138e92b8804def52aae797f199479a81fc1fc3d57bfb96 |
22 |
+DIST yubico-piv-tool-2.3.0.tar.gz 1329085 BLAKE2B b084982139012b4993a023078fd8ce7c106cb5c1e71475f26398012b86fc65e985a7c51300b3b122884e35327293737ed48b31bfdc83326dda9c9c05f2eb984d SHA512 72125df922e32322563e95286e04d19e56db9c6e66ae9003ae7dfffac47425b8b2bc7c71ecfa603f96f3a24c985fca1f436580dc579ff44196dcde7aeceee7f3 |
23 |
|
24 |
diff --git a/sys-auth/yubico-piv-tool/yubico-piv-tool-2.3.0.ebuild b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..94648193eb08 |
27 |
--- /dev/null |
28 |
+++ b/sys-auth/yubico-piv-tool/yubico-piv-tool-2.3.0.ebuild |
29 |
@@ -0,0 +1,48 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit cmake |
36 |
+ |
37 |
+DESCRIPTION="Command-line tool and p11-kit module for the YubiKey PIV application" |
38 |
+HOMEPAGE="https://developers.yubico.com/yubico-piv-tool/ https://github.com/Yubico/yubico-piv-tool" |
39 |
+SRC_URI="https://developers.yubico.com/${PN}/Releases/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD-2" |
42 |
+SLOT="0/2" |
43 |
+KEYWORDS="~amd64 ~riscv" |
44 |
+IUSE="test" |
45 |
+ |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+RDEPEND="sys-apps/pcsc-lite |
49 |
+ dev-libs/openssl:=[-bindist(-)]" |
50 |
+DEPEND="${RDEPEND} |
51 |
+ test? ( dev-libs/check )" |
52 |
+BDEPEND="dev-util/gengetopt |
53 |
+ sys-apps/help2man |
54 |
+ virtual/pkgconfig" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}"/${PN}-2.1.1-tests-optional.patch |
58 |
+ "${FILESDIR}"/${PN}-2.1.1-ykcs11-threads.patch |
59 |
+ "${FILESDIR}"/${PN}-2.3.0-no-Werror.patch |
60 |
+) |
61 |
+ |
62 |
+src_configure() { |
63 |
+ local mycmakeargs=( |
64 |
+ -DBUILD_STATIC_LIB=OFF |
65 |
+ -DBUILD_TESTING=$(usex test) |
66 |
+ ) |
67 |
+ cmake_src_configure |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ cmake_src_install |
72 |
+ |
73 |
+ echo "module: ${EPREFIX}/usr/$(get_libdir)/libykcs11.so" > ${PN}.module \ |
74 |
+ || die "Failed to generate p11-kit module configuration" |
75 |
+ insinto /usr/share/p11-kit/modules |
76 |
+ doins ${PN}.module |
77 |
+} |