Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-tss/
Date: Tue, 22 Feb 2022 00:41:57
Message-Id: 1645489286.45cc55760105be4324047fcb5d10ed7f089eab00.sam@gentoo
1 commit: 45cc55760105be4324047fcb5d10ed7f089eab00
2 Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 19 04:45:51 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 22 00:21:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45cc5576
7
8 app-crypt/tpm2-tss: Bump to 3.2.0
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 app-crypt/tpm2-tss/Manifest | 1 +
15 app-crypt/tpm2-tss/tpm2-tss-3.2.0.ebuild | 82 ++++++++++++++++++++++++++++++++
16 2 files changed, 83 insertions(+)
17
18 diff --git a/app-crypt/tpm2-tss/Manifest b/app-crypt/tpm2-tss/Manifest
19 index bcc65f26237b..502da1e0675c 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.5.tar.gz 1439394 BLAKE2B 644d917f545e93dd81856611522329caf4ff038e4ddb04d761f03339cc7308095abc1c9b46a4d601cad67deea6f917ee5e4236c59f3d7042a7fdf2d33630dd3f SHA512 2c92af07ed1cc3665c19479c00ce5608883081f311192a264a4f7d9119c75ac582596c53b910534c4b66dbb60de2ffd3d6218169748332609c2e0fc89f519259
24 DIST tpm2-tss-2.4.6.tar.gz 1472883 BLAKE2B e007de07c759e77e377f8569c0c5d94ab57597ea3cb452fb598a47c9b404714a7816c86221d4eacad962436fc7625066d4066f433cd957c37b92d51b0455e2a0 SHA512 f7f7f067605ea30661ac891e22095238689856e22e45f11a6b603cb36ed1ae0724ae52d36f0ee5dd72208da8520457667676ae08107647faa5441a0c9b642f7a
25 DIST tpm2-tss-3.1.0.tar.gz 1584690 BLAKE2B cee2807a030b8bab653045cb11dfc7a6a3f7b1e60c1ce4650ba5f0549f29f36ff307e7d53fb5ef9c950b4dae720bdaf35f7cd1e59ebc07b3f16740035e1d5738 SHA512 8967f172c92f1e3e5ba324dbe8afe07bf1bc7179dd755cef9812105f32634f312ee7cc7dfe8e13af69dc219432463f5dc9b93477743de47aba6af1d70b252405
26 +DIST tpm2-tss-3.2.0.tar.gz 1629211 BLAKE2B a89aa4d89a50bdfb5a9652874d30e2138747bd022049f2be2d0b56e296329d0c41254033ec3a062dbd64fde54a62e952f54446c551e5788231827cd53fae045a SHA512 cabb411f074dfa94919ba914849aac77a0ac2f50622e28a1406cf575369148774748e0e2b7a7c566ec83561a96d4b883bac5a3b1763f4cf48668a0c5d68c0a23
27
28 diff --git a/app-crypt/tpm2-tss/tpm2-tss-3.2.0.ebuild b/app-crypt/tpm2-tss/tpm2-tss-3.2.0.ebuild
29 new file mode 100644
30 index 000000000000..f8f73394c96c
31 --- /dev/null
32 +++ b/app-crypt/tpm2-tss/tpm2-tss-3.2.0.ebuild
33 @@ -0,0 +1,82 @@
34 +# Copyright 1999-2022 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 +openssl mbedtls static-libs test"
49 +
50 +RESTRICT="!test? ( test )"
51 +
52 +REQUIRED_USE="^^ ( mbedtls openssl )
53 + fapi? ( openssl !mbedtls )"
54 +
55 +RDEPEND="acct-group/tss
56 + acct-user/tss
57 + fapi? ( dev-libs/json-c:=
58 + >=net-misc/curl-7.80.0 )
59 + mbedtls? ( net-libs/mbedtls:= )
60 + openssl? ( dev-libs/openssl:= )"
61 +
62 +DEPEND="${RDEPEND}
63 + test? ( app-crypt/swtpm
64 + dev-libs/uthash
65 + dev-util/cmocka
66 + fapi? ( >=net-misc/curl-7.80.0 ) )"
67 +BDEPEND="sys-apps/acl
68 + virtual/pkgconfig
69 + doc? ( app-doc/doxygen )"
70 +
71 +PATCHES=(
72 + "${FILESDIR}/${PN}-3.1.0-Dont-run-systemd-sysusers-in-Makefile.patch"
73 +)
74 +
75 +pkg_setup() {
76 + local CONFIG_CHECK=" \
77 + ~TCG_TPM
78 + "
79 + linux-info_pkg_setup
80 + kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required"
81 +}
82 +
83 +src_prepare() {
84 + default
85 + eautoreconf
86 +}
87 +
88 +src_configure() {
89 + econf \
90 + --localstatedir=/var \
91 + $(use_enable doc doxygen-doc) \
92 + $(use_enable fapi) \
93 + $(use_enable static-libs static) \
94 + $(use_enable test unit) \
95 + $(use_enable test integration) \
96 + $(use_enable test self-generated-certificate) \
97 + --disable-tcti-libtpms \
98 + --disable-defaultflags \
99 + --disable-weakcrypto \
100 + --with-crypto="$(usex mbedtls mbed ossl)" \
101 + --with-runstatedir=/run \
102 + --with-udevrulesdir="$(get_udevdir)/rules.d" \
103 + --with-udevrulesprefix=60- \
104 + --with-sysusersdir="/usr/lib/sysusers.d" \
105 + --with-tmpfilesdir="/usr/lib/tmpfiles.d"
106 +}
107 +
108 +src_install() {
109 + default
110 + find "${D}" -name '*.la' -delete || die
111 +}
112 +
113 +pkg_postinst() {
114 + tmpfiles_process tpm2-tss-fapi.conf
115 +}