script fixes to NVIDIA-FreeBSD-x86_64-375.26

Installing this package needs two fixes:

  • in lib/Makefile replace the call to the "old" pkg program by a call to the "new" pkg program; on line 72: replace: SUFFIX=`pkg_info -qW $${__file}` ; RESULT=$$? ; \ by: SUFFIX=`pkg which -q $${__file}` ; RESULT=$$? ; \
  • in lscripts/setup.sh replace single quotes (') by double quotes (") in the echo statements on lines 16+17 and 39; these should read:
    echo "ERROR: Failed to unload the ${_module} module!"
    echo "ERROR: Is ${_module}.ko in use?"
    

    and

    echo "ERROR: Failed to load the ${_module} module!"
    

    ,

After applying these changes, installation was OK on FreeBSD 10.3-RELEASE.
If an old version of the NVIDIA driver is already installed, stop the Xorg server before insta wlling the new driver.
The setup.sh script creates a new /etc/X11/xorg.conf file, which I had to merge into /usr/local/etc/X11/xorg.conf, to keep my keyboard definitions, etc.