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 3F27E158004 for ; Tue, 21 May 2024 15:59:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FE312BC018; Tue, 21 May 2024 15:59:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 006FC2BC01C for ; Tue, 21 May 2024 15:59:16 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0133D33BE18 for ; Tue, 21 May 2024 15:59:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8D4BA1AE6 for ; Tue, 21 May 2024 15:59:14 +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: <1716307086.bc6d970a9553d584ef0ab040297da285bbdc5d59.gonegrier.duarte@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-power/nvidia-exec/Manifest sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild sys-power/nvidia-exec/nvidia-exec-9999.ebuild X-VCS-Directories: sys-power/nvidia-exec/ X-VCS-Committer: gonegrier.duarte X-VCS-Committer-Name: Gonçalo Negrier Duarte X-VCS-Revision: bc6d970a9553d584ef0ab040297da285bbdc5d59 X-VCS-Branch: dev Date: Tue, 21 May 2024 15:59:14 +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: cd82ecc0-538f-44b9-a01d-c9e4a04ca9c0 X-Archives-Hash: d7000928ef6c13d25a8acea271ecf833 commit: bc6d970a9553d584ef0ab040297da285bbdc5d59 Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Tue May 21 15:58:06 2024 +0000 Commit: Gonçalo Negrier Duarte gmail com> CommitDate: Tue May 21 15:58:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc6d970a sys-power/nvidia-exec: add 0.2.1, drop 0.1.2-r1 * also add udev logic for future release Signed-off-by: Gonçalo Negrier Duarte gmail.com> sys-power/nvidia-exec/Manifest | 2 +- ...a-exec-0.1.2-r1.ebuild => nvidia-exec-0.2.1.ebuild} | 18 ++++++++++++++---- sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 18 ++++++++++++++---- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/sys-power/nvidia-exec/Manifest b/sys-power/nvidia-exec/Manifest index 72a1158a33..6bd3acf470 100644 --- a/sys-power/nvidia-exec/Manifest +++ b/sys-power/nvidia-exec/Manifest @@ -1 +1 @@ -DIST nvidia-exec-0.1.2.tar.gz 16735 BLAKE2B 415b35ca77d3c812e4a250deedd3763c772afea3e7e2e9131c49f486b2e784e6f7e22280136a3f483ed63f066651f8637b19cdfbc07bf222215e6e59e4b1b039 SHA512 605fc35713477e3236f2aad0eb01891b2cf47ba46f6528d6fe785bedb42832114bda0e4a12990aeb2be9d54781787dd4843293f06b7d616ab4639c123d693e4f +DIST nvidia-exec-0.2.1.tar.gz 17932 BLAKE2B ca66d51e37671f1ff834e3b6088fc599dd9bf63690c4e0dbd7e9cb6e63ef717d70bdd2e4de9560152e48694047ed418dab80377833b47c8e8f9b4e887cb7f3e6 SHA512 dc1b5aa0229550bfb2703b8308be960323f509d1765c45e7b0ef760d6f691e56dd98a929e140e72accda5f1e690273d901a422a5c9d442a484988ed3aafafaee diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild similarity index 76% rename from sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild rename to sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild index dc28323cdb..99c4e57ee7 100644 --- a/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild +++ b/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9..12} ) -inherit systemd +inherit systemd # udev future use if [[ ${PV} == 9999 ]]; then inherit git-r3 @@ -19,7 +19,7 @@ fi DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux" HOMEPAGE="https://github.com/pedro00dk/nvidia-exec" -LICENSE="GPL-3" +LICENSE="GPL" SLOT="0" RDEPEND=" @@ -29,15 +29,25 @@ RDEPEND=" x11-drivers/nvidia-drivers " +#src_configure() { +# econf --with-rulesdir="$(get_udevdir)"/rules.d +#} + src_install() { - dobin "${WORKDIR}/${P}/nvx" + newbin "${WORKDIR}/${P}/nvx.py" nvx systemd_dounit "${WORKDIR}/${P}/nvx.service" insinto /usr/lib/modprobe.d - newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf + newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf + #udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx } pkg_postinst() { + #udev_reload ewarn "Don't forget to enable the nvx service:\nsystemctl enable --now nvx\n" ewarn "\nThe nvx.service prevents nvidia modules from loading and turn off the graphics card during boot.\n" ewarn "It is not necessary to handle files, configurations, PCI buses, etc, all that is done automatically.\n" } + +#pkg_postrm() { + #udev_reload +#} diff --git a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild index dc28323cdb..99c4e57ee7 100644 --- a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild +++ b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9..12} ) -inherit systemd +inherit systemd # udev future use if [[ ${PV} == 9999 ]]; then inherit git-r3 @@ -19,7 +19,7 @@ fi DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux" HOMEPAGE="https://github.com/pedro00dk/nvidia-exec" -LICENSE="GPL-3" +LICENSE="GPL" SLOT="0" RDEPEND=" @@ -29,15 +29,25 @@ RDEPEND=" x11-drivers/nvidia-drivers " +#src_configure() { +# econf --with-rulesdir="$(get_udevdir)"/rules.d +#} + src_install() { - dobin "${WORKDIR}/${P}/nvx" + newbin "${WORKDIR}/${P}/nvx.py" nvx systemd_dounit "${WORKDIR}/${P}/nvx.service" insinto /usr/lib/modprobe.d - newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf + newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf + #udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx } pkg_postinst() { + #udev_reload ewarn "Don't forget to enable the nvx service:\nsystemctl enable --now nvx\n" ewarn "\nThe nvx.service prevents nvidia modules from loading and turn off the graphics card during boot.\n" ewarn "It is not necessary to handle files, configurations, PCI buses, etc, all that is done automatically.\n" } + +#pkg_postrm() { + #udev_reload +#}