diff options
-rw-r--r-- | core/modules/virt-viewer/module.build | 28 | ||||
-rw-r--r-- | core/modules/virt-viewer/module.conf | 8 | ||||
-rw-r--r-- | core/modules/virt-viewer/module.conf.ubuntu | 18 | ||||
l--------- | core/targets/qemu/virt-viewer | 1 |
4 files changed, 55 insertions, 0 deletions
diff --git a/core/modules/virt-viewer/module.build b/core/modules/virt-viewer/module.build new file mode 100644 index 00000000..9c5e89e2 --- /dev/null +++ b/core/modules/virt-viewer/module.build @@ -0,0 +1,28 @@ +#!/bin/bash +fetch_source() { + autoclone +} + +build() { + local SRCDIR="${MODULE_WORK_DIR}/src/virt-viewer" + local DSTDIR="${MODULE_BUILD_DIR}" + cde "${SRCDIR}" + + # install meson (>= 0.54.0) since packaged version is too old + pip3 install "meson>=0.54.0" + + meson build \ + --prefix="/usr" \ + --sysconfdir="/etc" \ + --localstatedir="/var" \ + -Dovirt=disabled \ + -Dspice=enabled \ + -Dvnc=enabled \ + -Dlibvirt=enabled || perror "'meson' failed." + ninja -v -C build || perror "'ninja' failed." + DESTDIR="${DSTDIR}" ninja -v -C build install || perror "'ninja install' failed." +} + +post_copy() { + : +} diff --git a/core/modules/virt-viewer/module.conf b/core/modules/virt-viewer/module.conf new file mode 100644 index 00000000..3dcabb13 --- /dev/null +++ b/core/modules/virt-viewer/module.conf @@ -0,0 +1,8 @@ +#!/bin/bash + +REQUIRED_GIT=" + https://gitlab.com/virt-viewer/virt-viewer.git||v10.0 +" + +# copy everything since there is a clean installation done by 'ninja install' +REQUIRED_DIRECTORIES="/" diff --git a/core/modules/virt-viewer/module.conf.ubuntu b/core/modules/virt-viewer/module.conf.ubuntu new file mode 100644 index 00000000..ab1907e8 --- /dev/null +++ b/core/modules/virt-viewer/module.conf.ubuntu @@ -0,0 +1,18 @@ +#!/bin/bash +REQUIRED_INSTALLED_PACKAGES=" + gcc + python3 + python3-pip + ninja-build + debhelper + libvirt-glib-1.0-dev + libgovirt-dev + libgtk-vnc-2.0-dev + libspice-client-gtk-3.0-dev + libxml2-dev + libglib2.0-dev + libgtk-3-dev + libvte-dev + libffi-dev + intltool +" diff --git a/core/targets/qemu/virt-viewer b/core/targets/qemu/virt-viewer new file mode 120000 index 00000000..ff561797 --- /dev/null +++ b/core/targets/qemu/virt-viewer @@ -0,0 +1 @@ +../../modules/virt-viewer
\ No newline at end of file |