1 |
commit: e7e6f8fcfaf24a904171160d9be9f3426c630c25 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jan 31 16:12:00 2023 +0000 |
4 |
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 07:40:48 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7e6f8fc |
7 |
|
8 |
app-crypt/tpm2-tss: add 4.0.1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/891519 |
11 |
Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/29358 |
13 |
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> |
14 |
|
15 |
app-crypt/tpm2-tss/Manifest | 1 + |
16 |
app-crypt/tpm2-tss/tpm2-tss-4.0.1.ebuild | 93 ++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 94 insertions(+) |
18 |
|
19 |
diff --git a/app-crypt/tpm2-tss/Manifest b/app-crypt/tpm2-tss/Manifest |
20 |
index e89e30c7cc98..b76f835b2de8 100644 |
21 |
--- a/app-crypt/tpm2-tss/Manifest |
22 |
+++ b/app-crypt/tpm2-tss/Manifest |
23 |
@@ -2,3 +2,4 @@ DIST tpm2-tss-3.2.0.tar.gz 1629211 BLAKE2B a89aa4d89a50bdfb5a9652874d30e2138747b |
24 |
DIST tpm2-tss-3.2.1.tar.gz 1638566 BLAKE2B bdf5eeca1e7269a639cefd8b4a38e16c5b7c08518411a22718dcd14bc9fe3b621eee77cdd98f9ece0f6d9a52319bce5e0a502ff9a6e4ba6716341bd01f5967a9 SHA512 dbe5e29349d78621fcd608d9c75fa58f5e6462264b9654ca85af9f9faafebe1107d9f735a1b6ad4956a089b0dd96cbda3f46364cabd846f9fb29a419b074c78f |
25 |
DIST tpm2-tss-3.2.2.tar.gz 1638857 BLAKE2B 164c54b7c43a3379a9aae86fd39788a0906030bc2df9a96d7264635b0e281088f46f470d28098e194e77067f1c4412a8f1ef30d7877eb2410aeefee2d3639409 SHA512 efa71d04de907f74cf0e451a55124cb6fa804fddc2530ecc728a76030e0ae1e8597048c81cd4316397318f273e95754cf85745fc49966208b60babd398989aa6 |
26 |
DIST tpm2-tss-4.0.0.tar.gz 1787084 BLAKE2B 9b9d466eab77ae71ec916c911f9e1321013fe49594e103610fcb03492a2f20e811a2faddc2237519b710a1931226d5664581cd671d2318319a92e16bcb5ccfb4 SHA512 1058aa74e2358bfb60a17b85291dc642d40b49bb076453810c5b2b0c37c72671c319d783c879f719ccbe7aaeb5f464e0144c6ee12d28242b477be5d579cb3f9c |
27 |
+DIST tpm2-tss-4.0.1.tar.gz 1787139 BLAKE2B 627cdefeff6c64148f9da1425922a0a7a72debcee4930ffab208a3b9b66127c2d4f923e3e105bfd45410cdb13c19cb40cc15a720e9a05dd32ff622dabf5fcc32 SHA512 ed6ddc52cb0e8c1082a4bb001e1225eb9905fd2380da88db5fd69ff5b5d9d43a93eb67b634e49d53eb5d586832da3aef2c4c7e5f18d51bb730481f8913319d7d |
28 |
|
29 |
diff --git a/app-crypt/tpm2-tss/tpm2-tss-4.0.1.ebuild b/app-crypt/tpm2-tss/tpm2-tss-4.0.1.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..ba650e60ee44 |
32 |
--- /dev/null |
33 |
+++ b/app-crypt/tpm2-tss/tpm2-tss-4.0.1.ebuild |
34 |
@@ -0,0 +1,93 @@ |
35 |
+# Copyright 1999-2023 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+inherit autotools flag-o-matic linux-info multilib-minimal tmpfiles udev |
41 |
+ |
42 |
+DESCRIPTION="TCG Trusted Platform Module 2.0 Software Stack" |
43 |
+HOMEPAGE="https://github.com/tpm2-software/tpm2-tss" |
44 |
+SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD-2" |
47 |
+SLOT="0/4" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" |
49 |
+IUSE="doc +fapi +openssl mbedtls +policy static-libs test" |
50 |
+ |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+REQUIRED_USE="^^ ( mbedtls openssl ) |
54 |
+ fapi? ( openssl !mbedtls ) |
55 |
+ policy? ( openssl !mbedtls )" |
56 |
+ |
57 |
+RDEPEND="acct-group/tss |
58 |
+ acct-user/tss |
59 |
+ fapi? ( dev-libs/json-c:=[${MULTILIB_USEDEP}] |
60 |
+ >=net-misc/curl-7.80.0[${MULTILIB_USEDEP}] ) |
61 |
+ mbedtls? ( net-libs/mbedtls:=[${MULTILIB_USEDEP}] ) |
62 |
+ openssl? ( dev-libs/openssl:=[${MULTILIB_USEDEP}] )" |
63 |
+ |
64 |
+DEPEND="${RDEPEND} |
65 |
+ test? ( app-crypt/swtpm |
66 |
+ dev-libs/uthash |
67 |
+ dev-util/cmocka |
68 |
+ fapi? ( >=net-misc/curl-7.80.0 ) )" |
69 |
+BDEPEND="sys-apps/acl |
70 |
+ virtual/pkgconfig |
71 |
+ doc? ( app-doc/doxygen )" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}/${PN}-4.0.0-Dont-install-files-into-run.patch" |
75 |
+ ) |
76 |
+ |
77 |
+pkg_setup() { |
78 |
+ local CONFIG_CHECK=" \ |
79 |
+ ~TCG_TPM |
80 |
+ " |
81 |
+ linux-info_pkg_setup |
82 |
+ kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required" |
83 |
+} |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ eautoreconf |
87 |
+ default |
88 |
+} |
89 |
+ |
90 |
+multilib_src_configure() { |
91 |
+ # tests fail with LTO enabbled. See bug 865275 and 865279 |
92 |
+ filter-lto |
93 |
+ |
94 |
+ ECONF_SOURCE=${S} econf \ |
95 |
+ --localstatedir=/var \ |
96 |
+ $(multilib_native_use_enable doc doxygen-doc) \ |
97 |
+ $(use_enable fapi) \ |
98 |
+ $(use_enable policy) \ |
99 |
+ $(use_enable static-libs static) \ |
100 |
+ $(multilib_native_use_enable test unit) \ |
101 |
+ $(multilib_native_use_enable test integration) \ |
102 |
+ $(multilib_native_use_enable test self-generated-certificate) \ |
103 |
+ --disable-tcti-libtpms \ |
104 |
+ --disable-defaultflags \ |
105 |
+ --disable-weakcrypto \ |
106 |
+ --with-crypto="$(usex mbedtls mbed ossl)" \ |
107 |
+ --with-runstatedir=/run \ |
108 |
+ --with-udevrulesdir="$(get_udevdir)/rules.d" \ |
109 |
+ --with-udevrulesprefix=60- \ |
110 |
+ --without-sysusersdir \ |
111 |
+ --with-tmpfilesdir="/usr/lib/tmpfiles.d" |
112 |
+} |
113 |
+ |
114 |
+multilib_src_install() { |
115 |
+ default |
116 |
+ keepdir /var/lib/tpm2-tss/system/keystore |
117 |
+ find "${ED}" -name '*.la' -delete || die |
118 |
+} |
119 |
+ |
120 |
+pkg_postinst() { |
121 |
+ tmpfiles_process tpm2-tss-fapi.conf |
122 |
+ udev_reload |
123 |
+} |
124 |
+ |
125 |
+pkg_postrm() { |
126 |
+ udev_reload |
127 |
+} |