[arch-commits] Commit in (5 files)
Jonas Witschel
diabonas at gemini.archlinux.org
Tue Mar 22 08:12:33 UTC 2022
Date: Tuesday, March 22, 2022 @ 08:12:32
Author: diabonas
Revision: 1169830
newpkg: tpm2-openssl (future dependency of tpm2-pkcs11)
This package is OpenSSL 3.0 only, so it cannot be built yet.
Added:
tpm2-openssl/
tpm2-openssl/repos/
tpm2-openssl/trunk/
tpm2-openssl/trunk/PKGBUILD
tpm2-openssl/trunk/tpm2-openssl_check.sh
-----------------------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
tpm2-openssl_check.sh | 11 +++++++++++
2 files changed, 45 insertions(+)
Added: tpm2-openssl/trunk/PKGBUILD
===================================================================
--- tpm2-openssl/trunk/PKGBUILD (rev 0)
+++ tpm2-openssl/trunk/PKGBUILD 2022-03-22 08:12:32 UTC (rev 1169830)
@@ -0,0 +1,34 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=tpm2-openssl
+pkgver=1.0.1
+pkgrel=1
+pkgdesc='OpenSSL Provider for Trusted Platform Module 2.0 integration'
+arch=('x86_64')
+url='https://github.com/tpm2-software/tpm2-openssl'
+license=('BSD')
+depends=('openssl>=3.0' 'tpm2-tss' 'libtss2-esys.so' 'libtss2-rc.so' 'libtss2-tctildr.so')
+checkdepends=('dbus' 'swtpm' 'tpm2-abrmd' 'tpm2-tools')
+options=('debug')
+source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
+ 'tpm2-openssl_check.sh')
+sha512sums=('7b075785b84a525b8f702cb9fbe70ce528d1e49045cd66f7fc3482d6a434cd259dc9e2be5c1ef465e13df132e5c20e3b0b07fb84388b777dee22c0cd79ca6954'
+ 'SKIP'
+ '08818eb11a2e4f53a6af3c7e2069b04ff5a4d135414a0f7e0dd316abffd9870432fe7f9cd02a2de2f8c99d89862933c8f4af5c76c68834849defc802511290be')
+validpgpkeys=('BB0C68611BD255F10FD1EE94B7900BECDB740A3B') # Petr Gotthard <petr.gotthard at centrum.cz>
+
+build() {
+ cd "$pkgname-$pkgver"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ dbus-run-session "$srcdir/tpm2-openssl_check.sh"
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
Added: tpm2-openssl/trunk/tpm2-openssl_check.sh
===================================================================
--- tpm2-openssl/trunk/tpm2-openssl_check.sh (rev 0)
+++ tpm2-openssl/trunk/tpm2-openssl_check.sh 2022-03-22 08:12:32 UTC (rev 1169830)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+swtpm socket --tpm2 --server port=2321 --ctrl type=tcp,port=2322 --flags not-need-init --tpmstate dir="$PWD" &
+tpm2-abrmd --session --tcti swtpm &
+
+export TPM2OPENSSL_TCTI="tabrmd:bus_type=session"
+export TPM2TOOLS_TCTI="$TPM2OPENSSL_TCTI"
+
+make --jobs=1 check
+
+kill $(jobs -p)
Property changes on: tpm2-openssl/trunk/tpm2-openssl_check.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
More information about the arch-commits
mailing list