diff options
author | Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> | 2023-07-13 21:28:23 +0100 |
---|---|---|
committer | Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com> | 2023-07-13 21:28:23 +0100 |
commit | 40372f3fe86ac2bfda5ad7bedf8e0eb4375db06b (patch) | |
tree | 1aee7a7b6bf4fb492366b31e8b837de002e8d778 /sys-power | |
parent | games-util/HeroicGamesLauncher-bin: games-util/HeroicGamesLauncher-bin: fix g... (diff) | |
download | guru-40372f3fe86ac2bfda5ad7bedf8e0eb4375db06b.tar.gz guru-40372f3fe86ac2bfda5ad7bedf8e0eb4375db06b.tar.bz2 guru-40372f3fe86ac2bfda5ad7bedf8e0eb4375db06b.zip |
sys-power/nvidia-exec: new package, add 9999
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/nvidia-exec/metadata.xml | 8 | ||||
-rw-r--r-- | sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 31 |
2 files changed, 39 insertions, 0 deletions
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" +} |