mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/incus: add openrc subpkgs for subpkgs
This commit is contained in:
parent
7ee36e2b7d
commit
02469b6055
@ -3,7 +3,7 @@
|
||||
# Maintainer: Leonardo Arena <larena@alpinelinux.org>
|
||||
pkgname=incus
|
||||
pkgver=0.5.1
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Powerful system container and virtual machine manager"
|
||||
url="https://github.com/lxc/incus"
|
||||
arch="all"
|
||||
@ -45,7 +45,9 @@ makedepends="acl-dev
|
||||
"
|
||||
subpackages="$pkgname-client
|
||||
$pkgname-agent
|
||||
$pkgname-agent-openrc:agent_openrc:noarch
|
||||
$pkgname-user
|
||||
$pkgname-user-openrc:user_openrc:noarch
|
||||
$pkgname-openrc
|
||||
$pkgname-utils
|
||||
$pkgname-bash-completion:bashcomp:noarch
|
||||
@ -110,8 +112,12 @@ package() {
|
||||
|
||||
agent() {
|
||||
pkgdesc="Incus agent"
|
||||
install -d "$subpkgdir"/usr/bin "$subpkgdir"/etc/init.d
|
||||
amove usr/sbin/incus-agent
|
||||
}
|
||||
|
||||
agent_openrc() {
|
||||
pkgdesc="Incus agent OpenRC scripts"
|
||||
install_if="openrc ${subpkgname%-openrc}=$pkgver-r$pkgrel"
|
||||
amove etc/init.d/incus-agent
|
||||
}
|
||||
|
||||
@ -123,8 +129,12 @@ client() {
|
||||
|
||||
user() {
|
||||
pkgdesc="Incus user project daemon"
|
||||
install -d "$subpkgdir"/usr/bin "$subpkgdir"/etc/init.d
|
||||
amove usr/sbin/incus-user
|
||||
}
|
||||
|
||||
user_openrc() {
|
||||
pkgdesc="Incus user project daemon OpenRC scripts"
|
||||
install_if="openrc ${subpkgname%-openrc}=$pkgver-r$pkgrel"
|
||||
amove etc/init.d/incus-user
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user