mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
sys-power/nvidia-exec: drop 0.2.7, add 0.3.2, initial openrc support
Taking over maintainership. Signed-off-by: Joe Kappus <joe@wt.gd>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -13,7 +13,7 @@ else
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
|
||||
DESCRIPTION="GPU switching without log out for Nvidia Optimus laptops under Linux"
|
||||
HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
@@ -27,16 +27,20 @@ RDEPEND="
|
||||
"
|
||||
|
||||
src_install() {
|
||||
newbin "${WORKDIR}/${P}/nvx.py" nvx
|
||||
systemd_dounit "${WORKDIR}/${P}/nvx.service"
|
||||
newbin "${S}/nvx.py" nvx
|
||||
systemd_dounit "${S}/nvx.service"
|
||||
newinitd "${FILESDIR}/nvx.initd" nvx
|
||||
insinto /usr/lib/modprobe.d
|
||||
newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf
|
||||
newins "${S}/nvx-modprobe.conf" nvx.conf
|
||||
insinto /etc/
|
||||
newins "${WORKDIR}/${P}/nvx-options.conf" nvx.conf
|
||||
newins "${S}/nvx-options.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"
|
||||
elog "To enable nvx at boot:"
|
||||
elog " OpenRC: rc-update add nvx default"
|
||||
elog " systemd: systemctl enable --now nvx"
|
||||
elog ""
|
||||
elog "The nvx service prevents nvidia modules from loading and turns off the graphics card during boot."
|
||||
elog "It is not necessary to handle files, configurations, PCI buses, etc, all that is done automatically."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user