public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-tss/
Date: Sat, 23 Apr 2022 21:34:19 +0000 (UTC)	[thread overview]
Message-ID: <1650749403.91beeccff2975bef50c7bf956242d456c67bcfdc.sam@gentoo> (raw)

commit:     91beeccff2975bef50c7bf956242d456c67bcfdc
Author:     Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Sat Apr 23 19:34:17 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 23 21:30:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91beeccf

app-crypt/tpm2-tss: add 3.1.1

Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-crypt/tpm2-tss/Manifest              |  1 +
 app-crypt/tpm2-tss/tpm2-tss-3.1.1.ebuild | 94 ++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)

diff --git a/app-crypt/tpm2-tss/Manifest b/app-crypt/tpm2-tss/Manifest
index f8a99f762812..ea2dd7371c8c 100644
--- a/app-crypt/tpm2-tss/Manifest
+++ b/app-crypt/tpm2-tss/Manifest
@@ -1,3 +1,4 @@
 DIST tpm2-tss-2.4.6.tar.gz 1472883 BLAKE2B e007de07c759e77e377f8569c0c5d94ab57597ea3cb452fb598a47c9b404714a7816c86221d4eacad962436fc7625066d4066f433cd957c37b92d51b0455e2a0 SHA512 f7f7f067605ea30661ac891e22095238689856e22e45f11a6b603cb36ed1ae0724ae52d36f0ee5dd72208da8520457667676ae08107647faa5441a0c9b642f7a
 DIST tpm2-tss-3.1.0.tar.gz 1584690 BLAKE2B cee2807a030b8bab653045cb11dfc7a6a3f7b1e60c1ce4650ba5f0549f29f36ff307e7d53fb5ef9c950b4dae720bdaf35f7cd1e59ebc07b3f16740035e1d5738 SHA512 8967f172c92f1e3e5ba324dbe8afe07bf1bc7179dd755cef9812105f32634f312ee7cc7dfe8e13af69dc219432463f5dc9b93477743de47aba6af1d70b252405
+DIST tpm2-tss-3.1.1.tar.gz 1592495 BLAKE2B 0f021516700ca14a1c987d7078f1402eb2a6e2f7fc325df3ace3bd9104fe5a2211aa335af0b7f05f5e0d8c2038e0033ba498551021fa2fb5947c213813ef8796 SHA512 3010a32be2d41c2f2e06c2b745a18b3f36aaa0aec7568361902deed26779e8f76c84076ceb2a9447df8194cfc9d3b50116b7311d51d83d63037dbdca60c1384e
 DIST tpm2-tss-3.2.0.tar.gz 1629211 BLAKE2B a89aa4d89a50bdfb5a9652874d30e2138747bd022049f2be2d0b56e296329d0c41254033ec3a062dbd64fde54a62e952f54446c551e5788231827cd53fae045a SHA512 cabb411f074dfa94919ba914849aac77a0ac2f50622e28a1406cf575369148774748e0e2b7a7c566ec83561a96d4b883bac5a3b1763f4cf48668a0c5d68c0a23

diff --git a/app-crypt/tpm2-tss/tpm2-tss-3.1.1.ebuild b/app-crypt/tpm2-tss/tpm2-tss-3.1.1.ebuild
new file mode 100644
index 000000000000..7d2a404b0018
--- /dev/null
+++ b/app-crypt/tpm2-tss/tpm2-tss-3.1.1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools linux-info multilib-minimal tmpfiles udev
+
+DESCRIPTION="TCG Trusted Platform Module 2.0 Software Stack"
+HOMEPAGE="https://github.com/tpm2-software/tpm2-tss"
+SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0/3"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="doc +fapi +openssl mbedtls static-libs test"
+
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="^^ ( mbedtls openssl )
+		fapi? ( openssl !mbedtls )"
+
+RDEPEND="acct-group/tss
+	acct-user/tss
+	fapi? ( dev-libs/json-c:=[${MULTILIB_USEDEP}]
+		net-misc/curl[${MULTILIB_USEDEP}] )
+	mbedtls? ( net-libs/mbedtls:=[${MULTILIB_USEDEP}] )
+	openssl? ( dev-libs/openssl:=[${MULTILIB_USEDEP}] )"
+
+DEPEND="${RDEPEND}
+	test? ( app-crypt/swtpm
+		dev-libs/uthash
+		dev-util/cmocka
+		fapi? ( net-misc/curl ) )"
+BDEPEND="sys-apps/acl
+	virtual/pkgconfig
+	doc? ( app-doc/doxygen )"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-3.1.0-Dont-run-systemd-sysusers-in-Makefile.patch"
+)
+
+pkg_setup() {
+	local CONFIG_CHECK=" \
+		~TCG_TPM
+	"
+	linux-info_pkg_setup
+	kernel_is ge 4 12 0 || ewarn "At least kernel 4.12.0 is required"
+}
+
+src_prepare() {
+	default
+
+	# See bug #833887 (and similar); eautoreconf means .pc file gets wrong version.
+	sed -i \
+	"s/m4_esyscmd_s(\[git describe --tags --always --dirty\])/${PV}/" \
+		"configure.ac" || die
+
+	eautoreconf
+}
+
+multilib_src_configure() {
+	ECONF_SOURCE=${S} econf \
+		--localstatedir=/var \
+		$(use_enable doc doxygen-doc) \
+		$(use_enable fapi) \
+		$(use_enable static-libs static) \
+		$(multilib_native_use_enable test unit) \
+		$(multilib_native_use_enable test integration) \
+		$(multilib_native_use_enable test self-generated-certificate) \
+		--disable-defaultflags \
+		--disable-weakcrypto \
+		--with-crypto="$(usex mbedtls mbed ossl)" \
+		--with-runstatedir=/run \
+		--with-udevrulesdir="$(get_udevdir)/rules.d" \
+		--with-udevrulesprefix=60- \
+		--with-sysusersdir="/usr/lib/sysusers.d" \
+		--with-tmpfilesdir="/usr/lib/tmpfiles.d"
+}
+
+multilib_src_install() {
+	default
+
+	if [[ ${PV} != $(sed -n -e 's/^Version: //p' "${ED}/usr/$(get_libdir)/pkgconfig/tss2-sys.pc" || die) ]] ; then
+		# Safeguard for bug #833887
+		die "pkg-config file version doesn't match ${PV}! Please report a bug!"
+	fi
+
+	find "${D}" -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+	tmpfiles_process tpm2-tss-fapi.conf
+	udev_reload
+}


             reply	other threads:[~2022-04-23 21:34 UTC|newest]

Thread overview: 112+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-23 21:34 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-29  6:22 [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-tss/ Joonas Niilola
2024-07-29  6:15 Joonas Niilola
2024-07-29  0:32 Sam James
2024-07-29  0:32 Sam James
2024-07-28 23:58 Jakov Smolić
2024-06-11 22:25 Sam James
2024-05-24  6:53 Sam James
2024-05-24  6:53 Sam James
2024-05-07 17:38 David Seifert
2024-05-07 10:29 Sam James
2024-05-07 10:29 Sam James
2024-05-07 10:29 Sam James
2024-05-07  5:53 Joonas Niilola
2024-05-07  5:53 Joonas Niilola
2024-05-05 11:36 Sam James
2023-12-02 21:14 Sam James
2023-05-29 21:58 Sam James
2023-05-27 15:55 Sam James
2023-05-25 21:52 Sam James
2023-05-25  3:20 Sam James
2023-05-24 18:46 Arthur Zamarin
2023-05-24 18:46 Arthur Zamarin
2023-03-11 17:15 Sam James
2023-02-16 10:01 Sam James
2023-02-16 10:01 Sam James
2023-02-16  4:18 Sam James
2023-02-16  4:18 Sam James
2023-02-16  3:30 Sam James
2023-02-01  7:57 Viorel Munteanu
2023-02-01  7:57 Viorel Munteanu
2022-11-24 12:00 WANG Xuerui
2022-10-01  6:19 Arthur Zamarin
2022-10-01  5:49 Joonas Niilola
2022-10-01  5:49 Joonas Niilola
2022-10-01  5:36 Sam James
2022-10-01  5:07 Sam James
2022-09-27 21:44 Sam James
2022-09-27 21:44 Sam James
2022-08-30 19:06 Sam James
2022-06-28 18:18 Matt Turner
2022-06-28 18:18 Matt Turner
2022-05-20  9:17 Agostino Sarubbo
2022-05-19  9:27 Agostino Sarubbo
2022-05-17 12:38 Agostino Sarubbo
2022-05-17 12:37 Agostino Sarubbo
2022-05-17  9:58 Agostino Sarubbo
2022-04-23 21:34 Sam James
2022-04-23 21:34 Sam James
2022-04-23 21:34 Sam James
2022-03-16 17:23 Sam James
2022-03-16 17:23 Sam James
2022-03-10 10:10 Jakov Smolić
2022-02-23  1:16 Sam James
2022-02-23  1:16 Sam James
2022-02-23  1:16 Sam James
2022-02-22  0:41 Sam James
2022-02-22  0:41 Sam James
2022-02-19  3:30 Sam James
2021-12-08  4:56 Sam James
2021-12-07  6:26 Agostino Sarubbo
2021-12-07  2:17 Sam James
2021-12-06 11:27 Agostino Sarubbo
2021-09-04 21:39 Sam James
2021-09-03  6:40 Agostino Sarubbo
2021-09-01 18:32 Sam James
2021-09-01  8:19 Agostino Sarubbo
2021-08-30  7:26 Agostino Sarubbo
2021-07-24 23:02 Marek Szuba
2021-06-12 19:17 David Seifert
2021-06-10  8:13 Joonas Niilola
2021-04-25  8:00 Michał Górny
2021-03-06 21:38 Sergei Trofimovich
2021-02-28 15:40 Sam James
2021-02-28 15:39 Sam James
2021-02-28 15:39 Sam James
2021-02-28 12:22 Sergei Trofimovich
2020-11-26  7:53 Joonas Niilola
2020-11-26  7:53 Joonas Niilola
2020-11-26  7:53 Joonas Niilola
2020-11-26  7:53 Joonas Niilola
2020-11-23 13:29 Joonas Niilola
2020-11-23 13:29 Joonas Niilola
2020-11-23 13:29 Joonas Niilola
2020-11-12 15:30 Sam James
2020-11-12 15:09 Sam James
2020-11-06  1:41 Georgy Yakovlev
2020-10-12  5:51 Joonas Niilola
2020-10-12  5:51 Joonas Niilola
2020-10-11  9:30 Joonas Niilola
2020-10-11  9:30 Joonas Niilola
2020-10-11  9:30 Joonas Niilola
2020-07-01 12:21 Michał Górny
2020-06-25  7:00 Agostino Sarubbo
2020-06-20 13:48 Thomas Deutschmann
2020-06-17 17:00 Joonas Niilola
2020-05-18  5:06 Jason A. Donenfeld
2020-05-18  5:00 Jason A. Donenfeld
2020-05-13 13:17 Joonas Niilola
2020-05-06  1:01 Thomas Deutschmann
2020-05-04 19:57 Mart Raudsepp
2020-03-04  8:09 Joonas Niilola
2020-03-04  8:09 Joonas Niilola
2020-02-26 16:17 Joonas Niilola
2020-02-26 16:17 Joonas Niilola
2020-02-23 18:37 Rick Farina
2019-12-21 15:06 Joonas Niilola
2019-12-08  8:41 Joonas Niilola
2019-01-11 18:05 Alon Bar-Lev
2018-12-31 22:10 Alon Bar-Lev
2018-12-31 19:34 Alon Bar-Lev
2018-12-31  5:54 Alon Bar-Lev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1650749403.91beeccff2975bef50c7bf956242d456c67bcfdc.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox