From: tranzystorek-io <tranzystorek-io@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: tpm2-totp-0.3.0
Date: Mon, 08 Aug 2022 23:52:50 +0200 [thread overview]
Message-ID: <20220808215250.FOdl7T6sqXcouGXN7WZwIyKCx_ePJoB-le8Wa0767Rw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38515@inbox.vuxu.org>
[-- 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
+ }
+}
next prev parent reply other threads:[~2022-08-08 21:52 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-07 10:38 [PR PATCH] " 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 ` tranzystorek-io [this message]
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
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=20220808215250.FOdl7T6sqXcouGXN7WZwIyKCx_ePJoB-le8Wa0767Rw@z \
--to=tranzystorek-io@users.noreply.github.com \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).