diff options
-rw-r--r-- | core/modules/virt-manager/module.build | 18 | ||||
-rw-r--r-- | core/modules/virt-manager/module.conf | 13 | ||||
-rw-r--r-- | core/modules/virt-manager/module.conf.ubuntu | 20 | ||||
l--------- | core/targets/qemu/virt-manager | 1 |
4 files changed, 52 insertions, 0 deletions
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 +" diff --git a/core/targets/qemu/virt-manager b/core/targets/qemu/virt-manager new file mode 120000 index 00000000..609782ef --- /dev/null +++ b/core/targets/qemu/virt-manager @@ -0,0 +1 @@ +../../modules/virt-manager
\ No newline at end of file |