aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonçalo Negrier Duarte <gonegrier.duarte@gmail.com>2023-07-13 21:34:15 +0100
committerGonçalo Negrier Duarte <gonegrier.duarte@gmail.com>2023-07-13 21:34:15 +0100
commit295089ef87b25afca3043a8cb131a2c8577d28b8 (patch)
tree27a1927bff48122966c6b1c8051fa16ff714e922 /sys-power
parentsys-power/nvidia-exec: new package, add 9999 (diff)
downloadguru-295089ef87b25afca3043a8cb131a2c8577d28b8.tar.gz
guru-295089ef87b25afca3043a8cb131a2c8577d28b8.tar.bz2
guru-295089ef87b25afca3043a8cb131a2c8577d28b8.zip
sys-power/nvidia-exec: add 0.1.1
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/nvidia-exec/Manifest1
-rw-r--r--sys-power/nvidia-exec/nvidia-exec-0.1.1.ebuild33
2 files changed, 34 insertions, 0 deletions
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"
+}