summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJonas Witschel2021-06-01 16:52:53 +0200
committerJonas Witschel2021-06-01 16:52:53 +0200
commit8a1277912e57fdb6621c82e8f8ba3718b416efa3 (patch)
treec832c89df9a0989fd644a21c3629bc085051831a /PKGBUILD
parentf7e4d5eec1880334c3983018c6401036b32bab5b (diff)
downloadaur-swtpm-git.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.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD15
1 files changed, 3 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1c8c19f5d16..9e17c9d4669 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"