diff options
| author | Paul Le Guen de Kerneizon <paul.leguendekerneizon@savoirfairelinux.com> | 2025-12-17 16:35:21 +0100 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-06 14:32:39 -0500 |
| commit | 9d98a3a8e96d4dedcd96efd3e6f09c462d37754e (patch) | |
| tree | 432009132f0b90fecd7f6fcfc187c5bcd8b61fb1 | |
| parent | 980ef86fd2b71e9dc5b1967c88f63252cebde0bb (diff) | |
| download | meta-virtualization-9d98a3a8e96d4dedcd96efd3e6f09c462d37754e.tar.gz | |
cockpit-machines: add recipe
`cockpit-machines` is a Cockpit plugin used to provide a web interface
to manage virtual machines. Since Cockpit version 242, cockpit-machines
has been moved to a dedicated repository. This package is dependent on
cockpit package from meta-webserver layer.
To test it, access the cockpit-machines UI on the tested target at
`https://127.0.0.1:9090/machines`.
Signed-off-by: Paul Le Guen de Kerneizon <paul.leguendekerneizon@savoirfairelinux.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | conf/layer.conf | 4 | ||||
| -rw-r--r-- | recipes-extended/cockpit-machines/cockpit-machines_346.bb | 31 |
2 files changed, 34 insertions, 1 deletions
diff --git a/conf/layer.conf b/conf/layer.conf index dbe66d8c..5ec45ee0 100644 --- a/conf/layer.conf +++ b/conf/layer.conf | |||
| @@ -30,7 +30,9 @@ LAYERDEPENDS_virtualization-layer = " \ | |||
| 30 | meta-python \ | 30 | meta-python \ |
| 31 | " | 31 | " |
| 32 | 32 | ||
| 33 | # webserver: naigos requires apache2 | 33 | # webserver: |
| 34 | # - naigos requires apache2 | ||
| 35 | # - cockpit-machines requires cockpit | ||
| 34 | LAYERRECOMMENDS_virtualization-layer = " \ | 36 | LAYERRECOMMENDS_virtualization-layer = " \ |
| 35 | webserver \ | 37 | webserver \ |
| 36 | selinux \ | 38 | selinux \ |
diff --git a/recipes-extended/cockpit-machines/cockpit-machines_346.bb b/recipes-extended/cockpit-machines/cockpit-machines_346.bb new file mode 100644 index 00000000..feb7a97a --- /dev/null +++ b/recipes-extended/cockpit-machines/cockpit-machines_346.bb | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | # Copyright (C) 2024-2025 Savoir-faire Linux, Inc | ||
| 2 | |||
| 3 | SUMMARY = "Cockpit UI for virtual machines" | ||
| 4 | DESCRIPTION = "Cockpit-machines provides a user interface to manage virtual machines" | ||
| 5 | |||
| 6 | BUGTRACKER = "github.com/cockpit-project/cockpit-machines/issues" | ||
| 7 | |||
| 8 | LICENSE = "LGPL-2.1-only" | ||
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c" | ||
| 10 | |||
| 11 | DEPENDS += "cockpit" | ||
| 12 | |||
| 13 | SRC_URI = "https://github.com/cockpit-project/cockpit-machines/releases/download/${PV}/cockpit-machines-${PV}.tar.xz" | ||
| 14 | SRC_URI[sha256sum] = "c9d80357da2bf3ecda9698f0dc6fcb46675b3b76da9150a22178071fe982fcb0" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/${PN}" | ||
| 17 | |||
| 18 | inherit autotools-brokensep features_check gettext | ||
| 19 | |||
| 20 | # systemd, which cockpit is dependent, is not compatible with musl lib | ||
| 21 | COMPATIBLE_HOST:libc-musl = "null" | ||
| 22 | |||
| 23 | RDEPENDS:${PN} += "cockpit libvirt-dbus pciutils virt-manager-install" | ||
| 24 | |||
| 25 | REQUIRED_DISTRO_FEATURES = "systemd pam" | ||
| 26 | |||
| 27 | # Default installation path of cockpit-machines is /usr/local/ | ||
| 28 | FILES:${PN} = "\ | ||
| 29 | ${prefix}/local/ \ | ||
| 30 | ${datadir}/metainfo/org.cockpit-project.cockpit-machines.metainfo.xml \ | ||
| 31 | " | ||
