commit:     dc89a99c76d4c934caf0b1a75b74f00ee6b72fda
Author:     Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com>
AuthorDate: Sat Oct  4 22:43:48 2025 +0000
Commit:     Adel KARA SLIMANE <adel <AT> karaslimane <DOT> com>
CommitDate: Sat Oct  4 22:52:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dc89a99c

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

Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com>

 app-containers/incus-ui/Manifest                   |  2 +
 .../incus-ui/files/incus.systemd.override          |  3 ++
 app-containers/incus-ui/incus-ui-0.18.2.ebuild     | 55 ++++++++++++++++++++++
 app-containers/incus-ui/metadata.xml               | 12 +++++
 4 files changed, 72 insertions(+)

diff --git a/app-containers/incus-ui/Manifest b/app-containers/incus-ui/Manifest
new file mode 100644
index 0000000000..5a98f52511
--- /dev/null
+++ b/app-containers/incus-ui/Manifest
@@ -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

diff --git a/app-containers/incus-ui/files/incus.systemd.override 
b/app-containers/incus-ui/files/incus.systemd.override
new file mode 100644
index 0000000000..5bb5c5a7e5
--- /dev/null
+++ b/app-containers/incus-ui/files/incus.systemd.override
@@ -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"

diff --git a/app-containers/incus-ui/incus-ui-0.18.2.ebuild 
b/app-containers/incus-ui/incus-ui-0.18.2.ebuild
new file mode 100644
index 0000000000..a725f880c0
--- /dev/null
+++ b/app-containers/incus-ui/incus-ui-0.18.2.ebuild
@@ -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
+}

diff --git a/app-containers/incus-ui/metadata.xml 
b/app-containers/incus-ui/metadata.xml
new file mode 100644
index 0000000000..29a12376ac
--- /dev/null
+++ b/app-containers/incus-ui/metadata.xml
@@ -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>[email protected]</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>

Reply via email to