upgpkg: cloud-hypervisor

Run setcap in post_install.
This commit is contained in:
George Rawlinson 2021-12-13 22:00:58 +00:00
parent 755434e9f7
commit 786a4b94c6
Signed by: grawlinson
GPG key ID: E0959FEA8B550539
2 changed files with 5 additions and 0 deletions

View file

@ -7,8 +7,10 @@ pkgdesc="A Virtual Machine Monitor for modern cloud workloads"
url="https://www.cloudhypervisor.org" url="https://www.cloudhypervisor.org"
arch=('x86_64') arch=('x86_64')
license=('Apache') license=('Apache')
depends=('gcc-libs')
makedepends=('rust') makedepends=('rust')
optdepends=('qemu-headless: for virtiofsd') optdepends=('qemu-headless: for virtiofsd')
install="$pkgname.install"
source=("$pkgname-$pkgver.tar.gz::https://github.com/cloud-hypervisor/cloud-hypervisor/archive/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::https://github.com/cloud-hypervisor/cloud-hypervisor/archive/v$pkgver.tar.gz")
sha512sums=('229d081b9bacc048287e84d268c48443f456b9eadd14e812d818900d67e88f12f60eaa2503ffecd0017a5db147063f63165b6d702413fb7ebeeaaf2acd08113c') sha512sums=('229d081b9bacc048287e84d268c48443f456b9eadd14e812d818900d67e88f12f60eaa2503ffecd0017a5db147063f63165b6d702413fb7ebeeaaf2acd08113c')
b2sums=('0e44ff622e84443aadba36479ee6f7394b88649c927a9671598d39953906dd464a0d5b71d29e3086c6cace5bc8f97a07f39795cacb5bba851805ab475692db1f') b2sums=('0e44ff622e84443aadba36479ee6f7394b88649c927a9671598d39953906dd464a0d5b71d29e3086c6cace5bc8f97a07f39795cacb5bba851805ab475692db1f')

View file

@ -0,0 +1,3 @@
post_install() {
setcap cap_net_admin+ep /usr/bin/cloud-hypervisor
}