aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-driver
diff options
context:
space:
mode:
Diffstat (limited to 'system/nvidia-driver')
-rw-r--r--system/nvidia-driver/nvidia-driver.SlackBuild46
-rw-r--r--system/nvidia-driver/nvidia-driver.info26
2 files changed, 29 insertions, 43 deletions
diff --git a/system/nvidia-driver/nvidia-driver.SlackBuild b/system/nvidia-driver/nvidia-driver.SlackBuild
index 73b110fcc086..84e57ed92ec1 100644
--- a/system/nvidia-driver/nvidia-driver.SlackBuild
+++ b/system/nvidia-driver/nvidia-driver.SlackBuild
@@ -27,8 +27,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nvidia-driver
-VERSION=${VERSION:-525.89.02}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-525.116.03}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -71,6 +71,14 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
+if [ "${PERSISTENCED:-no}" = "yes" ]; then
+ if [ `getent group nvidia > /dev/null` -o `getent passwd nvidia > /dev/null` ]; then
+ echo "User and/or group nvidia do not exist!"
+ echo "Please create user and group nvidia and rerun this script."
+ exit 1
+ fi
+fi
+
SRCNAM=NVIDIA-Linux-$TARGET-${VERSION}
# make a clean package directory tree
@@ -191,7 +199,7 @@ rm -rf $PKG/usr/lib/nvidia || true
rm -rf $PKG/var/lib || true
# Mitigate a bug in nvidia-installer that misplaces a symlink
-# (Thanks to marco70 on LQ for catching this:
+# (Thanks to marco70 on LQ for catching this)
( cd $PKG/usr/lib${LIBDIRSUFFIX}/gbm
rm -f nvidia-drm_gbm.so
ln -sf ../libnvidia-allocator.so.1 nvidia-drm_gbm.so
@@ -289,7 +297,7 @@ fi
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Add rc.nvidia-persistenced:
+# Add nvidia-persistenced:
if [ "${PERSISTENCED:-no}" = "yes" ]; then
cd $TMP
rm -rf nvidia-persistenced-$VERSION.tar.bz2
@@ -306,34 +314,12 @@ if [ "${PERSISTENCED:-no}" = "yes" ]; then
CFLAGS="$SLKCFLAGS" make
install -m 755 _out/Linux_$TARGET/nvidia-persistenced $PKG/usr/bin/
install -m 644 _out/Linux_$TARGET/nvidia-persistenced.1.gz $PKG/usr/man/man1/
-
- if ! getent group nvidia > /dev/null 2>&1; then
- echo "Creating the group nvidia:"
- groupadd -g 365 nvidia || exit 1
- fi
- if ! getent passwd nvidia > /dev/null 2>&1; then
- echo "Creating the user nvidia:"
- useradd -u 365 -g 365 -c "Nvidia" -d /dev/null -s /bin/false nvidia || exit 1
- fi
- mkdir -p $PKG/var/run/nvidia-persistenced
- chown nvidia:nvidia $PKG/var/run/nvidia-persistenced
- mkdir -p $PKG/etc/rc.d
+# install rc.nvidia-perstistenced:
+ mkdir -p $PKG/etc/rc.d $PKG/var/run/nvidia-persistenced
install -m 755 $CWD/rc.nvidia-persistenced $PKG/etc/rc.d/rc.nvidia-persistenced
- sed -i "s|__USER__|nvidia|" $PKG/etc/rc.d/rc.nvidia-persistenced
- cat <<EOF >> $PKG/install/doinst.sh
-# Create group and user nvidia if they don't already exist
-if ! getent group nvidia > /dev/null 2>&1; then
- echo "Creating the group nvidia:"
- groupadd -g 365 nvidia || exit 1
-fi
-if ! getent passwd nvidia > /dev/null 2>&1; then
- echo "Creating the user nvidia:"
- useradd -u 365 -g 365 -c "Nvidia" -d /dev/null -s /bin/false nvidia || exit 1
-fi
-
-EOF
+ chown nvidia:nvidia $PKG/var/run/nvidia-persistenced
fi
-# Flag multlib as needed and build package.
+# Flag multilib as needed and build package.
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION$MULTI-$TARGET-$BUILD$TAG.$PKGTYPE
diff --git a/system/nvidia-driver/nvidia-driver.info b/system/nvidia-driver/nvidia-driver.info
index cd726273a936..1c229fab7577 100644
--- a/system/nvidia-driver/nvidia-driver.info
+++ b/system/nvidia-driver/nvidia-driver.info
@@ -1,20 +1,20 @@
PRGNAM="nvidia-driver"
-VERSION="525.89.02"
+VERSION="525.116.03"
HOMEPAGE="http://www.nvidia.com"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/Linux-x86_64/525.89.02/NVIDIA-Linux-x86_64-525.89.02.run \
- https://download.nvidia.com/XFree86/nvidia-installer/nvidia-installer-525.89.02.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-525.89.02.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-525.89.02.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-525.89.02.tar.bz2 \
- https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-525.89.02.tar.bz2"
-MD5SUM_x86_64="2cd1ed226595db34f9390d0a85f370ff \
- 2f78842451d628dbf9eecb3b241ec107 \
- cc24dfd9994ff28d7a33598587f523cb \
- 9773208ffdd34cce32a9708433463720 \
- 3013533e08a16d52beb3535e6d0ccc5d \
- 056f5a0e35063d257aa0e6dba974de57"
+DOWNLOAD_x86_64="https://download.nvidia.com/XFree86/Linux-x86_64/525.116.03/NVIDIA-Linux-x86_64-525.116.03.run \
+ https://download.nvidia.com/XFree86/nvidia-installer/nvidia-installer-525.116.03.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-525.116.03.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-525.116.03.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-525.116.03.tar.bz2 \
+ https://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-525.116.03.tar.bz2"
+MD5SUM_x86_64="5a941ba275fa02560f91f5f1292b0302 \
+ 6ae928754bd555561ae2b693889e8b58 \
+ de41610fce1dea7ccb9553c22849c8ef \
+ ec4e5c7ec1cb8190e0940e59931bf554 \
+ 00b9ff03e3b20818d4dda047de01a51f \
+ a1582c05d148f257b402b879dcc78e55"
REQUIRES="nvidia-kernel"
MAINTAINER="Lenard Spencer"
EMAIL="lenardrspencer@gmail.com"