From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 572FB158041 for ; Wed, 13 Mar 2024 11:24:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A7F0E29BF; Wed, 13 Mar 2024 11:24:50 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D88EE29BF for ; Wed, 13 Mar 2024 11:24:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2B8EE335DC3 for ; Wed, 13 Mar 2024 11:24:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5165813DE for ; Wed, 13 Mar 2024 11:24:47 +0000 (UTC) From: "Gonçalo Negrier Duarte" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gonçalo Negrier Duarte" Message-ID: <1710329048.95b5b2723bbfa25180955032f9df2917ba9571ac.gonegrier.duarte@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild X-VCS-Directories: sys-firmware/lenovolegionlinux/ X-VCS-Committer: gonegrier.duarte X-VCS-Committer-Name: Gonçalo Negrier Duarte X-VCS-Revision: 95b5b2723bbfa25180955032f9df2917ba9571ac X-VCS-Branch: dev Date: Wed, 13 Mar 2024 11:24:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dc41c277-637a-4569-8f78-acfb79870564 X-Archives-Hash: 6413ffb3351479d96ee57bbd0ebc7edb commit: 95b5b2723bbfa25180955032f9df2917ba9571ac Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Wed Mar 13 11:24:08 2024 +0000 Commit: Gonçalo Negrier Duarte gmail com> CommitDate: Wed Mar 13 11:24:08 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=95b5b272 sys-firmware/lenovolegionlinux: remove systemd useflag * small changes to the ebuild Signed-off-by: Gonçalo Negrier Duarte gmail.com> .../lenovolegionlinux-9999.ebuild | 39 ++++++++++------------ 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild index 3346d2ff6b..a98d9f643f 100644 --- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild +++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild @@ -34,9 +34,9 @@ RDEPEND=" dev-python/pyyaml dev-python/argcomplete dev-python/darkdetect + sys-power/acpid ) downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 ) - systemd? ( sys-power/acpid ) radeon-dgpu? ( dev-util/rocm-smi ) ryzenadj? ( sys-power/RyzenAdj ) undervolt-intel? ( dev-python/undervolt ) @@ -46,8 +46,8 @@ DEPEND="${RDEPEND}" LICENSE="GPL-2" SLOT="0" -IUSE="+gui systemd radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel" -REQUIRED_USE="|| ( systemd radeon-dgpu downgrade-nvidia ryzenadj gui undervolt-intel ) radeon-dgpu? ( !downgrade-nvidia gui ) downgrade-nvidia? ( !radeon-dgpu gui ) undervolt-intel? ( !ryzenadj gui ) ryzenadj? ( !undervolt-intel gui )" +IUSE="+gui radeon-dgpu downgrade-nvidia ryzenadj undervolt-intel" +REQUIRED_USE="|| ( radeon-dgpu downgrade-nvidia ryzenadj gui undervolt-intel ) radeon-dgpu? ( !downgrade-nvidia gui ) downgrade-nvidia? ( !radeon-dgpu gui ) undervolt-intel? ( !ryzenadj gui ) ryzenadj? ( !undervolt-intel gui )" MODULES_KERNEL_MIN=5.10 @@ -82,28 +82,25 @@ src_install() { cd "${WORKDIR}/${P}/extra" || die - if use systemd; then - systemd_dounit service/legiond.service service/legiond-onresume.service - insinto /usr/share/legion_linux/acpi/events - doins acpi/events/{legion_ppd,legion_ac} - dobin service/legiond/legiond - dobin service/legiond/legiond-cli - fi + systemd_dounit service/legiond.service service/legiond-onresume.service + insinto /etc/acpi/events + doins acpi/events/{legion_ppd,legion_ac} + dobin service/legiond/legiond + dobin service/legiond/legiond-cli fi } pkg_postinst() { - if use systemd; then - 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 edit using the gui app" - ewarn "Dont forget to edit /etc/legion_linux/.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 command" - if !use downgrade-nvidia; then - ewarn "Note: use flag downgrade-nvidia if you need for nvidia TDP control (requires driver 525 to work)\n" - else - ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n" - fi + 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 "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" + ewarn "This useflag will be drop soon since 525 is almost 6 months old" + else + ewarn "Note: Edit /etc/legion_linux/.env to enable nvidia TDP control\n" fi ewarn "Note for 2023-2023 Legion user: It need help for testing the features" ewarn "Pls test the feature how is decribe in the README of the project!"