diff --git a/sys-power/nvidia-exec/Manifest b/sys-power/nvidia-exec/Manifest new file mode 100644 index 0000000000..28aa6ea8e5 --- /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 0000000000..f2e2d0b9cd --- /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" +}