diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | virtlyst.ini | 12 | ||||
-rw-r--r-- | virtlyst.service | 14 |
4 files changed, 86 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0e8f182479f6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = virtlyst + pkgdesc = Web interface to manage virtual machines with libvirt + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/cutelyst/Virtlyst + arch = x86_64 + license = AGPL3 + depends = cutelyst + depends = libvirt + backup = etc/uwsgi/virtlyst.ini + source = https://github.com/cutelyst/Virtlyst/archive/v1.0.0.tar.gz + source = virtlyst.ini + source = virtlyst.service + sha256sums = 5f1b121a90bfe8fcb608913306478dc8d68c4132aea11ffbd57a76d12bb32ce8 + sha256sums = 372cf5d94a8117b0ad167d9edd7487f81f9440376d6b485e6fbe51b417324a39 + sha256sums = b7f96b90e7e7aeae0fb0cbe4c62e63c1418439d83d587e2afb40ab28f12b704f + +pkgname = virtlyst + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..79d8c7e856b0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Damjan Georgievski <gdamjan@gmail.com> + +pkgname=virtlyst +_projectname=Virtlyst +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Web interface to manage virtual machines with libvirt" +arch=('x86_64') +url="https://github.com/cutelyst/Virtlyst" +license=('AGPL3') +depends=('cutelyst' 'libvirt') +makedepends=() +source=("https://github.com/cutelyst/${_projectname}/archive/v${pkgver}.tar.gz" + "virtlyst.ini" + "virtlyst.service") +backup=("etc/uwsgi/virtlyst.ini") + + +build() { + mkdir -p "${srcdir}/build" + cd "${srcdir}/build" + cmake \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + "${srcdir}/${_projectname}-${pkgver}" + make +} + +package() { + #make DESTDIR="$pkgdir/" install + install -D -m755 "${srcdir}/build/src/libVirtlyst.so" -t "${pkgdir}/usr/lib/uwsgi/" + install -D -m644 "${srcdir}/virtlyst.ini" -t "${pkgdir}/etc/uwsgi/" + install -D -m644 "${srcdir}/virtlyst.service" -t "${pkgdir}/usr/lib/systemd/system/" + install -d "${pkgdir}/usr/share/${pkgname}/" + cp -r "${srcdir}/${_projectname}-${pkgver}/root/static/" "${pkgdir}/usr/share/${pkgname}/static" + cp -r "${srcdir}/${_projectname}-${pkgver}/root/src/" "${pkgdir}/usr/share/${pkgname}/templates" +} + +sha256sums=('5f1b121a90bfe8fcb608913306478dc8d68c4132aea11ffbd57a76d12bb32ce8' + '372cf5d94a8117b0ad167d9edd7487f81f9440376d6b485e6fbe51b417324a39' + 'b7f96b90e7e7aeae0fb0cbe4c62e63c1418439d83d587e2afb40ab28f12b704f') diff --git a/virtlyst.ini b/virtlyst.ini new file mode 100644 index 000000000000..89ba3f36d230 --- /dev/null +++ b/virtlyst.ini @@ -0,0 +1,12 @@ +[wsgi] +master = true +threads = 4 +http-socket = :3000 +application = /usr/lib/uwsgi/libVirtlyst.so +chdir = / +static-map = /static=/usr/share/virtlyst/static + +[Cutelyst] +production = true +DatabasePath = /var/lib/virtlyst/virtlyst.sqlite +TemplatePath = /usr/share/virtlyst/templates diff --git a/virtlyst.service b/virtlyst.service new file mode 100644 index 000000000000..a224291f76bc --- /dev/null +++ b/virtlyst.service @@ -0,0 +1,14 @@ +[Unit] +After=network.target libvirtd.service +Description=Web interface to manage virtual machines with libvirt + +[Service] +Type=simple +DynamicUser=yes +SupplementaryGroups=libvirt +Restart=always +ExecStart=/usr/bin/cutelyst-wsgi2 --ini /etc/uwsgi/virtlyst.ini +StateDirectory=virtlyst + +[Install] +WantedBy=multi-user.target |