Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: tpm2-totp-0.3.0
@ 2022-08-07 10:38 tranzystorek-io
  2022-08-07 10:39 ` tranzystorek-io
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-07 10:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

There is a new pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New package: tpm2-totp-0.3.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 2650 bytes --]

From 09cc0d623ae7e6d97c8ff4ee41747c3789bb330a Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Sun, 7 Aug 2022 12:07:25 +0200
Subject: [PATCH] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 38 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 41 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index 326943713f07..e20f6987f405 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4185,3 +4185,4 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1
 libqtspell-qt5.so.1 qtspell-1.0.1_1
 libopensmtpd.so.0 libopensmtpd-0.7_1
 libiio.so.0 libiio-0.23_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..9edbcf3e6044
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,38 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pandoc pkg-config"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New package: tpm2-totp-0.3.0
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
@ 2022-08-07 10:39 ` tranzystorek-io
  2022-08-08  4:18 ` jacobmyers-codeninja
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-07 10:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1207378861

Comment:
@jacobmyers-codeninja Could you test this package?

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New package: tpm2-totp-0.3.0
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
  2022-08-07 10:39 ` tranzystorek-io
@ 2022-08-08  4:18 ` jacobmyers-codeninja
  2022-08-08  9:10 ` tranzystorek-io
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: jacobmyers-codeninja @ 2022-08-08  4:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

New comment by jacobmyers-codeninja on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1207647159

Comment:
> @jacobmyers-codeninja Could you test this package?

Yes. I will be able to test and play around within a day or two, thanks!

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New package: tpm2-totp-0.3.0
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
  2022-08-07 10:39 ` tranzystorek-io
  2022-08-08  4:18 ` jacobmyers-codeninja
@ 2022-08-08  9:10 ` tranzystorek-io
  2022-08-08  9:13 ` tranzystorek-io
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-08  9:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1207866490

Comment:
I noticed the automatic test suite can be run if we package the tpm2-tools package, I'm not sure if that would be useful?

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New package: tpm2-totp-0.3.0
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (2 preceding siblings ...)
  2022-08-08  9:10 ` tranzystorek-io
@ 2022-08-08  9:13 ` tranzystorek-io
  2022-08-08 21:43 ` jacobmyers-codeninja
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-08  9:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1207866490

Comment:
I noticed the automatic test suite can be run if we package the https://github.com/tpm2-software/tpm2-tools package, I'm not sure if that would be useful?

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New package: tpm2-totp-0.3.0
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (3 preceding siblings ...)
  2022-08-08  9:13 ` tranzystorek-io
@ 2022-08-08 21:43 ` jacobmyers-codeninja
  2022-08-08 21:52 ` [PR PATCH] [Updated] " tranzystorek-io
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: jacobmyers-codeninja @ 2022-08-08 21:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 511 bytes --]

New comment by jacobmyers-codeninja on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1208643723

Comment:
tpm2-tss is in the packages already, and it appears to be what tpm2-tools is using for everything. It might make sense to just include tools to also get the bonus of all the unit tests for all the tooling.

At least if it looks like that would be easy enough to include, the tools does seem to include a lot of useful small utilities for tpm2 management.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Updated] New package: tpm2-totp-0.3.0
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (4 preceding siblings ...)
  2022-08-08 21:43 ` jacobmyers-codeninja
@ 2022-08-08 21:52 ` tranzystorek-io
  2022-08-08 22:02 ` [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2 tranzystorek-io
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-08 21:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New package: tpm2-totp-0.3.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 4887 bytes --]

From 635f91d1046f822238d7559004d6901aab95591b Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:50:39 +0200
Subject: [PATCH 1/2] New package: tpm2-tools-5.2

---
 .../tpm2-tools/patches/version-cache.patch    | 11 +++++++
 srcpkgs/tpm2-tools/template                   | 29 +++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch
 create mode 100644 srcpkgs/tpm2-tools/template

diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch
new file mode 100644
index 000000000000..3766b3fe9a53
--- /dev/null
+++ b/srcpkgs/tpm2-tools/patches/version-cache.patch
@@ -0,0 +1,11 @@
+diff --git a/configure.ac b/configure.ac
+index f1c1711..2ca51b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([tpm2-tools],
+-    [m4_esyscmd_s([git describe --tags --always --dirty])])
++    [m4_esyscmd_s([cat VERSION])])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AX_IS_RELEASE([dash-version])
diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template
new file mode 100644
index 000000000000..9f4c0911b46c
--- /dev/null
+++ b/srcpkgs/tpm2-tools/template
@@ -0,0 +1,29 @@
+# Template file for 'tpm2-tools'
+pkgname=tpm2-tools
+version=5.2
+revision=1
+#archs="i686 x86_64"
+#wrksrc=
+#create_wrksrc=yes
+build_style=gnu-configure
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="autoconf autoconf-archive automake libtool pandoc pkg-config"
+makedepends="libcurl-devel openssl-devel tpm2-tss-devel"
+checkdepends=""
+depends=""
+short_desc="Trusted Platform Module (TPM2.0) tools"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/tpm2-software/tpm2-tools/"
+#changelog=""
+distfiles="https://github.com/tpm2-software/tpm2-tools/archive/${version}.tar.gz"
+checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8
+
+pre_configure() {
+	echo "${version}" > VERSION
+	./bootstrap
+}

From 47497983de0a1df9627250b6a193e96d0a214f93 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:51:03 +0200
Subject: [PATCH 2/2] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 40 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 43 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index ea6fde4ffe31..743596e51e39 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4185,3 +4185,4 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1
 libqtspell-qt5.so.1 qtspell-1.0.1_1
 libopensmtpd.so.0 libopensmtpd-0.7_1
 libiio.so.0 libiio-0.23_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..bf2ca72be92e
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,40 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+configure_args="--enable-integration"
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pandoc pkg-config"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (5 preceding siblings ...)
  2022-08-08 21:52 ` [PR PATCH] [Updated] " tranzystorek-io
@ 2022-08-08 22:02 ` tranzystorek-io
  2022-08-08 22:13 ` tranzystorek-io
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-08 22:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 4810 bytes --]

From 0e0c85ebb72718e8c3690b72b0a968e658d21265 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:50:39 +0200
Subject: [PATCH 1/2] New package: tpm2-tools-5.2

---
 .../tpm2-tools/patches/version-cache.patch    | 11 +++++++++
 srcpkgs/tpm2-tools/template                   | 23 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch
 create mode 100644 srcpkgs/tpm2-tools/template

diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch
new file mode 100644
index 000000000000..3766b3fe9a53
--- /dev/null
+++ b/srcpkgs/tpm2-tools/patches/version-cache.patch
@@ -0,0 +1,11 @@
+diff --git a/configure.ac b/configure.ac
+index f1c1711..2ca51b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([tpm2-tools],
+-    [m4_esyscmd_s([git describe --tags --always --dirty])])
++    [m4_esyscmd_s([cat VERSION])])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AX_IS_RELEASE([dash-version])
diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template
new file mode 100644
index 000000000000..cbba94a2b9da
--- /dev/null
+++ b/srcpkgs/tpm2-tools/template
@@ -0,0 +1,23 @@
+# Template file for 'tpm2-tools'
+pkgname=tpm2-tools
+version=5.2
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake libtool pandoc pkg-config"
+makedepends="libcurl-devel openssl-devel tpm2-tss-devel"
+short_desc="Trusted Platform Module (TPM2.0) tools"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-tools/"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-tools/master/docs/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-tools/archive/${version}.tar.gz"
+checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8
+
+pre_configure() {
+	echo "${version}" > VERSION
+	./bootstrap
+}
+
+post_install() {
+	vlicense doc/LICENSE
+}

From 96948b31f5b49bce4f55ef381ee9ccdffdd9c7b0 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:51:03 +0200
Subject: [PATCH 2/2] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 40 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 43 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index ea6fde4ffe31..743596e51e39 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4185,3 +4185,4 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1
 libqtspell-qt5.so.1 qtspell-1.0.1_1
 libopensmtpd.so.0 libopensmtpd-0.7_1
 libiio.so.0 libiio-0.23_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..bf2ca72be92e
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,40 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+configure_args="--enable-integration"
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pandoc pkg-config"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (6 preceding siblings ...)
  2022-08-08 22:02 ` [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2 tranzystorek-io
@ 2022-08-08 22:13 ` tranzystorek-io
  2022-08-08 22:31 ` tranzystorek-io
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-08 22:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 4851 bytes --]

From 0e0c85ebb72718e8c3690b72b0a968e658d21265 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:50:39 +0200
Subject: [PATCH 1/2] New package: tpm2-tools-5.2

---
 .../tpm2-tools/patches/version-cache.patch    | 11 +++++++++
 srcpkgs/tpm2-tools/template                   | 23 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch
 create mode 100644 srcpkgs/tpm2-tools/template

diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch
new file mode 100644
index 000000000000..3766b3fe9a53
--- /dev/null
+++ b/srcpkgs/tpm2-tools/patches/version-cache.patch
@@ -0,0 +1,11 @@
+diff --git a/configure.ac b/configure.ac
+index f1c1711..2ca51b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([tpm2-tools],
+-    [m4_esyscmd_s([git describe --tags --always --dirty])])
++    [m4_esyscmd_s([cat VERSION])])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AX_IS_RELEASE([dash-version])
diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template
new file mode 100644
index 000000000000..cbba94a2b9da
--- /dev/null
+++ b/srcpkgs/tpm2-tools/template
@@ -0,0 +1,23 @@
+# Template file for 'tpm2-tools'
+pkgname=tpm2-tools
+version=5.2
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake libtool pandoc pkg-config"
+makedepends="libcurl-devel openssl-devel tpm2-tss-devel"
+short_desc="Trusted Platform Module (TPM2.0) tools"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-tools/"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-tools/master/docs/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-tools/archive/${version}.tar.gz"
+checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8
+
+pre_configure() {
+	echo "${version}" > VERSION
+	./bootstrap
+}
+
+post_install() {
+	vlicense doc/LICENSE
+}

From 2f1c1f828c56cb717c8fefd0b6e8f6dba2daeadd Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:51:03 +0200
Subject: [PATCH 2/2] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 43 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index ea6fde4ffe31..743596e51e39 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4185,3 +4185,4 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1
 libqtspell-qt5.so.1 qtspell-1.0.1_1
 libopensmtpd.so.0 libopensmtpd-0.7_1
 libiio.so.0 libiio-0.23_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..16e5c66e97fb
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,43 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pandoc pkg-config"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+if [ -n $XBPS_CHECK_PKGS ]; then
+	configure_args="--enable-integration"
+fi
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (7 preceding siblings ...)
  2022-08-08 22:13 ` tranzystorek-io
@ 2022-08-08 22:31 ` tranzystorek-io
  2022-08-08 23:24 ` tranzystorek-io
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-08 22:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 4870 bytes --]

From 0e0c85ebb72718e8c3690b72b0a968e658d21265 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:50:39 +0200
Subject: [PATCH 1/2] New package: tpm2-tools-5.2

---
 .../tpm2-tools/patches/version-cache.patch    | 11 +++++++++
 srcpkgs/tpm2-tools/template                   | 23 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch
 create mode 100644 srcpkgs/tpm2-tools/template

diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch
new file mode 100644
index 000000000000..3766b3fe9a53
--- /dev/null
+++ b/srcpkgs/tpm2-tools/patches/version-cache.patch
@@ -0,0 +1,11 @@
+diff --git a/configure.ac b/configure.ac
+index f1c1711..2ca51b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([tpm2-tools],
+-    [m4_esyscmd_s([git describe --tags --always --dirty])])
++    [m4_esyscmd_s([cat VERSION])])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AX_IS_RELEASE([dash-version])
diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template
new file mode 100644
index 000000000000..cbba94a2b9da
--- /dev/null
+++ b/srcpkgs/tpm2-tools/template
@@ -0,0 +1,23 @@
+# Template file for 'tpm2-tools'
+pkgname=tpm2-tools
+version=5.2
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake libtool pandoc pkg-config"
+makedepends="libcurl-devel openssl-devel tpm2-tss-devel"
+short_desc="Trusted Platform Module (TPM2.0) tools"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-tools/"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-tools/master/docs/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-tools/archive/${version}.tar.gz"
+checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8
+
+pre_configure() {
+	echo "${version}" > VERSION
+	./bootstrap
+}
+
+post_install() {
+	vlicense doc/LICENSE
+}

From d4b9b6845b62af335310414e6b0c30d206a3a7f2 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:51:03 +0200
Subject: [PATCH 2/2] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 43 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index ea6fde4ffe31..743596e51e39 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4185,3 +4185,4 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1
 libqtspell-qt5.so.1 qtspell-1.0.1_1
 libopensmtpd.so.0 libopensmtpd-0.7_1
 libiio.so.0 libiio-0.23_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..ed57906fee94
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,43 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pandoc pkg-config"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+if [ -n $XBPS_CHECK_PKGS -a -z $CROSS_BUILD ]; then
+	configure_args="--enable-integration"
+fi
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (8 preceding siblings ...)
  2022-08-08 22:31 ` tranzystorek-io
@ 2022-08-08 23:24 ` tranzystorek-io
  2022-08-09  3:03 ` jacobmyers-codeninja
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-08 23:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 4853 bytes --]

From 0e0c85ebb72718e8c3690b72b0a968e658d21265 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:50:39 +0200
Subject: [PATCH 1/2] New package: tpm2-tools-5.2

---
 .../tpm2-tools/patches/version-cache.patch    | 11 +++++++++
 srcpkgs/tpm2-tools/template                   | 23 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch
 create mode 100644 srcpkgs/tpm2-tools/template

diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch
new file mode 100644
index 000000000000..3766b3fe9a53
--- /dev/null
+++ b/srcpkgs/tpm2-tools/patches/version-cache.patch
@@ -0,0 +1,11 @@
+diff --git a/configure.ac b/configure.ac
+index f1c1711..2ca51b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([tpm2-tools],
+-    [m4_esyscmd_s([git describe --tags --always --dirty])])
++    [m4_esyscmd_s([cat VERSION])])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AX_IS_RELEASE([dash-version])
diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template
new file mode 100644
index 000000000000..cbba94a2b9da
--- /dev/null
+++ b/srcpkgs/tpm2-tools/template
@@ -0,0 +1,23 @@
+# Template file for 'tpm2-tools'
+pkgname=tpm2-tools
+version=5.2
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake libtool pandoc pkg-config"
+makedepends="libcurl-devel openssl-devel tpm2-tss-devel"
+short_desc="Trusted Platform Module (TPM2.0) tools"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-tools/"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-tools/master/docs/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-tools/archive/${version}.tar.gz"
+checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8
+
+pre_configure() {
+	echo "${version}" > VERSION
+	./bootstrap
+}
+
+post_install() {
+	vlicense doc/LICENSE
+}

From fd197eaa66444f83de70a31c33b73663df055281 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:51:03 +0200
Subject: [PATCH 2/2] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 43 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index ea6fde4ffe31..743596e51e39 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4185,3 +4185,4 @@ libnvidia-container-go.so.1 libnvidia-container-1.10.0_1
 libqtspell-qt5.so.1 qtspell-1.0.1_1
 libopensmtpd.so.0 libopensmtpd-0.7_1
 libiio.so.0 libiio-0.23_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..ed412995249b
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,43 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pandoc pkg-config"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+	configure_args="--enable-integration"
+fi
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (9 preceding siblings ...)
  2022-08-08 23:24 ` tranzystorek-io
@ 2022-08-09  3:03 ` jacobmyers-codeninja
  2022-08-09  6:54 ` tranzystorek-io
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: jacobmyers-codeninja @ 2022-08-09  3:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1107 bytes --]

New comment by jacobmyers-codeninja on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1208858247

Comment:
I was able to install both tmp2-tools and tpm2-totp. I also added a dracut line to ensure it was configured (might not have been necessary really).

I was able to register a totp onto the TPM in its default configuration and on boot up it is showing the time based rolling codes while awaiting my LUKS key. This matches my authenticator app and I can continue to boot normally into the system.

Recovery/reseal is working as well, tested out some tools and everything seems to function as expected. So this looks good to me.

Only drawback is they apparently made an update in 2021 to handle passing the generator password through STDIN instead of the command line and renamed a few of the parameters at that time (generate instead of init for example). Functionality wise nothing is changed and it is perfectly functional at the .3.0 state, but hopefully a .4 will come out with the changes so the README on the github matches better.

Thanks!

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (10 preceding siblings ...)
  2022-08-09  3:03 ` jacobmyers-codeninja
@ 2022-08-09  6:54 ` tranzystorek-io
  2022-08-09 17:38 ` jacobmyers-codeninja
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-09  6:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 340 bytes --]

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1208985163

Comment:
I was wondering about plymouth - it was giving me a bit of trouble as a package dependency so I left it out and just added dracut and mkinitcpio to generate hooks, does that change anything?

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (11 preceding siblings ...)
  2022-08-09  6:54 ` tranzystorek-io
@ 2022-08-09 17:38 ` jacobmyers-codeninja
  2022-08-13  6:40 ` [PR PATCH] [Updated] " tranzystorek-io
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: jacobmyers-codeninja @ 2022-08-09 17:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

New comment by jacobmyers-codeninja on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1209674332

Comment:
It doesn't have a hard dependency on plymouth. If it is present it will behave in a way to work nicely with it, but if it is not available it will just default to printing directly to the terminal. This is the configuration I am using as I do not actually have plymouth installed on this test machine.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (12 preceding siblings ...)
  2022-08-09 17:38 ` jacobmyers-codeninja
@ 2022-08-13  6:40 ` tranzystorek-io
  2022-08-24 10:37 ` tranzystorek-io
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-13  6:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 4903 bytes --]

From 5d9ad2117afc7117e0c77ce1683cec0da7ba2e40 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:50:39 +0200
Subject: [PATCH 1/2] New package: tpm2-tools-5.2

---
 .../tpm2-tools/patches/version-cache.patch    | 11 +++++++++
 srcpkgs/tpm2-tools/template                   | 23 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch
 create mode 100644 srcpkgs/tpm2-tools/template

diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch
new file mode 100644
index 000000000000..3766b3fe9a53
--- /dev/null
+++ b/srcpkgs/tpm2-tools/patches/version-cache.patch
@@ -0,0 +1,11 @@
+diff --git a/configure.ac b/configure.ac
+index f1c1711..2ca51b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([tpm2-tools],
+-    [m4_esyscmd_s([git describe --tags --always --dirty])])
++    [m4_esyscmd_s([cat VERSION])])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AX_IS_RELEASE([dash-version])
diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template
new file mode 100644
index 000000000000..cbba94a2b9da
--- /dev/null
+++ b/srcpkgs/tpm2-tools/template
@@ -0,0 +1,23 @@
+# Template file for 'tpm2-tools'
+pkgname=tpm2-tools
+version=5.2
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake libtool pandoc pkg-config"
+makedepends="libcurl-devel openssl-devel tpm2-tss-devel"
+short_desc="Trusted Platform Module (TPM2.0) tools"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-tools/"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-tools/master/docs/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-tools/archive/${version}.tar.gz"
+checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8
+
+pre_configure() {
+	echo "${version}" > VERSION
+	./bootstrap
+}
+
+post_install() {
+	vlicense doc/LICENSE
+}

From f41527e0bd7aed9ed9f4f03561567c7dfc2a6a8c Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:51:03 +0200
Subject: [PATCH 2/2] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 43 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index 61924610cc52..97f3a485ce86 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4190,3 +4190,4 @@ libqtquickforkawesome.so.0.0.4 qtforkawesome-0.0.4_1
 libsyncthingwidgets.so.1.2.2 syncthingtray-1.2.2_1
 libsyncthingmodel.so.1.2.2 syncthingtray-1.2.2_1
 libsyncthingconnector.so.1.2.2 syncthingtray-1.2.2_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..ed412995249b
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,43 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pandoc pkg-config"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+	configure_args="--enable-integration"
+fi
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (13 preceding siblings ...)
  2022-08-13  6:40 ` [PR PATCH] [Updated] " tranzystorek-io
@ 2022-08-24 10:37 ` tranzystorek-io
  2022-09-10 13:48 ` paper42
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-08-24 10:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 4873 bytes --]

From daff38cfa6c8b3302b923c7bb51df91dfe027bab Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:50:39 +0200
Subject: [PATCH 1/2] New package: tpm2-tools-5.2

---
 .../tpm2-tools/patches/version-cache.patch    | 11 +++++++++
 srcpkgs/tpm2-tools/template                   | 23 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch
 create mode 100644 srcpkgs/tpm2-tools/template

diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch
new file mode 100644
index 000000000000..3766b3fe9a53
--- /dev/null
+++ b/srcpkgs/tpm2-tools/patches/version-cache.patch
@@ -0,0 +1,11 @@
+diff --git a/configure.ac b/configure.ac
+index f1c1711..2ca51b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([tpm2-tools],
+-    [m4_esyscmd_s([git describe --tags --always --dirty])])
++    [m4_esyscmd_s([cat VERSION])])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AX_IS_RELEASE([dash-version])
diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template
new file mode 100644
index 000000000000..cbba94a2b9da
--- /dev/null
+++ b/srcpkgs/tpm2-tools/template
@@ -0,0 +1,23 @@
+# Template file for 'tpm2-tools'
+pkgname=tpm2-tools
+version=5.2
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake libtool pandoc pkg-config"
+makedepends="libcurl-devel openssl-devel tpm2-tss-devel"
+short_desc="Trusted Platform Module (TPM2.0) tools"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-tools/"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-tools/master/docs/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-tools/archive/${version}.tar.gz"
+checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8
+
+pre_configure() {
+	echo "${version}" > VERSION
+	./bootstrap
+}
+
+post_install() {
+	vlicense doc/LICENSE
+}

From c4b3c18246ad8c8747d3d3a0591663f5e9dc0914 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:51:03 +0200
Subject: [PATCH 2/2] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 43 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index f829ee12e80f..7c80a0ab2e94 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4176,3 +4176,4 @@ libsyncthingmodel.so.1.2.2 syncthingtray-1.2.2_1
 libsyncthingconnector.so.1.2.2 syncthingtray-1.2.2_1
 libglibutil.so.1 libglibutil-1.0.64_1
 libgbinder.so.1 libgbinder-1.1.20_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..ed412995249b
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,43 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pandoc pkg-config"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+	configure_args="--enable-integration"
+fi
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (14 preceding siblings ...)
  2022-08-24 10:37 ` tranzystorek-io
@ 2022-09-10 13:48 ` paper42
  2022-09-10 13:51 ` [PR REVIEW] " paper42
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: paper42 @ 2022-09-10 13:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#issuecomment-1242733159

Comment:
@tranzystorek-io could you resolve conflicts?

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR REVIEW] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (15 preceding siblings ...)
  2022-09-10 13:48 ` paper42
@ 2022-09-10 13:51 ` paper42
  2022-09-10 14:27 ` [PR PATCH] [Updated] " tranzystorek-io
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: paper42 @ 2022-09-10 13:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#discussion_r967655958

Comment:
pandoc is not available on all architectures, could you use it only on some architectures like for example in the bird_exporter package? The same applies to tpm2-totp.

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (16 preceding siblings ...)
  2022-09-10 13:51 ` [PR REVIEW] " paper42
@ 2022-09-10 14:27 ` tranzystorek-io
  2022-09-10 14:32 ` [PR REVIEW] " tranzystorek-io
  2022-09-13 20:12 ` [PR PATCH] [Merged]: " paper42
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-09-10 14:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages tpm2-totp
https://github.com/void-linux/void-packages/pull/38515

New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/38515.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-tpm2-totp-38515.patch --]
[-- Type: text/x-diff, Size: 5284 bytes --]

From 012f492b3ab5d2fe8c3130e1ec7e5cbd90597ee5 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:50:39 +0200
Subject: [PATCH 1/2] New package: tpm2-tools-5.2

---
 .../tpm2-tools/patches/version-cache.patch    | 11 +++++++
 srcpkgs/tpm2-tools/template                   | 30 +++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 srcpkgs/tpm2-tools/patches/version-cache.patch
 create mode 100644 srcpkgs/tpm2-tools/template

diff --git a/srcpkgs/tpm2-tools/patches/version-cache.patch b/srcpkgs/tpm2-tools/patches/version-cache.patch
new file mode 100644
index 000000000000..3766b3fe9a53
--- /dev/null
+++ b/srcpkgs/tpm2-tools/patches/version-cache.patch
@@ -0,0 +1,11 @@
+diff --git a/configure.ac b/configure.ac
+index f1c1711..2ca51b0 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,5 +1,5 @@
+ AC_INIT([tpm2-tools],
+-    [m4_esyscmd_s([git describe --tags --always --dirty])])
++    [m4_esyscmd_s([cat VERSION])])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AX_IS_RELEASE([dash-version])
diff --git a/srcpkgs/tpm2-tools/template b/srcpkgs/tpm2-tools/template
new file mode 100644
index 000000000000..30120d8fc322
--- /dev/null
+++ b/srcpkgs/tpm2-tools/template
@@ -0,0 +1,30 @@
+# Template file for 'tpm2-tools'
+pkgname=tpm2-tools
+version=5.2
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake libtool pkg-config $(vopt_if man pandoc)"
+makedepends="libcurl-devel openssl-devel tpm2-tss-devel"
+short_desc="Trusted Platform Module (TPM2.0) tools"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-tools/"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-tools/master/docs/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-tools/archive/refs/tags/${version}.tar.gz"
+checksum=6b81d8214cc8006a8a5011926df917b885f320e428470a61669f577c0778e4d8
+
+build_options="man"
+desc_option_man="Use pandoc for manpages"
+
+case "$XBPS_MACHINE" in
+	x86_64*|i686|ppc64le*|ppc64) build_options_default="man" ;;
+esac
+
+pre_configure() {
+	echo "${version}" > VERSION
+	./bootstrap
+}
+
+post_install() {
+	vlicense doc/LICENSE
+}

From 44f43bce1e745462283aeca9d3834f298cdbe2ad Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 8 Aug 2022 23:51:03 +0200
Subject: [PATCH 2/2] New package: tpm2-totp-0.3.0

---
 common/shlibs              |  1 +
 srcpkgs/libtpm2-totp       |  1 +
 srcpkgs/tpm2-totp-devel    |  1 +
 srcpkgs/tpm2-totp/template | 53 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 56 insertions(+)
 create mode 120000 srcpkgs/libtpm2-totp
 create mode 120000 srcpkgs/tpm2-totp-devel
 create mode 100644 srcpkgs/tpm2-totp/template

diff --git a/common/shlibs b/common/shlibs
index 3654a4e81c0a..8c4f10508c7b 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4161,3 +4161,4 @@ libsyncthingconnector.so.1.2.3 syncthingtray-1.2.3_1
 libglibutil.so.1 libglibutil-1.0.64_1
 libgbinder.so.1 libgbinder-1.1.20_1
 libsunpinyin.so.3 libsunpinyin-3.0.0rc2_1
+libtpm2-totp.so.0 libtpm2-totp-0.3.0_1
diff --git a/srcpkgs/libtpm2-totp b/srcpkgs/libtpm2-totp
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/libtpm2-totp
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp-devel b/srcpkgs/tpm2-totp-devel
new file mode 120000
index 000000000000..483b177bd8ef
--- /dev/null
+++ b/srcpkgs/tpm2-totp-devel
@@ -0,0 +1 @@
+tpm2-totp
\ No newline at end of file
diff --git a/srcpkgs/tpm2-totp/template b/srcpkgs/tpm2-totp/template
new file mode 100644
index 000000000000..ebdf3f359c30
--- /dev/null
+++ b/srcpkgs/tpm2-totp/template
@@ -0,0 +1,53 @@
+# Template file for 'tpm2-totp'
+pkgname=tpm2-totp
+version=0.3.0
+revision=1
+build_style=gnu-configure
+hostmakedepends="autoconf autoconf-archive automake doxygen libtool pkg-config $(vopt_if man pandoc)"
+makedepends="dracut mkinitcpio qrencode-devel tpm2-tss-devel"
+checkdepends="iproute2 oath-toolkit-devel swtpm tpm2-tools"
+short_desc="Attest the trustworthiness of a device using TOTP"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/tpm2-software/tpm2-totp"
+changelog="https://raw.githubusercontent.com/tpm2-software/tpm2-totp/master/CHANGELOG.md"
+distfiles="https://github.com/tpm2-software/tpm2-totp/archive/refs/tags/v${version}.tar.gz"
+checksum=5ff29164979d21bc0a51afce17aee80929ccce3270d0f4abce996fd36a4469e1
+
+build_options="man"
+desc_option_man="Use pandoc for manpages"
+
+case "$XBPS_MACHINE" in
+	x86_64*|i686|ppc64le*|ppc64) build_options_default="man" ;;
+esac
+
+if [ -n "$XBPS_CHECK_PKGS" ]; then
+	configure_args="--enable-integration"
+fi
+
+pre_configure() {
+	autoreconf -isv
+}
+
+libtpm2-totp_package() {
+	short_desc+=" - library files"
+	pkg_install() {
+		vmove "usr/lib/*.so.*"
+		vlicense LICENSE
+	}
+}
+
+tpm2-totp-devel_package() {
+	short_desc+=" - development files"
+	depends="libtpm2-totp>=${version}_${revision}"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove "usr/lib/*.so"
+
+		if [ -n "$build_option_man" ]; then
+			vmove usr/share/man/man3
+		fi
+	}
+}

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR REVIEW] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (17 preceding siblings ...)
  2022-09-10 14:27 ` [PR PATCH] [Updated] " tranzystorek-io
@ 2022-09-10 14:32 ` tranzystorek-io
  2022-09-13 20:12 ` [PR PATCH] [Merged]: " paper42
  19 siblings, 0 replies; 21+ messages in thread
From: tranzystorek-io @ 2022-09-10 14:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 203 bytes --]

New review comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/pull/38515#discussion_r967661336

Comment:
Should be good now, but please take another look

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [PR PATCH] [Merged]: New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
  2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
                   ` (18 preceding siblings ...)
  2022-09-10 14:32 ` [PR REVIEW] " tranzystorek-io
@ 2022-09-13 20:12 ` paper42
  19 siblings, 0 replies; 21+ messages in thread
From: paper42 @ 2022-09-13 20:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]

There's a merged pull request on the void-packages repository

New packages: tpm2-totp-0.3.0, tpm2-tools-5.2
https://github.com/void-linux/void-packages/pull/38515

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
Closes #38508 

#### Testing the changes
- I tested the changes in this PR: **NO**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2022-09-13 20:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-07 10:38 [PR PATCH] New package: tpm2-totp-0.3.0 tranzystorek-io
2022-08-07 10:39 ` tranzystorek-io
2022-08-08  4:18 ` jacobmyers-codeninja
2022-08-08  9:10 ` tranzystorek-io
2022-08-08  9:13 ` tranzystorek-io
2022-08-08 21:43 ` jacobmyers-codeninja
2022-08-08 21:52 ` [PR PATCH] [Updated] " tranzystorek-io
2022-08-08 22:02 ` [PR PATCH] [Updated] New packages: tpm2-totp-0.3.0, tpm2-tools-5.2 tranzystorek-io
2022-08-08 22:13 ` tranzystorek-io
2022-08-08 22:31 ` tranzystorek-io
2022-08-08 23:24 ` tranzystorek-io
2022-08-09  3:03 ` jacobmyers-codeninja
2022-08-09  6:54 ` tranzystorek-io
2022-08-09 17:38 ` jacobmyers-codeninja
2022-08-13  6:40 ` [PR PATCH] [Updated] " tranzystorek-io
2022-08-24 10:37 ` tranzystorek-io
2022-09-10 13:48 ` paper42
2022-09-10 13:51 ` [PR REVIEW] " paper42
2022-09-10 14:27 ` [PR PATCH] [Updated] " tranzystorek-io
2022-09-10 14:32 ` [PR REVIEW] " tranzystorek-io
2022-09-13 20:12 ` [PR PATCH] [Merged]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).