public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/files/, sys-firmware/lenovolegionlinux/
@ 2024-04-05 15:19 Gonçalo Negrier Duarte
  0 siblings, 0 replies; only message in thread
From: Gonçalo Negrier Duarte @ 2024-04-05 15:19 UTC (permalink / raw
  To: gentoo-commits

commit:     8cd75708ad3546d396f09194fdd510a68ba260ab
Author:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Apr  5 15:17:58 2024 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri Apr  5 15:19:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8cd75708

sys-firmware/lenovolegionlinux: apply changes upstream
* https://github.com/johnfanv2/LenovoLegionLinux/pull/195

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>

 sys-firmware/lenovolegionlinux/files/legiond-onresume.sh     |  6 ------
 sys-firmware/lenovolegionlinux/files/legiond.initd           |  7 -------
 sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 11 +++++++----
 3 files changed, 7 insertions(+), 17 deletions(-)

diff --git a/sys-firmware/lenovolegionlinux/files/legiond-onresume.sh b/sys-firmware/lenovolegionlinux/files/legiond-onresume.sh
deleted file mode 100644
index cd6b7c4a5c..0000000000
--- a/sys-firmware/lenovolegionlinux/files/legiond-onresume.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-case $1/$2 in
-post/*)
-       /usr/bin/legiond-cli fanset 3
-       ;;
-esac

diff --git a/sys-firmware/lenovolegionlinux/files/legiond.initd b/sys-firmware/lenovolegionlinux/files/legiond.initd
deleted file mode 100644
index a95e50bd92..0000000000
--- a/sys-firmware/lenovolegionlinux/files/legiond.initd
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-command="/usr/bin/legiond"
-command_background=true
-pidfile="/run/legiond.pid"

diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index debc32bf51..551ab1a727 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -26,6 +26,7 @@ BDEPEND="
 	sys-apps/lm-sensors
 	sys-apps/dmidecode
 	sys-apps/sed
+	dev-libs/inih
 "
 
 RDEPEND="
@@ -79,17 +80,19 @@ src_install() {
 
 		systemd_dounit service/legiond.service service/legiond-onresume.service service/legiond-cpuset.service service/legiond-cpuset.timer
 
-        newinitd "${FILESDIR}/legiond.initd" legiond
+        newinitd service/legiond.initd legiond
+		newinitd service/legiond-cpuset.initd legiond
+		newsbin service/legiond-cpuset.sh legiond-cpuset
 
         if use elogind; then
             exeinto /lib64/elogind/system-sleep/
-            doexe "${FILESDIR}/legiond-onresume.sh"
+            doexe service/legiond-onresume.sh
         fi
 
 		insinto /etc/acpi/events
 		doins acpi/events/{legion_ppd,legion_ac}
 		dobin service/legiond/legiond
-		dobin service/legiond/legiond-cli
+		dobin service/legiond/legiond-ctl
 	fi
 }
 
@@ -97,7 +100,7 @@ pkg_postinst() {
 	ewarn "Default config files are present in /usr/share/legion_linux"
 	ewarn "Copy folder /usr/share/legion_linux to /etc/legion_linux"
 	ewarn "Note: Fancurve can be edit using the gui app"
-	ewarn "Dont forget to edit /etc/legion_linux/.env to enable and disable extra features"
+	ewarn "Dont forget to edit /etc/legion_linux/legiond.ini (previous .env) to enable and disable extra features"
 	ewarn "Note the CPU and APU control command both for undervolt an ryzenadj are edit in /etc/legion_linux/.env"
 	if !use downgrade-nvidia; then
 		ewarn "Note: use flag downgrade-nvidia if you need for nvidia TDP control (requires driver 525 to work)\n"


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-05 15:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-05 15:19 [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/files/, sys-firmware/lenovolegionlinux/ Gonçalo Negrier Duarte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox