1 |
commit: 18d079c6cf72da1fea9aa5a5db7fedc6da564475 |
2 |
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat May 22 01:09:44 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=18d079c6 |
7 |
|
8 |
app-crypt/tpm2-tss: Bump to 3.1.0 |
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 |
...1.0-Dont-run-systemd-sysusers-in-Makefile.patch | 29 +++++++++ |
16 |
app-crypt/tpm2-tss/tpm2-tss-3.1.0.ebuild | 75 ++++++++++++++++++++++ |
17 |
3 files changed, 105 insertions(+) |
18 |
|
19 |
diff --git a/app-crypt/tpm2-tss/Manifest b/app-crypt/tpm2-tss/Manifest |
20 |
index 25dc36ae177..24f31fe276b 100644 |
21 |
--- a/app-crypt/tpm2-tss/Manifest |
22 |
+++ b/app-crypt/tpm2-tss/Manifest |
23 |
@@ -2,3 +2,4 @@ DIST tpm2-tss-2.4.3.tar.gz 1439120 BLAKE2B 21acce29f96e8039124874c024b43eb8d2c4f |
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 |
+DIST tpm2-tss-3.1.0.tar.gz 1584690 BLAKE2B cee2807a030b8bab653045cb11dfc7a6a3f7b1e60c1ce4650ba5f0549f29f36ff307e7d53fb5ef9c950b4dae720bdaf35f7cd1e59ebc07b3f16740035e1d5738 SHA512 8967f172c92f1e3e5ba324dbe8afe07bf1bc7179dd755cef9812105f32634f312ee7cc7dfe8e13af69dc219432463f5dc9b93477743de47aba6af1d70b252405 |
28 |
|
29 |
diff --git a/app-crypt/tpm2-tss/files/tpm2-tss-3.1.0-Dont-run-systemd-sysusers-in-Makefile.patch b/app-crypt/tpm2-tss/files/tpm2-tss-3.1.0-Dont-run-systemd-sysusers-in-Makefile.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..b66b6e79c14 |
32 |
--- /dev/null |
33 |
+++ b/app-crypt/tpm2-tss/files/tpm2-tss-3.1.0-Dont-run-systemd-sysusers-in-Makefile.patch |
34 |
@@ -0,0 +1,29 @@ |
35 |
+diff --git a/Makefile.am b/Makefile.am |
36 |
+index 183289f7..c791896c 100644 |
37 |
+--- a/Makefile.am |
38 |
++++ b/Makefile.am |
39 |
+@@ -689,24 +689,6 @@ endif #FAPI |
40 |
+ EXTRA_DIST += dist/tpm-udev.rules |
41 |
+ |
42 |
+ install-dirs: |
43 |
+-if HOSTOS_LINUX |
44 |
+-if SYSD_SYSUSERS |
45 |
+- @echo "systemd-sysusers $(DESTDIR)$(sysconfdir)/sysusers.d/tpm2-tss.conf" |
46 |
+- @systemd-sysusers $(DESTDIR)$(sysconfdir)/sysusers.d/tpm2-tss.conf || echo "WARNING Failed to create the tss user and group" |
47 |
+-else |
48 |
+- @echo "call make_tss_user_and_group" |
49 |
+- @$(call make_tss_user_and_group) || echo "WARNING Failed to create the tss user and group" |
50 |
+-endif |
51 |
+-if SYSD_TMPFILES |
52 |
+- @echo "systemd-tmpfiles --create $(DESTDIR)$(sysconfdir)/tmpfiles.d/tpm2-tss-fapi.conf" |
53 |
+- @systemd-tmpfiles --create $(DESTDIR)$(sysconfdir)/tmpfiles.d/tpm2-tss-fapi.conf|| echo "WARNING Failed to create the FAPI directories with the correct permissions" |
54 |
+-else |
55 |
+- @echo "(call make_fapi_dirs) && (call set_fapi_permissions)" |
56 |
+- @-$(call make_fapi_dirs) && $(call set_fapi_permissions) || echo "WARNING Failed to create the FAPI directories with the correct permissions" |
57 |
+-endif |
58 |
+- @echo "call check_fapi_dirs" |
59 |
+- @$(call check_fapi_dirs) |
60 |
+-endif |
61 |
+ |
62 |
+ install-data-hook: install-dirs |
63 |
+ -if [ ! -z "$(udevrulesprefix)" ]; then \ |
64 |
|
65 |
diff --git a/app-crypt/tpm2-tss/tpm2-tss-3.1.0.ebuild b/app-crypt/tpm2-tss/tpm2-tss-3.1.0.ebuild |
66 |
new file mode 100644 |
67 |
index 00000000000..1ca59fe382e |
68 |
--- /dev/null |
69 |
+++ b/app-crypt/tpm2-tss/tpm2-tss-3.1.0.ebuild |
70 |
@@ -0,0 +1,75 @@ |
71 |
+# Copyright 1999-2021 Gentoo Authors |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+ |
74 |
+EAPI=7 |
75 |
+ |
76 |
+inherit autotools linux-info tmpfiles udev |
77 |
+ |
78 |
+DESCRIPTION="TCG Trusted Platform Module 2.0 Software Stack" |
79 |
+HOMEPAGE="https://github.com/tpm2-software/tpm2-tss" |
80 |
+SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz" |
81 |
+ |
82 |
+LICENSE="BSD-2" |
83 |
+SLOT="0" |
84 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
85 |
+IUSE="doc +fapi +openssl mbedtls static-libs test" |
86 |
+ |
87 |
+RESTRICT="!test? ( test )" |
88 |
+ |
89 |
+REQUIRED_USE="^^ ( mbedtls openssl ) |
90 |
+ fapi? ( openssl !mbedtls )" |
91 |
+ |
92 |
+RDEPEND="acct-group/tss |
93 |
+ acct-user/tss |
94 |
+ fapi? ( dev-libs/json-c |
95 |
+ net-misc/curl ) |
96 |
+ mbedtls? ( net-libs/mbedtls:= ) |
97 |
+ openssl? ( dev-libs/openssl:= )" |
98 |
+DEPEND="${RDEPEND} |
99 |
+ test? ( dev-util/cmocka )" |
100 |
+BDEPEND="virtual/pkgconfig |
101 |
+ doc? ( app-doc/doxygen )" |
102 |
+ |
103 |
+PATCHES=( |
104 |
+ "${FILESDIR}/${PN}-3.1.0-Dont-run-systemd-sysusers-in-Makefile.patch" |
105 |
+) |
106 |
+ |
107 |
+pkg_setup() { |
108 |
+ local CONFIG_CHECK=" \ |
109 |
+ ~TCG_TPM |
110 |
+ " |
111 |
+ linux-info_pkg_setup |
112 |
+ kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required" |
113 |
+} |
114 |
+ |
115 |
+src_prepare() { |
116 |
+ default |
117 |
+ eautoreconf |
118 |
+} |
119 |
+ |
120 |
+src_configure() { |
121 |
+ econf \ |
122 |
+ --localstatedir=/var \ |
123 |
+ $(use_enable doc doxygen-doc) \ |
124 |
+ $(use_enable fapi) \ |
125 |
+ $(use_enable static-libs static) \ |
126 |
+ $(use_enable test unit) \ |
127 |
+ --disable-tcti-mssim \ |
128 |
+ --disable-defaultflags \ |
129 |
+ --disable-weakcrypto \ |
130 |
+ --with-crypto="$(usex mbedtls mbed ossl)" \ |
131 |
+ --with-runstatedir=/run \ |
132 |
+ --with-udevrulesdir="$(get_udevdir)/rules.d" \ |
133 |
+ --with-udevrulesprefix=60- \ |
134 |
+ --with-sysusersdir="/usr/lib/sysusers.d" \ |
135 |
+ --with-tmpfilesdir="/usr/lib/tmpfiles.d" |
136 |
+} |
137 |
+ |
138 |
+src_install() { |
139 |
+ default |
140 |
+ find "${D}" -name '*.la' -delete || die |
141 |
+} |
142 |
+ |
143 |
+pkg_postinst() { |
144 |
+ tmpfiles_process tpm2-tss-fapi.conf |
145 |
+} |