* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2023-07-13 20:34 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-13 20:34 UTC (permalink / raw
To: gentoo-commits
commit: 295089ef87b25afca3043a8cb131a2c8577d28b8
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu Jul 13 20:34:15 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Thu Jul 13 20:34:15 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=295089ef
sys-power/nvidia-exec: add 0.1.1
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-power/nvidia-exec/Manifest | 1 +
sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild | 33 ++++++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/sys-power/nvidia-exec/Manifest b/sys-power/nvidia-exec/Manifest
new file mode 100644
index 000000000..28aa6ea8e
--- /dev/null
+++ b/sys-power/nvidia-exec/Manifest
@@ -0,0 +1 @@
+DIST v0.1.1.tar.gz 17096 BLAKE2B d1711740cb07c73735d9c20292c652ea10b527e2d0b5143fa192498e282d7bb1af183f6355cde7c96b5041d614819f5f166bace2ec54abab8c269192947e7412 SHA512 8ab439c086aee9abd7eb4c8f87c1577ab91084d6b685ddf487762abd36cd2dca250e6c799184de3cb58d0b2de239a55a873578e772c619a4c9002f45cef5f996
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild
new file mode 100644
index 000000000..f2e2d0b9c
--- /dev/null
+++ b/sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..12} )
+
+inherit systemd
+
+SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz"
+
+DESCRIPTION="Lenovo Legion Linux kernel module"
+HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+
+src_install() {
+ dobin "${WORKDIR}/${P}/nvx"
+ insinto /usr/lib/systemd/system-sleep
+ doins "${WORKDIR}/${P}/nvx-suspend-restore"
+ systemd_dounit "${WORKDIR}/${P}/nvx.service"
+ insinto /usr/lib/modprobe.d
+ newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
+}
+
+pkg_postinst() {
+ ewarn "Don't forget to reload dbus to enable \"nvx\" service, \
+by runnning:\n \`systemctl daemon-reload && systemctl enable --now nvx\`\n"
+}
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2023-07-13 20:34 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-13 20:34 UTC (permalink / raw
To: gentoo-commits
commit: 40372f3fe86ac2bfda5ad7bedf8e0eb4375db06b
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu Jul 13 20:28:23 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Thu Jul 13 20:28:23 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=40372f3f
sys-power/nvidia-exec: new package, add 9999
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-power/nvidia-exec/metadata.xml | 8 +++++++
sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 31 +++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/sys-power/nvidia-exec/metadata.xml b/sys-power/nvidia-exec/metadata.xml
new file mode 100644
index 000000000..e93137094
--- /dev/null
+++ b/sys-power/nvidia-exec/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">pedro00dk/nvidia-exec</remote-id>
+ </upstream>
+</pkgmetadata>
+
diff --git a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
new file mode 100644
index 000000000..7b9751ab9
--- /dev/null
+++ b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..12} )
+
+inherit git-r3 systemd
+
+EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git"
+
+DESCRIPTION="Lenovo Legion Linux kernel module"
+HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+src_install() {
+ dobin "${WORKDIR}/${P}/nvx"
+ insinto /usr/lib/systemd/system-sleep
+ doins "${WORKDIR}/${P}/nvx-suspend-restore"
+ systemd_dounit "${WORKDIR}/${P}/nvx.service"
+ insinto /usr/lib/modprobe.d
+ newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
+}
+
+pkg_postinst() {
+ ewarn "Don't forget to reload dbus to enable \"nvx\" service, \
+by runnning:\n \`systemctl daemon-reload && systemctl enable --now nvx\`\n"
+}
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2023-07-16 6:18 Haelwenn Monnier
0 siblings, 0 replies; 12+ messages in thread
From: Haelwenn Monnier @ 2023-07-16 6:18 UTC (permalink / raw
To: gentoo-commits
commit: 35bf6f504481180a10361ca6008dfecc9506cec7
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Sun Jul 16 06:13:55 2023 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Sun Jul 16 06:18:04 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35bf6f50
sys-power/nvidia-exec: update SRC_URI
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
sys-power/nvidia-exec/Manifest | 2 +-
sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-power/nvidia-exec/Manifest b/sys-power/nvidia-exec/Manifest
index 28aa6ea8e..ed4550f01 100644
--- a/sys-power/nvidia-exec/Manifest
+++ b/sys-power/nvidia-exec/Manifest
@@ -1 +1 @@
-DIST v0.1.1.tar.gz 17096 BLAKE2B d1711740cb07c73735d9c20292c652ea10b527e2d0b5143fa192498e282d7bb1af183f6355cde7c96b5041d614819f5f166bace2ec54abab8c269192947e7412 SHA512 8ab439c086aee9abd7eb4c8f87c1577ab91084d6b685ddf487762abd36cd2dca250e6c799184de3cb58d0b2de239a55a873578e772c619a4c9002f45cef5f996
+DIST nvidia-exec-0.1.1.tar.gz 17096 BLAKE2B d1711740cb07c73735d9c20292c652ea10b527e2d0b5143fa192498e282d7bb1af183f6355cde7c96b5041d614819f5f166bace2ec54abab8c269192947e7412 SHA512 8ab439c086aee9abd7eb4c8f87c1577ab91084d6b685ddf487762abd36cd2dca250e6c799184de3cb58d0b2de239a55a873578e772c619a4c9002f45cef5f996
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild
index f2e2d0b9c..34cdc38b9 100644
--- a/sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{9..12} )
inherit systemd
-SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz"
+SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
DESCRIPTION="Lenovo Legion Linux kernel module"
HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2023-08-05 12:02 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-08-05 12:02 UTC (permalink / raw
To: gentoo-commits
commit: 82d020a7e22e48a3133ffc3d4344582eae732edf
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Aug 4 09:37:03 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sat Aug 5 12:02:50 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=82d020a7
sys-power/nvidia-exec: add myself as a maintainer
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-power/nvidia-exec/metadata.xml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys-power/nvidia-exec/metadata.xml b/sys-power/nvidia-exec/metadata.xml
index e93137094e..df8fe71ce3 100644
--- a/sys-power/nvidia-exec/metadata.xml
+++ b/sys-power/nvidia-exec/metadata.xml
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <maintainer type="person">
+ <email>gonegrier.duarte@gmail.com</email>
+ <name>Gonçalo Negrier Duarte</name>
+ </maintainer>
<upstream>
<remote-id type="github">pedro00dk/nvidia-exec</remote-id>
</upstream>
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2024-02-09 21:36 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-02-09 21:36 UTC (permalink / raw
To: gentoo-commits
commit: e63860b6e887f00f7e7814e84e9b1f260009a3ab
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri Feb 9 21:36:20 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri Feb 9 21:36:39 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e63860b6
sys-power/nvidia-exec: add 0.1.2, drop 0.1.1
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-power/nvidia-exec/Manifest | 2 +-
.../nvidia-exec/{nvidia-exec-0.1.1.ebuild => nvidia-exec-0.1.2.ebuild} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-power/nvidia-exec/Manifest b/sys-power/nvidia-exec/Manifest
index ed4550f011..72a1158a33 100644
--- a/sys-power/nvidia-exec/Manifest
+++ b/sys-power/nvidia-exec/Manifest
@@ -1 +1 @@
-DIST nvidia-exec-0.1.1.tar.gz 17096 BLAKE2B d1711740cb07c73735d9c20292c652ea10b527e2d0b5143fa192498e282d7bb1af183f6355cde7c96b5041d614819f5f166bace2ec54abab8c269192947e7412 SHA512 8ab439c086aee9abd7eb4c8f87c1577ab91084d6b685ddf487762abd36cd2dca250e6c799184de3cb58d0b2de239a55a873578e772c619a4c9002f45cef5f996
+DIST nvidia-exec-0.1.2.tar.gz 16735 BLAKE2B 415b35ca77d3c812e4a250deedd3763c772afea3e7e2e9131c49f486b2e784e6f7e22280136a3f483ed63f066651f8637b19cdfbc07bf222215e6e59e4b1b039 SHA512 605fc35713477e3236f2aad0eb01891b2cf47ba46f6528d6fe785bedb42832114bda0e4a12990aeb2be9d54781787dd4843293f06b7d616ab4639c123d693e4f
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild
similarity index 100%
rename from sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild
rename to sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2024-02-14 16:46 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-02-14 16:46 UTC (permalink / raw
To: gentoo-commits
commit: 7cbf93cf509ba4805fe3f12bea1089f758979d14
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Feb 14 16:45:01 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Feb 14 16:46:35 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7cbf93cf
sys-power/nvidia-exec: Update nvidia-exec ebuild to changes upstream
Closes: https://bugs.gentoo.org/924329
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild | 44 +++++++++++++++++++++++
sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild | 33 -----------------
sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 27 ++++++++++----
3 files changed, 64 insertions(+), 40 deletions(-)
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild
new file mode 100644
index 0000000000..d3b619ba11
--- /dev/null
+++ b/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..12} )
+
+inherit systemd
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git"
+else
+ SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
+HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+RDEPEND="
+ app-misc/jq
+ sys-apps/lshw
+ sys-process/lsof
+ x11-drivers/nvidia-drivers
+"
+
+KEYWORDS="~amd64 ~x86"
+
+src_install() {
+ dobin "${WORKDIR}/${P}/nvx"
+ systemd_dounit "${WORKDIR}/${P}/nvx.service"
+ insinto /usr/lib/modprobe.d
+ newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
+}
+
+pkg_postinst() {
+ 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"
+}
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild
deleted file mode 100644
index 34cdc38b9f..0000000000
--- a/sys-power/nvidia-exec/nvidia-exec-0.1.2.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..12} )
-
-inherit systemd
-
-SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-
-DESCRIPTION="Lenovo Legion Linux kernel module"
-HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
-
-LICENSE="GPL-3"
-SLOT="0"
-
-KEYWORDS="~amd64 ~x86"
-
-src_install() {
- dobin "${WORKDIR}/${P}/nvx"
- insinto /usr/lib/systemd/system-sleep
- doins "${WORKDIR}/${P}/nvx-suspend-restore"
- systemd_dounit "${WORKDIR}/${P}/nvx.service"
- insinto /usr/lib/modprobe.d
- newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
-}
-
-pkg_postinst() {
- ewarn "Don't forget to reload dbus to enable \"nvx\" service, \
-by runnning:\n \`systemctl daemon-reload && systemctl enable --now nvx\`\n"
-}
diff --git a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
index 7b9751ab99..d3b619ba11 100644
--- a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
@@ -6,26 +6,39 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
-inherit git-r3 systemd
+inherit systemd
-EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git"
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git"
+else
+ SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
-DESCRIPTION="Lenovo Legion Linux kernel module"
+DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
LICENSE="GPL-3"
SLOT="0"
+RDEPEND="
+ app-misc/jq
+ sys-apps/lshw
+ sys-process/lsof
+ x11-drivers/nvidia-drivers
+"
+
+KEYWORDS="~amd64 ~x86"
+
src_install() {
dobin "${WORKDIR}/${P}/nvx"
- insinto /usr/lib/systemd/system-sleep
- doins "${WORKDIR}/${P}/nvx-suspend-restore"
systemd_dounit "${WORKDIR}/${P}/nvx.service"
insinto /usr/lib/modprobe.d
newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
}
pkg_postinst() {
- ewarn "Don't forget to reload dbus to enable \"nvx\" service, \
-by runnning:\n \`systemctl daemon-reload && systemctl enable --now nvx\`\n"
+ 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"
}
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2024-02-14 16:50 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-02-14 16:50 UTC (permalink / raw
To: gentoo-commits
commit: b8debfa0ec39e6aef34337f94dd75ca2ce01a91e
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Feb 14 16:50:40 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Feb 14 16:50:40 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b8debfa0
sys-power/nvidia-exec: unkeyword 9999 for ~amd64, ~x86
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild | 3 +--
sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild
index d3b619ba11..dc28323cdb 100644
--- a/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild
@@ -13,6 +13,7 @@ if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git"
else
SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
@@ -28,8 +29,6 @@ RDEPEND="
x11-drivers/nvidia-drivers
"
-KEYWORDS="~amd64 ~x86"
-
src_install() {
dobin "${WORKDIR}/${P}/nvx"
systemd_dounit "${WORKDIR}/${P}/nvx.service"
diff --git a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
index d3b619ba11..dc28323cdb 100644
--- a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
@@ -13,6 +13,7 @@ if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/pedro00dk/nvidia-exec.git"
else
SRC_URI="https://github.com/pedro00dk/nvidia-exec/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
@@ -28,8 +29,6 @@ RDEPEND="
x11-drivers/nvidia-drivers
"
-KEYWORDS="~amd64 ~x86"
-
src_install() {
dobin "${WORKDIR}/${P}/nvx"
systemd_dounit "${WORKDIR}/${P}/nvx.service"
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2024-05-21 15:59 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-05-21 15:59 UTC (permalink / raw
To: gentoo-commits
commit: bc6d970a9553d584ef0ab040297da285bbdc5d59
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue May 21 15:58:06 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> 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 <gonegrier.duarte <AT> 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
+#}
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2024-05-21 21:20 Quincy Fleming
0 siblings, 0 replies; 12+ messages in thread
From: Quincy Fleming @ 2024-05-21 21:20 UTC (permalink / raw
To: gentoo-commits
commit: 33599a396007a19c6f8c741265078912411622ca
Author: Quincy Fleming <quincyf467 <AT> protonmail <DOT> com>
AuthorDate: Tue May 21 21:20:17 2024 +0000
Commit: Quincy Fleming <quincyf467 <AT> protonmail <DOT> com>
CommitDate: Tue May 21 21:20:17 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=33599a39
sys-power/nvidia-exec: update LICENSE
Signed-off-by: Quincy Fleming <quincyf467 <AT> protonmail.com>
sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
index 99c4e57ee..b0fff053c 100644
--- a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
@@ -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"
+LICENSE="GPL-3"
SLOT="0"
RDEPEND="
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2024-05-21 21:20 Quincy Fleming
0 siblings, 0 replies; 12+ messages in thread
From: Quincy Fleming @ 2024-05-21 21:20 UTC (permalink / raw
To: gentoo-commits
commit: 967eeb5b104507c5ab89b14529dbf497802384de
Author: Quincy Fleming <quincyf467 <AT> protonmail <DOT> com>
AuthorDate: Tue May 21 21:19:02 2024 +0000
Commit: Quincy Fleming <quincyf467 <AT> protonmail <DOT> com>
CommitDate: Tue May 21 21:19:33 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=967eeb5b
sys-power/nvidia-exec: update LICENSE
Signed-off-by: Quincy Fleming <quincyf467 <AT> protonmail.com>
sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild
index 99c4e57ee..b0fff053c 100644
--- a/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild
@@ -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"
+LICENSE="GPL-3"
SLOT="0"
RDEPEND="
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2024-05-23 8:01 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-05-23 8:01 UTC (permalink / raw
To: gentoo-commits
commit: cf4b270f81e07c77e859c2674a341e7c1b586baa
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Thu May 23 08:01:00 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Thu May 23 08:01:29 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cf4b270f
sys-power/nvidia-exec: add 0.2.7, drop 0.2.7
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-power/nvidia-exec/Manifest | 2 +-
.../{nvidia-exec-0.2.1.ebuild => nvidia-exec-0.2.7.ebuild} | 14 +++-----------
sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 14 +++-----------
3 files changed, 7 insertions(+), 23 deletions(-)
diff --git a/sys-power/nvidia-exec/Manifest b/sys-power/nvidia-exec/Manifest
index 6bd3acf47..865494e23 100644
--- a/sys-power/nvidia-exec/Manifest
+++ b/sys-power/nvidia-exec/Manifest
@@ -1 +1 @@
-DIST nvidia-exec-0.2.1.tar.gz 17932 BLAKE2B ca66d51e37671f1ff834e3b6088fc599dd9bf63690c4e0dbd7e9cb6e63ef717d70bdd2e4de9560152e48694047ed418dab80377833b47c8e8f9b4e887cb7f3e6 SHA512 dc1b5aa0229550bfb2703b8308be960323f509d1765c45e7b0ef760d6f691e56dd98a929e140e72accda5f1e690273d901a422a5c9d442a484988ed3aafafaee
+DIST nvidia-exec-0.2.7.tar.gz 19024 BLAKE2B d7efb69bdadde9a60482e79c9d6e6595d4b89e27635d78d4f63976b328a8d2361a1cd4fb18cfc1ac02990a1c460fc83b778258b49f913ef10b5c1b0fe0c8aba5 SHA512 a7d1f4bca5b0e103952f7e06babf85896f68a04357dd0a8c0dc551d09ca3045d382cd5412900d832ba21373c0cc519614575668e58334bebe8032b1fb3fa803d
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.2.7.ebuild
similarity index 84%
rename from sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild
rename to sys-power/nvidia-exec/nvidia-exec-0.2.7.ebuild
index b0fff053c..39f2bd3a1 100644
--- a/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-0.2.7.ebuild
@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
-inherit systemd # udev future use
+inherit distutils-r1 systemd
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -29,25 +29,17 @@ RDEPEND="
x11-drivers/nvidia-drivers
"
-#src_configure() {
-# econf --with-rulesdir="$(get_udevdir)"/rules.d
-#}
-
src_install() {
newbin "${WORKDIR}/${P}/nvx.py" nvx
systemd_dounit "${WORKDIR}/${P}/nvx.service"
insinto /usr/lib/modprobe.d
newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf
- #udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx
+ insinto /etc/
+ newins "${WORKDIR}/${P}/nvx-options.conf" nvx.conf
}
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 b0fff053c..39f2bd3a1 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 # udev future use
+inherit distutils-r1 systemd
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -29,25 +29,17 @@ RDEPEND="
x11-drivers/nvidia-drivers
"
-#src_configure() {
-# econf --with-rulesdir="$(get_udevdir)"/rules.d
-#}
-
src_install() {
newbin "${WORKDIR}/${P}/nvx.py" nvx
systemd_dounit "${WORKDIR}/${P}/nvx.service"
insinto /usr/lib/modprobe.d
newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf
- #udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx
+ insinto /etc/
+ newins "${WORKDIR}/${P}/nvx-options.conf" nvx.conf
}
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
-#}
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/
@ 2024-05-24 22:09 Gonçalo Negrier Duarte
0 siblings, 0 replies; 12+ messages in thread
From: Gonçalo Negrier Duarte @ 2024-05-24 22:09 UTC (permalink / raw
To: gentoo-commits
commit: a9c8ece8caadf2fcea7bf897fb85b67ab931bafe
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Fri May 24 21:58:47 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Fri May 24 22:09:42 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a9c8ece8
sys-power/nvidia-exec: fix ebuild
* the packages only requires to copy files
* no need for distutils-r1
Closes: https://bugs.gentoo.org/932603
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
...nvidia-exec-0.2.7.ebuild => nvidia-exec-0.2.7-r1.ebuild} | 13 +++++--------
sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 13 +++++--------
2 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.2.7.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.2.7-r1.ebuild
similarity index 86%
rename from sys-power/nvidia-exec/nvidia-exec-0.2.7.ebuild
rename to sys-power/nvidia-exec/nvidia-exec-0.2.7-r1.ebuild
index 39f2bd3a1..24ee35d2e 100644
--- a/sys-power/nvidia-exec/nvidia-exec-0.2.7.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-0.2.7-r1.ebuild
@@ -3,10 +3,7 @@
EAPI=8
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..12} )
-
-inherit distutils-r1 systemd
+inherit systemd
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -23,10 +20,10 @@ LICENSE="GPL-3"
SLOT="0"
RDEPEND="
- app-misc/jq
- sys-apps/lshw
- sys-process/lsof
- x11-drivers/nvidia-drivers
+ dev-lang/python
+ sys-apps/lshw
+ sys-process/lsof
+ x11-drivers/nvidia-drivers
"
src_install() {
diff --git a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
index 39f2bd3a1..24ee35d2e 100644
--- a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
@@ -3,10 +3,7 @@
EAPI=8
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..12} )
-
-inherit distutils-r1 systemd
+inherit systemd
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -23,10 +20,10 @@ LICENSE="GPL-3"
SLOT="0"
RDEPEND="
- app-misc/jq
- sys-apps/lshw
- sys-process/lsof
- x11-drivers/nvidia-drivers
+ dev-lang/python
+ sys-apps/lshw
+ sys-process/lsof
+ x11-drivers/nvidia-drivers
"
src_install() {
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-05-24 22:09 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-24 22:09 [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/ Gonçalo Negrier Duarte
-- strict thread matches above, loose matches on Subject: below --
2024-05-23 8:01 Gonçalo Negrier Duarte
2024-05-21 21:20 Quincy Fleming
2024-05-21 21:20 Quincy Fleming
2024-05-21 15:59 Gonçalo Negrier Duarte
2024-02-14 16:50 Gonçalo Negrier Duarte
2024-02-14 16:46 Gonçalo Negrier Duarte
2024-02-09 21:36 Gonçalo Negrier Duarte
2023-08-05 12:02 Gonçalo Negrier Duarte
2023-07-16 6:18 Haelwenn Monnier
2023-07-13 20:34 Gonçalo Negrier Duarte
2023-07-13 20:34 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