app-misc/OpenLinkHub: add 0.5.2
Signed-off-by: insects <mail@liv.nrw>
This commit is contained in:
parent
f2bf308fe4
commit
4aff1db245
4 changed files with 83 additions and 0 deletions
2
app-misc/OpenLinkHub/Manifest
Normal file
2
app-misc/OpenLinkHub/Manifest
Normal file
|
@ -0,0 +1,2 @@
|
|||
DIST OpenLinkHub-0.5.2-deps.tar.xz 95077996 BLAKE2B d0437d7a5ea2d625d5b4d23e550105587df85f88635e9cffddb923026cf6de6b23cfecc55bfcce03c0a56623348889934c97f5ee095a0dfbc3a9fbe9833f1840 SHA512 680d5e384ca75e17f3ad28ec7ac4b38d1de35f67f41966d8fa7fc6e169dcb84288df98310876142feef8eb87e901c9f7c090b0060c5f8f3f6788de806d7cbb24
|
||||
DIST OpenLinkHub-0.5.2.tar.gz 5466605 BLAKE2B de7525fc2b1ce036763dc522ac016167f481abcf15c530a27796fe6453ed34017b8cda9a919de6cbb4ff746ec458ac5a26e08a975d3d570425983a7bb573c88f SHA512 ef8e23e61cb89e3ed9d56e470356eb127dccde7da50b80777033c859bd159f9f36db744ad2583f2587e54178168d0fb6ae27782ae4931b69204d3f045b90aa8f
|
47
app-misc/OpenLinkHub/OpenLinkHub-0.5.2.ebuild
Normal file
47
app-misc/OpenLinkHub/OpenLinkHub-0.5.2.ebuild
Normal file
|
@ -0,0 +1,47 @@
|
|||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module systemd udev
|
||||
|
||||
DESCRIPTION="Open source interface for iCUE LINK Hub and other Corsair AIOs, Hubs for Linux"
|
||||
HOMEPAGE="https://github.com/jurkovic-nikola/OpenLinkHub"
|
||||
SRC_URI="https://github.com/jurkovic-nikola/OpenLinkHub/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://insects-gentoo.fly.storage.tigris.dev/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
LICENSE+=" MIT Apache-2.0 BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="acct-group/openlinkhub
|
||||
acct-user/openlinkhub"
|
||||
RDEPEND="${DEPEND}
|
||||
virtual/udev
|
||||
sys-apps/usbutils"
|
||||
BDEPEND=""
|
||||
|
||||
src_compile() {
|
||||
ego build .
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/OpenLinkHub
|
||||
cp -r "${WORKDIR}"/"${P}"/* ${D}/opt/OpenLinkHub
|
||||
insinto /lib/udev/rules.d/
|
||||
doins 99-openlinkhub.rules
|
||||
newinitd "${FILESDIR}"/OpenLinkHub.initd OpenLinkHub
|
||||
# FIXME: not sure if this works? test it with systemd
|
||||
systemd_dounit "OpenLinkHub.service"
|
||||
fperms -R 755 /opt/OpenLinkHub/
|
||||
fowners -R openlinkhub:openlinkhub /opt/OpenLinkHub/
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
udev_reload
|
||||
}
|
19
app-misc/OpenLinkHub/files/OpenLinkHub.initd
Normal file
19
app-misc/OpenLinkHub/files/OpenLinkHub.initd
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
name=OpenLinkHub
|
||||
description="Open source interface for iCUE LINK System Hub, Corsair AIOs and Hubs"
|
||||
supervisor="supervise-daemon"
|
||||
command="/opt/OpenLinkHub/OpenLinkHub"
|
||||
supervise_daemon_args=" -d /opt/OpenLinkHub"
|
||||
command_user="openlinkhub:openlinkhub"
|
||||
|
||||
depend() {
|
||||
after sleep
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading OpenLinkHub"
|
||||
/bin/kill -s HUP \$MAINPID
|
||||
eend $?
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue