summaryrefslogtreecommitdiffstats
path: root/core/modules/virt-manager
diff options
context:
space:
mode:
authorManuel Bentele2021-10-11 16:55:19 +0200
committerManuel Bentele2021-10-12 13:12:56 +0200
commitc3be71d625db394f74fde333a77a2ff68aba6079 (patch)
tree4ffdcbd0039c736c0044d1487a06119adc866cb2 /core/modules/virt-manager
parent[libvirt-python] Change installation directory for python modules (diff)
downloadmltk-c3be71d625db394f74fde333a77a2ff68aba6079.tar.gz
mltk-c3be71d625db394f74fde333a77a2ff68aba6079.tar.xz
mltk-c3be71d625db394f74fde333a77a2ff68aba6079.zip
[virt-manager] Add module to build virt-manager from source
Diffstat (limited to 'core/modules/virt-manager')
-rw-r--r--core/modules/virt-manager/module.build18
-rw-r--r--core/modules/virt-manager/module.conf13
-rw-r--r--core/modules/virt-manager/module.conf.ubuntu20
3 files changed, 51 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
+"