wok diff nvidia/receipt @ rev 1891

slitaz-loram*: aufs wierdness
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 18 15:09:25 2008 +0000 (2008-12-18)
parents 46784c9b72e7
children c1610baa4cf4
line diff
     1.1 --- a/nvidia/receipt	Wed Dec 10 23:57:23 2008 -0800
     1.2 +++ b/nvidia/receipt	Thu Dec 18 15:09:25 2008 +0000
     1.3 @@ -2,7 +2,6 @@
     1.4  
     1.5  PACKAGE="nvidia"
     1.6  VERSION="177.82"
     1.7 -KERNEL_VERSION="2.6.25.5-slitaz"
     1.8  CATEGORY="non-free"
     1.9  SHORT_DESC="NVIDIA X.org kernel driver."
    1.10  MAINTAINER="b1+slitaz@nagel.org"
    1.11 @@ -41,6 +40,8 @@
    1.12  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.13  genpkg_rules()
    1.14  {
    1.15 +  KERNEL_VERSION=$(grep "kernel version" ../linux/linux-*/.config)
    1.16 +  KERNEL_VERSION=${KERNEL_VERSION##* }-slitaz
    1.17    mkdir -p $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video
    1.18    install -m644 $src/usr/src/nv/nvidia.ko $fs/lib/modules/$KERNEL_VERSION/kernel/drivers/video/
    1.19    mkdir -p $fs/usr/share/doc/nvidia
    1.20 @@ -50,10 +51,10 @@
    1.21  # Post install/remove commands for Tazpkg.
    1.22  post_install()
    1.23  {
    1.24 -  depmod -a -b "$1/" $KERNEL_VERSION
    1.25 +  depmod -a -b "$1/" ${EXTRAVERSION#_}-slitaz
    1.26  }
    1.27  
    1.28  post_remove()
    1.29  {
    1.30 -  depmod -a $KERNEL_VERSION
    1.31 +  depmod -a ${EXTRAVERSION#_}-slitaz
    1.32  }