[arch-commits] Commit in swtpm/repos/community-x86_64 (PKGBUILD PKGBUILD)
Jonas Witschel
diabonas at archlinux.org
Sun Dec 27 11:08:12 UTC 2020
Date: Sunday, December 27, 2020 @ 11:08:11
Author: diabonas
Revision: 793515
archrelease: copy trunk to community-x86_64
Added:
swtpm/repos/community-x86_64/PKGBUILD
(from rev 793514, swtpm/trunk/PKGBUILD)
Deleted:
swtpm/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 120 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 60 insertions(+), 60 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-27 11:08:05 UTC (rev 793514)
+++ PKGBUILD 2020-12-27 11:08:11 UTC (rev 793515)
@@ -1,60 +0,0 @@
-# Maintainer: Jonas Witschel <diabonas at archlinux.org>
-pkgname=swtpm
-pkgver=0.5.1
-_tag=12de4f8206d1188cfbd07ef965a02f04af97506d # git rev-parse "v$pkgver"
-pkgrel=2
-pkgdesc='Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface'
-arch=('x86_64')
-url='https://github.com/stefanberger/swtpm'
-license=('BSD')
-depends=('fuse2' 'glib2' 'libseccomp' 'libtpms' 'libseccomp.so')
-makedepends=('git' 'expect' 'gnutls' 'iproute2' 'libtasn1' 'python' 'python-cryptography' 'python-setuptools' 'socat')
-checkdepends=('softhsm')
-optdepends=('gnutls: swtpm_cert support'
- 'python-cryptography: swtpm_setup support')
-source=("git+$url.git?signed#tag=$_tag")
-sha512sums=('SKIP')
-validpgpkeys=('B818B9CADF9089C2D5CEC66B75AD65802A0B4211') # Stefan Berger <stefanb at linux.vnet.ibm.com>
-
-pkgver() {
- cd "$pkgname"
- git describe | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-prepare() {
- cd "$pkgname"
-
- # 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 src/swtpm_setup/py_swtpm_setup/swtpm_setup.py \
- src/swtpm_setup/swtpm_setup.in
-
- autoreconf --install --force
-}
-
-build() {
- cd "$pkgname"
- ./configure --prefix=/usr --with-cuse --with-gnutls --with-seccomp --disable-python-installation
- make
-
- for _dir in samples src/swtpm_setup; do (cd "$_dir"; python setup.py build); done
-}
-
-check() {
- cd "$pkgname"
- make check
-}
-
-package() {
- cd "$pkgname"
- make DESTDIR="$pkgdir" install
- install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
-
- for _dir in samples src/swtpm_setup
- do
- (cd "$_dir"; python setup.py install --root="$pkgdir" --optimize=1 --skip-build)
- done
-
- 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"
-}
Copied: swtpm/repos/community-x86_64/PKGBUILD (from rev 793514, swtpm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-12-27 11:08:11 UTC (rev 793515)
@@ -0,0 +1,60 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=swtpm
+pkgver=0.5.2
+_tag=fcf618cfeb2e2d8470614a998bd536ad2bb20e4e # git rev-parse "v$pkgver"
+pkgrel=1
+pkgdesc='Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface'
+arch=('x86_64')
+url='https://github.com/stefanberger/swtpm'
+license=('BSD')
+depends=('fuse2' 'glib2' 'libseccomp' 'libtpms' 'libseccomp.so')
+makedepends=('git' 'expect' 'gnutls' 'iproute2' 'libtasn1' 'python' 'python-cryptography' 'python-setuptools' 'socat')
+checkdepends=('softhsm')
+optdepends=('gnutls: swtpm_cert support'
+ 'python-cryptography: swtpm_setup support')
+source=("git+$url.git?signed#tag=$_tag")
+sha512sums=('SKIP')
+validpgpkeys=('B818B9CADF9089C2D5CEC66B75AD65802A0B4211') # Stefan Berger <stefanb at linux.vnet.ibm.com>
+
+pkgver() {
+ cd "$pkgname"
+ git describe | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # 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 src/swtpm_setup/py_swtpm_setup/swtpm_setup.py \
+ src/swtpm_setup/swtpm_setup.in
+
+ autoreconf --install --force
+}
+
+build() {
+ cd "$pkgname"
+ ./configure --prefix=/usr --with-cuse --with-gnutls --with-seccomp --disable-python-installation
+ make
+
+ for _dir in samples src/swtpm_setup; do (cd "$_dir"; python setup.py build); done
+}
+
+check() {
+ cd "$pkgname"
+ make check
+}
+
+package() {
+ cd "$pkgname"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+
+ for _dir in samples src/swtpm_setup
+ do
+ (cd "$_dir"; python setup.py install --root="$pkgdir" --optimize=1 --skip-build)
+ done
+
+ 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"
+}
More information about the arch-commits
mailing list