From c3be71d625db394f74fde333a77a2ff68aba6079 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Mon, 11 Oct 2021 16:55:19 +0200 Subject: [virt-manager] Add module to build virt-manager from source --- core/modules/virt-manager/module.build | 18 ++++++++++++++++++ core/modules/virt-manager/module.conf | 13 +++++++++++++ core/modules/virt-manager/module.conf.ubuntu | 20 ++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 core/modules/virt-manager/module.build create mode 100644 core/modules/virt-manager/module.conf create mode 100644 core/modules/virt-manager/module.conf.ubuntu (limited to 'core/modules/virt-manager') diff --git a/core/modules/virt-manager/module.build b/core/modules/virt-manager/module.build new file mode 100644 index 00000000..869bc8a5 --- /dev/null +++ b/core/modules/virt-manager/module.build @@ -0,0 +1,18 @@ +#!/bin/bash +fetch_source() { + autoclone +} + +build() { + local SRCDIR="${MODULE_WORK_DIR}/src/virt-manager" + local DSTDIR="${MODULE_BUILD_DIR}" + cde "${SRCDIR}" + + python3 setup.py configure --default-hvs qemu,lxc --default-graphics spice || perror "'setup.py configure' failed." + python3 setup.py build || perror "'setup.py build' failed." + python3 setup.py --no-update-icon-cache --no-compile-schemas install --root "${DSTDIR}" --no-compile -O0 || perror "'setup.py install' failed." +} + +post_copy() { + : +} diff --git a/core/modules/virt-manager/module.conf b/core/modules/virt-manager/module.conf new file mode 100644 index 00000000..5a284183 --- /dev/null +++ b/core/modules/virt-manager/module.conf @@ -0,0 +1,13 @@ +#!/bin/bash + +REQUIRED_MODULES=" + libvirt-glib + libvirt-python +" + +REQUIRED_GIT=" + https://github.com/virt-manager/virt-manager.git||v3.2.0 +" + +# copy everything since there is a clean installation done by 'setup.py install' +REQUIRED_DIRECTORIES="/" diff --git a/core/modules/virt-manager/module.conf.ubuntu b/core/modules/virt-manager/module.conf.ubuntu new file mode 100644 index 00000000..d9b1ccf7 --- /dev/null +++ b/core/modules/virt-manager/module.conf.ubuntu @@ -0,0 +1,20 @@ +#!/bin/bash +REQUIRED_INSTALLED_PACKAGES=" + python3 + debhelper + dh-python + gettext + python3-distutils + python3-docutils + cpio + genisoimage + gir1.2-libosinfo-1.0 + gir1.2-gtksource-3.0 + libglib2.0-bin + python3-argcomplete + python3-gi + python3-gi-cairo + python3-libxml2 + python3-pytest + python3-requests +" -- cgit v1.2.3-55-g7522