diff options
author | Jonas Witschel | 2021-06-01 16:52:53 +0200 |
---|---|---|
committer | Jonas Witschel | 2021-06-01 16:52:53 +0200 |
commit | 8a1277912e57fdb6621c82e8f8ba3718b416efa3 (patch) | |
tree | c832c89df9a0989fd644a21c3629bc085051831a | |
parent | f7e4d5eec1880334c3983018c6401036b32bab5b (diff) | |
download | aur-8a1277912e57fdb6621c82e8f8ba3718b416efa3.tar.gz |
upgpkg: swtpm-git 0.5.0.r67.4ec1788-1: swtpm_localca rewritten in C
With this change the package no longer depends on Python, remove the
corresponding instructions from the build as well.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 4 insertions, 15 deletions
@@ -1,6 +1,6 @@ pkgbase = swtpm-git pkgdesc = Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface - pkgver = 0.5.0.r63.c125e34 + pkgver = 0.5.0.r67.4ec1788 pkgrel = 1 url = https://github.com/stefanberger/swtpm arch = x86_64 @@ -20,11 +20,9 @@ pkgbase = swtpm-git depends = libseccomp depends = libtpms depends = libseccomp.so - optdepends = python: swtpm-localca support provides = swtpm conflicts = swtpm source = git+https://github.com/stefanberger/swtpm.git sha512sums = SKIP pkgname = swtpm-git - @@ -1,6 +1,6 @@ # Maintainer: Jonas Witschel <diabonas@archlinux.org> pkgname=swtpm-git -pkgver=0.5.0.r63.c125e34 +pkgver=0.5.0.r67.4ec1788 pkgrel=1 pkgdesc='Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface' arch=('x86_64') @@ -9,7 +9,6 @@ license=('BSD') depends=('fuse2' 'glib2' 'gnutls' 'json-glib' 'libseccomp' 'libtpms' 'libseccomp.so') makedepends=('git' 'expect' 'iproute2' 'libtasn1' 'python' 'python-setuptools' 'socat') checkdepends=('softhsm') -optdepends=('python: swtpm-localca support') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("git+$url.git") @@ -24,19 +23,15 @@ prepare() { cd "${pkgname%-git}" # Remove usage of /usr/bin/env to avoid PATH manipulation attacks - sed --in-place 's/env //' samples/swtpm-create-tpmca samples/swtpm-create-user-config-files.in \ - samples/swtpm-localca.in + sed --in-place 's/env //' samples/swtpm-create-tpmca samples/swtpm-create-user-config-files.in autoreconf --install --force } build() { cd "${pkgname%-git}" - ./configure --prefix=/usr --with-cuse --with-gnutls --with-seccomp --disable-python-installation + ./configure --prefix=/usr --with-cuse --with-gnutls --with-seccomp make - - cd samples - python setup.py build } check() { @@ -48,10 +43,6 @@ package() { cd "${pkgname%-git}" make DESTDIR="$pkgdir" install install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" - - cd samples - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - echo 'u tss - "tss user for tpm2"' | install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf" echo 'z /var/lib/swtpm-localca 0750 tss root' | install -Dm644 /dev/stdin "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf" chmod 750 "$pkgdir/var/lib/swtpm-localca" |