2012-09-14 15:05:39 +00:00
|
|
|
# Template file for 'nvidia-dkms'.
|
|
|
|
#
|
2012-11-14 11:36:20 +00:00
|
|
|
short_desc="NVIDIA non free driver -- DKMS kernel module"
|
|
|
|
long_desc="
|
|
|
|
This package contains the NVIDIA non free kernel module files for DKMS."
|
2012-09-14 15:05:39 +00:00
|
|
|
|
|
|
|
nonfree=yes
|
|
|
|
triggers="dkms"
|
|
|
|
dkms_modules="nvidia ${version}"
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/src/nvidia-${version}
|
|
|
|
vcopy "${_pkg}/kernel/*" usr/src/nvidia-${version}
|
|
|
|
|
2012-09-15 15:00:20 +00:00
|
|
|
# systemd modules-load.d(5) file.
|
|
|
|
vmkdir usr/lib/modules-load.d
|
|
|
|
echo "nvidia" > ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
|
|
|
chmod 644 ${DESTDIR}/usr/lib/modules-load.d/nvidia.conf
|
|
|
|
|
2012-09-14 15:05:39 +00:00
|
|
|
# Blacklist nouveau.
|
|
|
|
vmkdir usr/lib/modprobe.d
|
|
|
|
echo "blacklist nouveau" > ${DESTDIR}/usr/lib/modprobe.d/nvidia.conf
|
|
|
|
chmod 644 ${DESTDIR}/usr/lib/modprobe.d/nvidia.conf
|
|
|
|
}
|