testing/cloud-hypervisor: setcap the correct binary path

This commit is contained in:
Hoang Nguyen 2023-04-23 00:00:00 +07:00 committed by alice
parent 21b854814d
commit c0bfd71cd7

View File

@ -1,7 +1,7 @@
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=cloud-hypervisor
pkgver=31.1
pkgrel=0
pkgrel=1
pkgdesc="Virtual machine monitor for modern cloud workloads"
url="https://www.cloudhypervisor.org/"
# Only x86_64 and aarch64 are officially supported
@ -16,7 +16,7 @@ export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
cargo fetch --locked
cargo fetch --target="$CTARGET" --locked
}
build() {
@ -29,7 +29,7 @@ package() {
target/release/ch-remote
# Needs NET_ADMIN capabilities to set TAP interfaces up on the host
setcap cap_net_admin=+ep target/release/cloud-hypervisor
setcap cap_net_admin=+ep "$pkgdir"/usr/bin/cloud-hypervisor
}
sha512sums="