void-packages/srcpkgs/nvidia304/nvidia304-dkms.template

25 lines
702 B
Plaintext

# Template file for 'nvidia304-dkms'.
#
short_desc="NVIDIA drivers for linux (304.xx series) -- DKMS kernel module"
nonfree=yes
triggers="dkms"
provides="nvidia-dkms-${version}"
replaces="nvidia-dkms>=0"
dkms_modules="nvidia ${version}"
do_install() {
vmkdir usr/src/nvidia-${version}
vcopy "${_pkg}/kernel/*" usr/src/nvidia-${version}
# 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
# 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
}