sys-power/nvidia-exec: add 0.2.7, drop 0.2.7

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Negrier Duarte
2024-05-23 09:01:00 +01:00
parent bed2301dd5
commit cf4b270f81
3 changed files with 7 additions and 23 deletions

View File

@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
inherit systemd # udev future use
inherit distutils-r1 systemd
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -29,25 +29,17 @@ RDEPEND="
x11-drivers/nvidia-drivers
"
#src_configure() {
# econf --with-rulesdir="$(get_udevdir)"/rules.d
#}
src_install() {
newbin "${WORKDIR}/${P}/nvx.py" nvx
systemd_dounit "${WORKDIR}/${P}/nvx.service"
insinto /usr/lib/modprobe.d
newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf
#udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx
insinto /etc/
newins "${WORKDIR}/${P}/nvx-options.conf" nvx.conf
}
pkg_postinst() {
#udev_reload
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"
}
#pkg_postrm() {
#udev_reload
#}