diff options
author | Achim Gottinger <achim@gentoo.org> | 2000-09-10 15:54:39 +0000 |
---|---|---|
committer | Achim Gottinger <achim@gentoo.org> | 2000-09-10 15:54:39 +0000 |
commit | d4d0131ccbddca6eec6e78127092b62b232d7da0 (patch) | |
tree | a9ae3be4a2bdae95d04431d32d77b59eda6c4347 /x11-base | |
parent | *** empty log message *** (diff) | |
download | gentoo-2-d4d0131ccbddca6eec6e78127092b62b232d7da0.tar.gz gentoo-2-d4d0131ccbddca6eec6e78127092b62b232d7da0.tar.bz2 gentoo-2-d4d0131ccbddca6eec6e78127092b62b232d7da0.zip |
*** empty log message ***
Diffstat (limited to 'x11-base')
-rw-r--r-- | x11-base/nvidia/files/digest-nvidia-0.9.4-r1 | 2 | ||||
-rw-r--r-- | x11-base/nvidia/files/digest-nvidia-0.9.5 | 2 | ||||
-rw-r--r-- | x11-base/nvidia/nvidia-0.9.5.ebuild (renamed from x11-base/nvidia/nvidia-0.9.4-r1.ebuild) | 40 |
3 files changed, 31 insertions, 13 deletions
diff --git a/x11-base/nvidia/files/digest-nvidia-0.9.4-r1 b/x11-base/nvidia/files/digest-nvidia-0.9.4-r1 deleted file mode 100644 index 9ffd71931f13..000000000000 --- a/x11-base/nvidia/files/digest-nvidia-0.9.4-r1 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 dd129da08d476ccaf9fa7c6bb0b60423 NVIDIA_GLX-0.9-4.xfree401.tar.gz -MD5 b0a99e3ec4070ff295f28a9fcb6d2ef6 NVIDIA_kernel-0.9-4.tar.gz diff --git a/x11-base/nvidia/files/digest-nvidia-0.9.5 b/x11-base/nvidia/files/digest-nvidia-0.9.5 new file mode 100644 index 000000000000..494445cdc663 --- /dev/null +++ b/x11-base/nvidia/files/digest-nvidia-0.9.5 @@ -0,0 +1,2 @@ +MD5 076481ac1721775bad819c29a0a8fb94 NVIDIA_GLX-0.9-5.tar.gz +MD5 130d1e7bf56eda1a93a831189b4c6420 NVIDIA_kernel-0.9-5.tar.gz diff --git a/x11-base/nvidia/nvidia-0.9.4-r1.ebuild b/x11-base/nvidia/nvidia-0.9.5.ebuild index 75afb58f1489..5205bc8a5168 100644 --- a/x11-base/nvidia/nvidia-0.9.4-r1.ebuild +++ b/x11-base/nvidia/nvidia-0.9.5.ebuild @@ -1,34 +1,40 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Achim Gottinger <achim@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/x11-base/nvidia/nvidia-0.9.4-r1.ebuild,v 1.3 2000/08/16 04:38:36 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-base/nvidia/nvidia-0.9.5.ebuild,v 1.1 2000/09/10 15:54:39 achim Exp $ -P=nvidia-0.9-4 -A="NVIDIA_GLX-0.9-4.xfree401.tar.gz NVIDIA_kernel-0.9-4.tar.gz" +A="NVIDIA_GLX-0.9-5.tar.gz NVIDIA_kernel-0.9-5.tar.gz" S=${WORKDIR} DESCRIPTION="Accelerated X drivers for NVIDIA based cards" -SRC_URI="ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/0.9-4/NVIDIA_GLX-0.9-4.xfree401.tar.gz - ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/0.9-4/NVIDIA_kernel-0.9-4.tar.gz" +SRC_URI="ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/0.9-5/NVIDIA_GLX-0.9-5.tar.gz + ftp://ftp1.detonator.nvidia.com/pub/drivers/english/XFree86_40/0.9-5/NVIDIA_kernel-0.9-5.tar.gz" src_unpack() { unpack ${A} } src_compile() { - cd ${S}/NVIDIA_kernel-0.9-4 + cd ${S}/NVIDIA_kernel-0.9-5 make NVdriver } src_install() { - cd ${S}/NVIDIA_kernel-0.9-4 + cd ${S}/NVIDIA_kernel-0.9-5 insinto /lib/modules/current/misc doins NVdriver dodir /usr/lib dodir /usr/X11R6/lib/modules/drivers dodir /usr/X11R6/lib/modules/extensions - cd ${S}/NVIDIA_GLX-0.9-4.1 + cd ${S}/NVIDIA_GLX-0.9-5 make ROOT=${D} install + dodir /dev + for i in 0 1 2 3 4; do + mknod ${D}/dev/nvidia$i c 195 $i + done + mknod ${D}/dev/nvidiactl c 195 255 + chmod 0666 ${D}/dev/nvidia* } + pkg_preinst() { . ${ROOT}/etc/rc.d/config/functions @@ -43,10 +49,21 @@ pkg_preinst() { if [ -f "${ROOT}/$i" ] then echo $i - mv ${ROOT}/$i ${ROOT}/$i.nvidia-0.9-4 + mv ${ROOT}/$i ${ROOT}/$i.nvidia-0.9-5 fi done } +pkg_config() { + if [ "${ROOT}" == "/" ] ; then + modconf="/etc/modules/"`uname -r` + if [ -f $modconf ] ; then + modtmp=/tmp/conf$$ + sed '/^alias.*char-major-.*NVdriver/d' < $modconf > $modtmp + echo "alias char-major-195 NVdriver" >> $modtmp + mv $modtmp $modconf + fi + fi +} pkg_postrm() { @@ -59,13 +76,14 @@ pkg_postrm() { /usr/X11R6/lib/libGL.so* \ /usr/X11R6/lib/libGLcore.so* do - if [ -f "${ROOT}/$i.nvidia-0.9-4" ] + if [ -f "${ROOT}/$i.nvidia-0.9-5" ] then echo $i - mv ${ROOT}/$i.nvidia-0.9-4 ${ROOT}/$i + mv ${ROOT}/$i.nvidia-0.9-5 ${ROOT}/$i fi done } + |