1 |
commit: 4dbbe69b1c02a809de452c3da26456bee8392713 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat May 22 00:48:37 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 08:13:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4dbbe69b |
7 |
|
8 |
app-crypt/tpm2-tss: Bump to 2.4.6 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
app-crypt/tpm2-tss/Manifest | 1 + |
15 |
app-crypt/tpm2-tss/tpm2-tss-2.4.6.ebuild | 78 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 79 insertions(+) |
17 |
|
18 |
diff --git a/app-crypt/tpm2-tss/Manifest b/app-crypt/tpm2-tss/Manifest |
19 |
index 96b39717733..25dc36ae177 100644 |
20 |
--- a/app-crypt/tpm2-tss/Manifest |
21 |
+++ b/app-crypt/tpm2-tss/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST tpm2-tss-2.4.3.tar.gz 1439120 BLAKE2B 21acce29f96e8039124874c024b43eb8d2c4ffda27db58bb4f34446747c0fa6953c6ca390f8e87d22c1349123bada81051b119eaf7a28c7d1ad8a9195287c312 SHA512 4adaeb2724b720017e9d488f66de879ebdc0dbc2a4f7536493214913a49d2c631e302be26f710f0f45b0d514212cb036ca7ba9715ee13c29dda1d4a61595aa27 |
24 |
DIST tpm2-tss-2.4.5.tar.gz 1439394 BLAKE2B 644d917f545e93dd81856611522329caf4ff038e4ddb04d761f03339cc7308095abc1c9b46a4d601cad67deea6f917ee5e4236c59f3d7042a7fdf2d33630dd3f SHA512 2c92af07ed1cc3665c19479c00ce5608883081f311192a264a4f7d9119c75ac582596c53b910534c4b66dbb60de2ffd3d6218169748332609c2e0fc89f519259 |
25 |
+DIST tpm2-tss-2.4.6.tar.gz 1472883 BLAKE2B e007de07c759e77e377f8569c0c5d94ab57597ea3cb452fb598a47c9b404714a7816c86221d4eacad962436fc7625066d4066f433cd957c37b92d51b0455e2a0 SHA512 f7f7f067605ea30661ac891e22095238689856e22e45f11a6b603cb36ed1ae0724ae52d36f0ee5dd72208da8520457667676ae08107647faa5441a0c9b642f7a |
26 |
DIST tpm2-tss-3.0.3.tar.gz 1489136 BLAKE2B 5bf24cf2c36e579388f62eea06ab3811eab1a89c0cd5d12f6f61cee7f6836487f25fefb864432ff8920931ff37327ca867d1d40fad89e0305d5e1edfb8f0e883 SHA512 54a926db55790250d69c81ac6e436556072057dd7c610d2718689030287dee69d533d4e04b3325dd73d9fc7635dad0bf0a7bfb082957bb51cb420efdb68efaf8 |
27 |
|
28 |
diff --git a/app-crypt/tpm2-tss/tpm2-tss-2.4.6.ebuild b/app-crypt/tpm2-tss/tpm2-tss-2.4.6.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..698ea26d563 |
31 |
--- /dev/null |
32 |
+++ b/app-crypt/tpm2-tss/tpm2-tss-2.4.6.ebuild |
33 |
@@ -0,0 +1,78 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit autotools linux-info tmpfiles udev |
40 |
+ |
41 |
+DESCRIPTION="TCG Trusted Platform Module 2.0 Software Stack" |
42 |
+HOMEPAGE="https://github.com/tpm2-software/tpm2-tss" |
43 |
+SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
48 |
+IUSE="doc +fapi gcrypt +openssl static-libs test" |
49 |
+ |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+REQUIRED_USE="^^ ( gcrypt openssl ) |
53 |
+ fapi? ( openssl !gcrypt )" |
54 |
+ |
55 |
+RDEPEND="acct-group/tss |
56 |
+ acct-user/tss |
57 |
+ fapi? ( |
58 |
+ dev-libs/json-c |
59 |
+ net-misc/curl |
60 |
+ ) |
61 |
+ gcrypt? ( dev-libs/libgcrypt:0= ) |
62 |
+ openssl? ( dev-libs/openssl:0= )" |
63 |
+DEPEND="${RDEPEND} |
64 |
+ test? ( dev-util/cmocka )" |
65 |
+BDEPEND="virtual/pkgconfig |
66 |
+ doc? ( app-doc/doxygen )" |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}/${PN}-2.4.1-configure.ac-wrap-PKG_CHECK_MODULES-in-braces.patch" |
70 |
+ "${FILESDIR}/${PN}-2.4.2-Dont-run-systemd-sysusers-in-Makefile.patch" |
71 |
+) |
72 |
+ |
73 |
+pkg_setup() { |
74 |
+ local CONFIG_CHECK=" \ |
75 |
+ ~TCG_TPM |
76 |
+ " |
77 |
+ linux-info_pkg_setup |
78 |
+ kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required" |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ eautoreconf |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ econf \ |
88 |
+ --localstatedir=/var \ |
89 |
+ $(use_enable doc doxygen-doc) \ |
90 |
+ $(use_enable fapi) \ |
91 |
+ $(use_enable static-libs static) \ |
92 |
+ $(use_enable test unit) \ |
93 |
+ --disable-tcti-mssim \ |
94 |
+ --disable-defaultflags \ |
95 |
+ --disable-weakcrypto \ |
96 |
+ --with-crypto="$(usex gcrypt gcrypt ossl)" \ |
97 |
+ --with-runstatedir=/run \ |
98 |
+ --with-udevrulesdir="$(get_udevdir)/rules.d" \ |
99 |
+ --with-udevrulesprefix=60- \ |
100 |
+ --with-sysusersdir="/usr/lib/sysusers.d" \ |
101 |
+ --with-tmpfilesdir="/usr/lib/tmpfiles.d" |
102 |
+} |
103 |
+ |
104 |
+src_install() { |
105 |
+ default |
106 |
+ find "${D}" -name '*.la' -delete || die |
107 |
+} |
108 |
+ |
109 |
+pkg_postinst() { |
110 |
+ tmpfiles_process tpm2-tss-fapi.conf |
111 |
+} |