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 1C6B315800A for ; Thu, 13 Jul 2023 20:34:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A732E07E6; Thu, 13 Jul 2023 20:34:44 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3BB47E07E6 for ; Thu, 13 Jul 2023 20:34:44 +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 14CFA335DC1 for ; Thu, 13 Jul 2023 20:34:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6FE80ACE for ; Thu, 13 Jul 2023 20:34:41 +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: <1689280103.40372f3fe86ac2bfda5ad7bedf8e0eb4375db06b.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/metadata.xml 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: 40372f3fe86ac2bfda5ad7bedf8e0eb4375db06b X-VCS-Branch: dev Date: Thu, 13 Jul 2023 20:34:41 +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: 2f270ae2-f982-4fd8-937d-22e61facadb3 X-Archives-Hash: 2afb04e9ec8b788253d2017baf66caa7 commit: 40372f3fe86ac2bfda5ad7bedf8e0eb4375db06b Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Thu Jul 13 20:28:23 2023 +0000 Commit: Gonçalo Negrier Duarte gmail 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 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 @@ + + + + + pedro00dk/nvidia-exec + + + 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" +}