mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
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:
@@ -1 +1 @@
|
||||
DIST nvidia-exec-0.2.1.tar.gz 17932 BLAKE2B ca66d51e37671f1ff834e3b6088fc599dd9bf63690c4e0dbd7e9cb6e63ef717d70bdd2e4de9560152e48694047ed418dab80377833b47c8e8f9b4e887cb7f3e6 SHA512 dc1b5aa0229550bfb2703b8308be960323f509d1765c45e7b0ef760d6f691e56dd98a929e140e72accda5f1e690273d901a422a5c9d442a484988ed3aafafaee
|
||||
DIST nvidia-exec-0.2.7.tar.gz 19024 BLAKE2B d7efb69bdadde9a60482e79c9d6e6595d4b89e27635d78d4f63976b328a8d2361a1cd4fb18cfc1ac02990a1c460fc83b778258b49f913ef10b5c1b0fe0c8aba5 SHA512 a7d1f4bca5b0e103952f7e06babf85896f68a04357dd0a8c0dc551d09ca3045d382cd5412900d832ba21373c0cc519614575668e58334bebe8032b1fb3fa803d
|
||||
|
||||
@@ -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
|
||||
#}
|
||||
@@ -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
|
||||
#}
|
||||
|
||||
Reference in New Issue
Block a user