wok-6.x rev 1841
nvidia*: ash compatible, no hardcoded kernel version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 11 15:40:01 2008 +0000 (2008-12-11) |
parents | f4d16010477f |
children | 6fde583951a3 |
files | nvidia-glx/receipt nvidia-settings/receipt nvidia/receipt |
line diff
1.1 --- a/nvidia-glx/receipt Thu Dec 11 15:14:24 2008 +0100 1.2 +++ b/nvidia-glx/receipt Thu Dec 11 15:40:01 2008 +0000 1.3 @@ -13,13 +13,19 @@ 1.4 # Rules to gen a SliTaz package suitable for Tazpkg. 1.5 genpkg_rules() 1.6 { 1.7 - mkdir -p $fs/usr/{bin,lib/tls} 1.8 - mkdir -p $fs/usr/lib/X11/modules/{extensions,drivers} 1.9 + mkdir -p $fs/usr/bin $fs/usr/lib/tls 1.10 + mkdir -p $fs/usr/lib/X11/modules/extensions $fs/usr/lib/X11/modules/drivers 1.11 1.12 - install -m755 $src/usr/lib/lib{GL,GLcore,nvidia-cfg,nvidia-tls}.so.$VERSION $fs/usr/lib 1.13 - install -m755 $src/usr/{lib/tls,X11R6/lib}/lib*.so.$VERSION $fs/usr/lib/tls 1.14 - install -m755 $src/usr/X11R6/lib/modules/drivers/nvidia_drv.so $fs/usr/lib/X11/modules/drivers 1.15 - install -m755 $src/usr/X11R6/lib/modules/extensions/libglx.so.$VERSION $fs/usr/lib/X11/modules/extensions 1.16 + install -m755 $src/usr/lib/libGL.so.$VERSION \ 1.17 + $src/usr/lib/libGLcore.so.$VERSION \ 1.18 + $src/usr/lib/libnvidia-cfg.so.$VERSION \ 1.19 + $src/usr/lib/libnvidia-tls.so.$VERSION $fs/usr/lib 1.20 + install -m755 $src/usr/lib/tls/lib*.so.$VERSION \ 1.21 + $src/usr/X11R6/lib/lib*.so.$VERSION $fs/usr/lib/tls 1.22 + install -m755 $src/usr/X11R6/lib/modules/drivers/nvidia_drv.so \ 1.23 + $fs/usr/lib/X11/modules/drivers 1.24 + install -m755 $src/usr/X11R6/lib/modules/extensions/libglx.so.$VERSION \ 1.25 + $fs/usr/lib/X11/modules/extensions 1.26 1.27 install -m755 $src/usr/bin/nvidia-xconfig $fs/usr/bin/ 1.28
2.1 --- a/nvidia-settings/receipt Thu Dec 11 15:14:24 2008 +0100 2.2 +++ b/nvidia-settings/receipt Thu Dec 11 15:40:01 2008 +0000 2.3 @@ -12,10 +12,14 @@ 2.4 # Rules to gen a SliTaz package suitable for Tazpkg. 2.5 genpkg_rules() 2.6 { 2.7 - mkdir -p $fs/usr/{bin,share/pixmaps,share/applications} 2.8 + mkdir -p $fs/usr/bin $fs/usr/share/pixmaps $fs/usr/share/applications 2.9 install -m755 $src/usr/bin/nvidia-settings $fs/usr/bin/ 2.10 - install -m644 $src/usr/share/pixmaps/nvidia-settings.png $fs/usr/share/pixmaps/ 2.11 - install -m644 $src/usr/share/applications/nvidia-settings.desktop $fs/usr/share/applications/ 2.12 - sed -i 's:__UTILS_PATH__:/usr/bin:' $fs/usr/share/applications/nvidia-settings.desktop 2.13 - sed -i 's:__PIXMAP_PATH__:/usr/share/pixmaps:' $fs/usr/share/applications/nvidia-settings.desktop 2.14 + install -m644 $src/usr/share/pixmaps/nvidia-settings.png \ 2.15 + $fs/usr/share/pixmaps/ 2.16 + install -m644 $src/usr/share/applications/nvidia-settings.desktop \ 2.17 + $fs/usr/share/applications/ 2.18 + sed -i 's:__UTILS_PATH__:/usr/bin:' \ 2.19 + $fs/usr/share/applications/nvidia-settings.desktop 2.20 + sed -i 's:__PIXMAP_PATH__:/usr/share/pixmaps:' \ 2.21 + $fs/usr/share/applications/nvidia-settings.desktop 2.22 }
3.1 --- a/nvidia/receipt Thu Dec 11 15:14:24 2008 +0100 3.2 +++ b/nvidia/receipt Thu Dec 11 15:40:01 2008 +0000 3.3 @@ -2,7 +2,6 @@ 3.4 3.5 PACKAGE="nvidia" 3.6 VERSION="177.82" 3.7 -KERNEL_VERSION="2.6.25.5-slitaz" 3.8 CATEGORY="non-free" 3.9 SHORT_DESC="NVIDIA X.org kernel driver." 3.10 MAINTAINER="b1+slitaz@nagel.org" 3.11 @@ -41,6 +40,8 @@ 3.12 # Rules to gen a SliTaz package suitable for Tazpkg. 3.13 genpkg_rules() 3.14 { 3.15 + KERNEL_VERSION=$(grep "kernel version" ../linux/linux-*/.config) 3.16 + KERNEL_VERSION=${KERNEL_VERSION##* }-slitaz 3.17 mkdir -p $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video 3.18 install -m644 $src/usr/src/nv/nvidia.ko $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video/ 3.19 mkdir -p $fs/usr/share/doc/nvidia 3.20 @@ -50,10 +51,10 @@ 3.21 # Post install/remove commands for Tazpkg. 3.22 post_install() 3.23 { 3.24 - depmod -a -b "$1/" $KERNEL_VERSION 3.25 + depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz 3.26 } 3.27 3.28 post_remove() 3.29 { 3.30 - depmod -a $KERNEL_VERSION 3.31 + depmod -a ${EXTRAVERSION#_}-slitaz 3.32 }