app-containers/incus-ui: new package, add 0.18.2

Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
This commit is contained in:
Adel KARA SLIMANE
2025-10-05 00:43:48 +02:00
parent 93c5b5b228
commit dc89a99c76
4 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST incus-ui-0.18.2-deps.tar.xz 38205644 BLAKE2B 0048a7e6911667d3596034e6abc4979f49e7efbd8f0019070fc6ffef934344411f968c95efbab17cf20b8dd7ba5c74067c58a2962027fec8f091bf23ec21ecc0 SHA512 4b42093f03954a2a1b04eea6b3917b855d1596cd63b512aaa471dc47baf909f77f9125eed1597e3c1d533500f70ff7c177fd4e23a527a052601928bf8606d59c
DIST incus-ui-0.18.2.tar.gz 1081178 BLAKE2B e7d6eb01210f96b8983a94a4f554fa96ce7d0ed96bc4a866bf13bf33e62e0661b574e315f8d17eeaaee9f4293b2ce393fd43694b45bb2a161585334e1414d5d1 SHA512 fe8fd635395aa15b8021c4d0cec44f7dec86a35f5924ab01925ededb705aed188c9c7fce90803356c8c2ef5007c24b29f5fff37ae9c5c92633c0196c2ecf5d52

View File

@@ -0,0 +1,3 @@
# Add INCUS_UI=/usr/share/incus-ui to the env vars received by incus.service so it knows about it
[Service]
Environment="INCUS_UI=/usr/share/incus-ui"

View File

@@ -0,0 +1,55 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="Incus web UI module"
HOMEPAGE="https://github.com/zabbly/incus-ui-canonical"
SRC_URI="
https://github.com/zabbly/incus-ui-canonical/archive/refs/tags/incus-0.18.2.tar.gz -> ${P}.tar.gz
https://github.com/AdelKS/gentoo-distfiles/releases/download/${CATEGORY}/${PF}/${PF}-deps.tar.xz
"
S="${WORKDIR}/incus-ui-canonical-incus-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
app-containers/incus
net-libs/nodejs[npm]
"
DEPEND="${RDEPEND}"
BDEPEND="
net-libs/nodejs[npm]
sys-apps/yarn
"
src_prepare() {
default
unpack "${PF}-deps.tar.xz"
yarn install || die
}
src_compile() {
yarn build || die
}
src_install() {
insinto /usr/share/incus-ui
doins -r build/ui/*
systemd_install_dropin incus.service "${FILESDIR}"/incus.systemd.override
}
pkg_postinst() {
systemctl daemon-reload
}
pkg_postrm() {
systemctl daemon-reload
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>adel.ks@zegrapher.com</email>
<name>Adel KARA SLIMANE</name>
</maintainer>
<upstream>
<remote-id type="github">zabbly/incus-ui-canonical</remote-id>
<bugs-to>https://github.com/zabbly/incus-ui-canonical/issues</bugs-to>
</upstream>
</pkgmetadata>