1 |
commit: 078030681f037386b056a357f16b708010e98dd1 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 22 22:56:39 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 23 00:58:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07803068 |
7 |
|
8 |
app-crypt/tpm2-tss: Fix version information for system without git |
9 |
|
10 |
Closes: https://bugs.gentoo.org/833887 |
11 |
Closes: https://bugs.gentoo.org/833907 |
12 |
Closes: https://bugs.gentoo.org/833884 |
13 |
Closes: https://bugs.gentoo.org/833388 |
14 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
15 |
Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com> |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild | 85 +++++++++++++++++++++++++++++ |
19 |
1 file changed, 85 insertions(+) |
20 |
|
21 |
diff --git a/app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild b/app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 000000000000..4f8e544d9a79 |
24 |
--- /dev/null |
25 |
+++ b/app-crypt/tpm2-tss/tpm2-tss-3.2.0-r1.ebuild |
26 |
@@ -0,0 +1,85 @@ |
27 |
+# Copyright 1999-2022 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+inherit autotools linux-info tmpfiles udev |
33 |
+ |
34 |
+DESCRIPTION="TCG Trusted Platform Module 2.0 Software Stack" |
35 |
+HOMEPAGE="https://github.com/tpm2-software/tpm2-tss" |
36 |
+SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="BSD-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
41 |
+IUSE="doc +fapi +openssl mbedtls static-libs test" |
42 |
+ |
43 |
+RESTRICT="!test? ( test )" |
44 |
+ |
45 |
+REQUIRED_USE="^^ ( mbedtls openssl ) |
46 |
+ fapi? ( openssl !mbedtls )" |
47 |
+ |
48 |
+RDEPEND="acct-group/tss |
49 |
+ acct-user/tss |
50 |
+ fapi? ( dev-libs/json-c:= |
51 |
+ >=net-misc/curl-7.80.0 ) |
52 |
+ mbedtls? ( net-libs/mbedtls:= ) |
53 |
+ openssl? ( dev-libs/openssl:= )" |
54 |
+ |
55 |
+DEPEND="${RDEPEND} |
56 |
+ test? ( app-crypt/swtpm |
57 |
+ dev-libs/uthash |
58 |
+ dev-util/cmocka |
59 |
+ fapi? ( >=net-misc/curl-7.80.0 ) )" |
60 |
+BDEPEND="sys-apps/acl |
61 |
+ virtual/pkgconfig |
62 |
+ doc? ( app-doc/doxygen )" |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${PN}-3.1.0-Dont-run-systemd-sysusers-in-Makefile.patch" |
66 |
+) |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ local CONFIG_CHECK=" \ |
70 |
+ ~TCG_TPM |
71 |
+ " |
72 |
+ linux-info_pkg_setup |
73 |
+ kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required" |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ sed -i \ |
79 |
+ "s/m4_esyscmd_s(\[git describe --tags --always --dirty\])/${PV}/" \ |
80 |
+ "configure.ac" || die |
81 |
+ eautoreconf |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ econf \ |
86 |
+ --localstatedir=/var \ |
87 |
+ $(use_enable doc doxygen-doc) \ |
88 |
+ $(use_enable fapi) \ |
89 |
+ $(use_enable static-libs static) \ |
90 |
+ $(use_enable test unit) \ |
91 |
+ $(use_enable test integration) \ |
92 |
+ $(use_enable test self-generated-certificate) \ |
93 |
+ --disable-tcti-libtpms \ |
94 |
+ --disable-defaultflags \ |
95 |
+ --disable-weakcrypto \ |
96 |
+ --with-crypto="$(usex mbedtls mbed 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 |
+} |