Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-totp/
Date: Fri, 02 Oct 2020 08:42:41
Message-Id: 1601628150.67847442aeee9a7e684a53d0b47e65d680503ea9.juippis@gentoo
1 commit: 67847442aeee9a7e684a53d0b47e65d680503ea9
2 Author: Salah Coronya <salah.coronya <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 14 03:49:23 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 2 08:42:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67847442
7
8 app-crypt/tpm2-totp: Bump to 0.3.0
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Salah Coronya <salah.coronya <AT> gmail.com>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 app-crypt/tpm2-totp/Manifest | 1 +
15 app-crypt/tpm2-totp/metadata.xml | 3 ++
16 app-crypt/tpm2-totp/tpm2-totp-0.3.0.ebuild | 51 ++++++++++++++++++++++++++++++
17 3 files changed, 55 insertions(+)
18
19 diff --git a/app-crypt/tpm2-totp/Manifest b/app-crypt/tpm2-totp/Manifest
20 index 5e4f68674f2..85caafc9799 100644
21 --- a/app-crypt/tpm2-totp/Manifest
22 +++ b/app-crypt/tpm2-totp/Manifest
23 @@ -1 +1,2 @@
24 DIST tpm2-totp-0.2.1.tar.gz 427226 BLAKE2B e6a9dbcdac4d7fc31048aff968e3eea097752c79a3c1b8551d22558a6b143a758e7bb507722185c648000f4b1edd2f0bbdd443890b5763b297f3d42cfbd84d9d SHA512 2bda34e89b76319a40206e08c0208b0f139309c0b0e40e7168b5e7562096750df504dfcae3a39e6f82fdccbf7a79ed0802d115fbd7560dc3f5b52d81fe8fb59c
25 +DIST tpm2-totp-0.3.0.tar.gz 428874 BLAKE2B 413f4418cd1ce9a996f36c83e27c3fe256b2d3f5ff36e7df1dc1b651e38afa222be9742d5cfa76287263a4e1402dabea3400b41a1e1bde9f31fe03f82894f4f1 SHA512 d47cc8155a60a464afe602c3114ff8e6b2ff825457e6069693947421716b97c34b00f70adbcb4cda1b5b9639b8a3dfc7800295bbff99822da7a8077ebf78d6b2
26
27 diff --git a/app-crypt/tpm2-totp/metadata.xml b/app-crypt/tpm2-totp/metadata.xml
28 index ff3a177c4bd..fb1b2ed30d0 100644
29 --- a/app-crypt/tpm2-totp/metadata.xml
30 +++ b/app-crypt/tpm2-totp/metadata.xml
31 @@ -12,4 +12,7 @@
32 <upstream>
33 <remote-id type="github">tpm2-software/tpm2-totp</remote-id>
34 </upstream>
35 + <use>
36 + <flag name="plymouth">Add <pkg>sys-boot/plymouth</pkg> support</flag>
37 + </use>
38 </pkgmetadata>
39
40 diff --git a/app-crypt/tpm2-totp/tpm2-totp-0.3.0.ebuild b/app-crypt/tpm2-totp/tpm2-totp-0.3.0.ebuild
41 new file mode 100644
42 index 00000000000..b02901ba1dc
43 --- /dev/null
44 +++ b/app-crypt/tpm2-totp/tpm2-totp-0.3.0.ebuild
45 @@ -0,0 +1,51 @@
46 +# Copyright 1999-2020 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=7
50 +
51 +inherit autotools
52 +
53 +DESCRIPTION="Attest the trustworthiness of a device against a human using time-based OTP"
54 +HOMEPAGE="https://github.com/tpm2-software/tpm2-totp"
55 +SRC_URI="https://github.com/tpm2-software/${PN}/releases/download/v${PV}/${P}.tar.gz"
56 +
57 +LICENSE="BSD"
58 +SLOT="0"
59 +KEYWORDS="~amd64"
60 +IUSE="plymouth test"
61 +
62 +REQUIRED_USE="test? ( plymouth )"
63 +
64 +RDEPEND="app-crypt/tpm2-tss
65 + media-gfx/qrencode
66 + plymouth? ( sys-boot/plymouth )"
67 +DEPEND="${RDEPEND}
68 + test? (
69 + app-crypt/swtpm
70 + app-crypt/tpm2-tools
71 + >=app-crypt/tpm2-tss-3.0.0
72 + sys-apps/fakeroot
73 + sys-auth/oath-toolkit
74 + )"
75 +
76 +BDEPEND="virtual/pkgconfig"
77 +
78 +RESTRICT="!test? ( test )"
79 +
80 +src_prepare() {
81 + default
82 + eautoreconf
83 +}
84 +
85 +src_configure() {
86 + econf \
87 + --disable-static \
88 + --disable-defaultflags \
89 + $(use_enable plymouth) \
90 + $(use_enable test integration)
91 +}
92 +
93 +src_install() {
94 + default
95 + find "${D}" -name '*.la' -delete || die
96 +}