diff --git a/common/shlibs b/common/shlibs index 09e6a5facd4..b3fc25ca6f3 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3446,6 +3446,7 @@ libcss_parser.so.0 htmlcxx-0.86_1 libaom.so.2 libaom-2.0.0_1 libre.so.1 re-2.0.1_1 libtpms.so.0 libtpms-0.9.0_1 +libswtpm_libtpms.so.0 libswtpm-0.6.1_1 libspandsp.so.2 spandsp-0.0.6_1 libspa-alsa.so libspa-alsa-0.3.6_1 libspa-audioconvert.so libspa-audioconvert-0.3.6_1 diff --git a/srcpkgs/libswtpm b/srcpkgs/libswtpm new file mode 120000 index 00000000000..0e4930bcfe7 --- /dev/null +++ b/srcpkgs/libswtpm @@ -0,0 +1 @@ +swtpm \ No newline at end of file diff --git a/srcpkgs/libswtpm-devel b/srcpkgs/libswtpm-devel new file mode 120000 index 00000000000..0e4930bcfe7 --- /dev/null +++ b/srcpkgs/libswtpm-devel @@ -0,0 +1 @@ +swtpm \ No newline at end of file diff --git a/srcpkgs/swtpm/template b/srcpkgs/swtpm/template new file mode 100644 index 00000000000..5e2b170c32b --- /dev/null +++ b/srcpkgs/swtpm/template @@ -0,0 +1,50 @@ +# Template file for 'swtpm' +pkgname=swtpm +version=0.6.1 +revision=1 +build_style=gnu-configure +configure_args="--with-gnutls ac_cv_path_TCSD=" +hostmakedepends="libtool automake pkg-config iproute2 expect + socat python3 gnutls-tools" +makedepends="gnutls-devel libtasn1-devel libtpms-devel json-glib-devel + libseccomp-devel fuse-devel" +depends="gnutls-tools trousers" +short_desc="TPM emulator with socket, character device, and Linux CUSE interface" +maintainer="John " +license="BSD-3-Clause" +homepage="https://github.com/stefanberger/swtpm" +distfiles="https://github.com/stefanberger/swtpm/archive/refs/tags/v${version}.tar.gz" +checksum=114905d6a51af89baac9ac279bf6534761e01adcf9c9bb298f1c09c7d4b2599d +# check expects that root directory is setup fully for swtpm with e.g. tss user created +make_check=no +ignore_elf_files="/usr/share/swtpm/swtpm-localca" +make_dirs="/usr/lib/swtpm-localca 0750 tss root" + +conf_files="/etc/swtpm-localca.conf + /etc/swtpm-localca.options + /etc/swtpm_setup.conf" + +pre_configure() { + autoreconf -f -i +} + +post_install() { + vlicense LICENSE +} + +libswtpm_package() { + short_desc+=" - library" + pkg_install() { + vmove "usr/lib/swtpm/*.so.*" + } +} + +libswtpm-devel_package() { + depends="lib${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove "usr/lib/swtpm/*.a" + vmove "usr/lib/swtpm/*.so" + vmove usr/include + } +}