aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:41:10 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:41:10 +0200
commitd58235c26a4d0da778b867840df6109d21ddff33 (patch)
tree19b0bf252edbbaaf4e69cd373940451ae0f006ac
parent953c8fb3fc46f5eb175647fcbbfac643cbe869be (diff)
system/nvidia-legacy173-kernel: Updated for version 173.14.22
-rw-r--r--system/nvidia-legacy173-kernel/doinst.sh1
-rw-r--r--system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild40
-rw-r--r--system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.info12
3 files changed, 31 insertions, 22 deletions
diff --git a/system/nvidia-legacy173-kernel/doinst.sh b/system/nvidia-legacy173-kernel/doinst.sh
index 03d260b752d77..bafd9c3607a93 100644
--- a/system/nvidia-legacy173-kernel/doinst.sh
+++ b/system/nvidia-legacy173-kernel/doinst.sh
@@ -1 +1,2 @@
+
chroot . /sbin/depmod -ae @KERNEL@
diff --git a/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild b/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild
index 209370b10170f..bb26e80714b29 100644
--- a/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild
+++ b/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.SlackBuild
@@ -1,8 +1,8 @@
#!/bin/sh
-# Slackware build script for nvidia-kernel
+# Slackware build script for nvidia-legacy173-kernel
-# Copyright 2007-2009 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2007-2009 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,26 +27,35 @@
KERNEL=${KERNEL:-$(uname -r)}
KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build}
-VERSION=173.14.18
-NAME=NVIDIA-Linux-x86-$VERSION-pkg0
-PKG_NAME=nvidia-legacy173-kernel
-PKG_VERS=${VERSION}_$(echo $KERNEL | tr - _)
+VERSION=173.14.22
+PRGNAM=nvidia-legacy173-kernel
+PKGVER=${VERSION}_$(echo $KERNEL | tr - _)
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+if [ "$ARCH" = "i486" ]; then
+ TARGET="x86"
+elif [ "$ARCH" = "i686" ]; then
+ TARGET="x86"
+elif [ "$ARCH" = "x86_64" ]; then
+ TARGET="x86_64"
+fi
+
+SRCNAM=NVIDIA-Linux-$TARGET-$VERSION-pkg0
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=${PKG:-$TMP/package-$PKG_NAME}
+PKG=${PKG:-$TMP/package-$PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
-rm -rf $NAME
-sh $CWD/$NAME.run --extract-only || exit 1
-cd $NAME || exit 1
+rm -rf $SRCNAM
+sh $CWD/$SRCNAM.run --extract-only || exit 1
+cd $SRCNAM || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -54,19 +63,16 @@ cd usr/src/nv/ || exit 1
make SYSSRC=$KERNELPATH module || exit 1
-# It seems better as DESTDIR doesn't work here, to install the module manually.
-#make SYSSRC=$KERNELPATH install DESTDIR=$PKG || exit 1
-
mkdir -p $PKG/lib/modules/$KERNEL/kernel/drivers/video
install -m 0664 nvidia.ko $PKG/lib/modules/$KERNEL/kernel/drivers/video/
-mkdir -p $PKG/usr/doc/$PKG_NAME-$PKG_VERS
-cp -a README $PKG/usr/doc/$PKG_NAME-$PKG_VERS
-cat $CWD/$PKG_NAME.SlackBuild > $PKG/usr/doc/$PKG_NAME-$PKG_VERS/$PKG_NAME.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$PKGVER
+cp -a README $PKG/usr/doc/$PRGNAM-$PKGVER
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKGVER/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PKG_NAME-$PKG_VERS-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKGVER-$TARGET-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.info b/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.info
index 855facdeda2c9..cb7fba6d3ac94 100644
--- a/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.info
+++ b/system/nvidia-legacy173-kernel/nvidia-legacy173-kernel.info
@@ -1,8 +1,10 @@
PRGNAM="nvidia-legacy173-kernel"
-VERSION="173.14.18"
+VERSION="173.14.22"
HOMEPAGE="http://www.nvidia.com"
-DOWNLOAD="http://us.download.nvidia.com/XFree86/Linux-x86/173.14.18/NVIDIA-Linux-x86-173.14.18-pkg0.run"
-MD5SUM="480c10f3d861fd2c3cc2a46bccc961a4"
-MAINTAINER="ppr:kut"
+DOWNLOAD="ftp://download.nvidia.com/XFree86/Linux-x86/173.14.22/NVIDIA-Linux-x86-173.14.22-pkg0.run"
+DOWNLOAD_x86_64="ftp://download.nvidia.com/XFree86/Linux-x86_64/173.14.22/NVIDIA-Linux-x86_64-173.14.22-pkg0.run"
+MD5SUM="6bbf9a164cd3f8b84774c6bdca758a14"
+MD5SUM_x86_64="148d68a518348330fd8047266552776c"
+MAINTAINER="Heinz Wiesinger"
EMAIL="pprkut@liwjatan.at"
-APPROVED="rworkman"
+APPROVED="Erik Hanson"