2021-10-04 20:37:55 +00:00
|
|
|
# Template file for 'swtpm'
|
|
|
|
pkgname=swtpm
|
2021-11-14 14:39:51 +00:00
|
|
|
version=0.7.0
|
2021-10-04 20:37:55 +00:00
|
|
|
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 <me@johnnynator.dev>"
|
|
|
|
license="BSD-3-Clause"
|
|
|
|
homepage="https://github.com/stefanberger/swtpm"
|
|
|
|
distfiles="https://github.com/stefanberger/swtpm/archive/refs/tags/v${version}.tar.gz"
|
2021-11-14 14:39:51 +00:00
|
|
|
checksum=bed41871ad42ec852c450f5764be36b6c16456b943b912351eca9c29ce382976
|
2021-10-04 20:37:55 +00:00
|
|
|
# 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
|
|
|
|
}
|
|
|
|
}
|