~ubuntu-branches/ubuntu/maverick/nvidia-graphics-drivers-96/maverick-proposed

« back to all changes in this revision

Viewing changes to debian/nvidia-96.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2010-01-08 23:34:51 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100108233451-f1142o5r7z0ou4o0
Tags: 96.43.14-0ubuntu1
* Rework packaging taking Mandriva's as a model:
  - Use alternatives instead of diversions.
  - Reduce the number of binary packages to nvidia-96,
    nvidia-96-dev and nvidia-96-modaliases.
* debian/rules:
  - Switch to CDBS.
  - Remove libGL.la as no static library is provided.
* debian/nvidia-current.README.Debian.in:
  - Document the update process.
* nvidia-current.postinst: try to build the module for the most
  recent kernel in addition to building it for the current kernel
  (LP: #474917).
* New upstream release (LP: #494166):
 - Add support for xserver 1.7.x.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# prerm script for nvidia-96
 
3
#
 
4
# Copyright (C) 2007 Mario Limonciello
 
5
# Copyright (C) 2009 Canonical Services Ltd
 
6
# Copyright (C) 2009 Alberto Milone
 
7
 
 
8
 
 
9
PACKAGE_NAME=nvidia-96
 
10
CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2`
 
11
 
 
12
remove_dkms_module() {
 
13
        echo "Removing all DKMS Modules"
 
14
        dkms remove -m $PACKAGE_NAME -v $CVERSION --all > /dev/null
 
15
        echo "Done."
 
16
}
 
17
 
 
18
case "$1" in
 
19
        upgrade)
 
20
                remove_dkms_module 
 
21
        ;;
 
22
        remove)
 
23
                remove_dkms_module 
 
24
        
 
25
                update-alternatives --remove gl_conf /usr/lib/nvidia-96/ld.so.conf
 
26
 
 
27
                # explicit ldconfig due to alternatives
 
28
                ldconfig
 
29
        ;;
 
30
esac
 
31
 
 
32
#DEBHELPER#
 
33