mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/cloud-hypervisor: setcap the correct binary path
This commit is contained in:
parent
21b854814d
commit
c0bfd71cd7
@ -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="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user