From e4352fee4c921ce444bd576443e216382036a866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20B=C4=9Blka?= Date: Tue, 9 Mar 2021 01:10:11 +0100 Subject: [PATCH 1/2] New package: swtpm-0.5.2 --- srcpkgs/swtpm/patches/configure.ac.patch | 26 ++++++++++++++++++++++++ srcpkgs/swtpm/template | 26 ++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 srcpkgs/swtpm/patches/configure.ac.patch create mode 100644 srcpkgs/swtpm/template diff --git a/srcpkgs/swtpm/patches/configure.ac.patch b/srcpkgs/swtpm/patches/configure.ac.patch new file mode 100644 index 00000000000..a29510dda4c --- /dev/null +++ b/srcpkgs/swtpm/patches/configure.ac.patch @@ -0,0 +1,26 @@ +--- configure.ac.orig 2021-03-09 00:06:18.716142027 +0100 ++++ configure.ac 2021-03-09 00:07:00.760879684 +0100 +@@ -440,23 +440,6 @@ AC_ARG_WITH([tss-group], + [TSS_GROUP="tss"] + ) + +-case $have_tcsd in +-yes) +- AC_MSG_CHECKING([whether TSS_USER $TSS_USER is available]) +- if ! test $(id -u $TSS_USER); then +- AC_MSG_ERROR(["$TSS_USER is not available"]) +- else +- AC_MSG_RESULT([yes]) +- fi +- AC_MSG_CHECKING([whether TSS_GROUP $TSS_GROUP is available]) +- if ! test $(id -g $TSS_GROUP); then +- AC_MSG_ERROR(["$TSS_GROUP is not available"]) +- else +- AC_MSG_RESULT([yes]) +- fi +- ;; +-esac +- + AC_SUBST([TSS_USER]) + AC_SUBST([TSS_GROUP]) + diff --git a/srcpkgs/swtpm/template b/srcpkgs/swtpm/template new file mode 100644 index 00000000000..a71c856f370 --- /dev/null +++ b/srcpkgs/swtpm/template @@ -0,0 +1,26 @@ +# Template file for 'swtpm' +pkgname=swtpm +version=0.5.2 +revision=1 +build_style=configure +configure_args="--prefix=/usr --with-openssl --with-gnutls --without-cuse" +make_dirs="/var/lib/swtpm-localca 0750 tss root" +hostmakedepends="automake libtool pkg-config" +makedepends="expect gnutls-devel gnutls-tools iproute2 libseccomp-devel libtasn1-devel libtpms-devel openssl-devel python3-cryptography python3-setuptools python3-Twisted socat trousers" +short_desc="Libtpms-based TPM emulator" +maintainer="Jiri Belka " +license="BSD-3-Clause" +homepage="https://github.com/stefanberger/swtpm" +distfiles="https://github.com/stefanberger/swtpm/archive/v${version}.tar.gz" +checksum=2e5ccf591e34c25bd9ae78a0aff9ff1d037dacd90b5e05b9fdc9bcece239f0af + +pre_configure() { + NOCONFIGURE=1 ./autogen.sh +} + +post_install() { + # no pkcs11 support + rm -f ${DESTDIR}/usr/share/swtpm/swtpm-create-tpmca + rm -f ${DESTDIR}/usr/share/man/man8/swtpm-create-tpmca.8 + vlicense LICENSE +} From b7097580cc414dd7304edf988e82953c6a9245e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20B=C4=9Blka?= Date: Tue, 9 Mar 2021 01:10:41 +0100 Subject: [PATCH 2/2] common/shlibs: swtpm --- common/shlibs | 1 + 1 file changed, 1 insertion(+) diff --git a/common/shlibs b/common/shlibs index 42f37d8a08b..d24ca95b137 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3966,3 +3966,4 @@ libsimavrparts.so.1 simavr-1.6_2 libsword-1.8.1.so libsword-1.8.1_6 libpari-gmp.so.7 pari-2.13.0_1 libtree-sitter.so.0 tree-sitter-0.19.0_1 +libswtpm_libtpms.so.0 swtpm-0.5.2_1