mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
sys-power/nvidia-exec: add 0.2.1, drop 0.1.2-r1
* also add udev logic for future release Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST nvidia-exec-0.1.2.tar.gz 16735 BLAKE2B 415b35ca77d3c812e4a250deedd3763c772afea3e7e2e9131c49f486b2e784e6f7e22280136a3f483ed63f066651f8637b19cdfbc07bf222215e6e59e4b1b039 SHA512 605fc35713477e3236f2aad0eb01891b2cf47ba46f6528d6fe785bedb42832114bda0e4a12990aeb2be9d54781787dd4843293f06b7d616ab4639c123d693e4f
|
||||
DIST nvidia-exec-0.2.1.tar.gz 17932 BLAKE2B ca66d51e37671f1ff834e3b6088fc599dd9bf63690c4e0dbd7e9cb6e63ef717d70bdd2e4de9560152e48694047ed418dab80377833b47c8e8f9b4e887cb7f3e6 SHA512 dc1b5aa0229550bfb2703b8308be960323f509d1765c45e7b0ef760d6f691e56dd98a929e140e72accda5f1e690273d901a422a5c9d442a484988ed3aafafaee
|
||||
|
||||
@@ -6,7 +6,7 @@ EAPI=8
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{9..12} )
|
||||
|
||||
inherit systemd
|
||||
inherit systemd # udev future use
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
@@ -19,7 +19,7 @@ fi
|
||||
DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
|
||||
HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
LICENSE="GPL"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
@@ -29,15 +29,25 @@ RDEPEND="
|
||||
x11-drivers/nvidia-drivers
|
||||
"
|
||||
|
||||
#src_configure() {
|
||||
# econf --with-rulesdir="$(get_udevdir)"/rules.d
|
||||
#}
|
||||
|
||||
src_install() {
|
||||
dobin "${WORKDIR}/${P}/nvx"
|
||||
newbin "${WORKDIR}/${P}/nvx.py" nvx
|
||||
systemd_dounit "${WORKDIR}/${P}/nvx.service"
|
||||
insinto /usr/lib/modprobe.d
|
||||
newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
|
||||
newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf
|
||||
#udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx
|
||||
}
|
||||
|
||||
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
|
||||
inherit systemd # udev future use
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
@@ -19,7 +19,7 @@ fi
|
||||
DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
|
||||
HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
LICENSE="GPL"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
@@ -29,15 +29,25 @@ RDEPEND="
|
||||
x11-drivers/nvidia-drivers
|
||||
"
|
||||
|
||||
#src_configure() {
|
||||
# econf --with-rulesdir="$(get_udevdir)"/rules.d
|
||||
#}
|
||||
|
||||
src_install() {
|
||||
dobin "${WORKDIR}/${P}/nvx"
|
||||
newbin "${WORKDIR}/${P}/nvx.py" nvx
|
||||
systemd_dounit "${WORKDIR}/${P}/nvx.service"
|
||||
insinto /usr/lib/modprobe.d
|
||||
newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
|
||||
newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf
|
||||
#udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx
|
||||
}
|
||||
|
||||
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