~ubuntu-branches/ubuntu/raring/nvidia-graphics-drivers-304/raring-proposed

« back to all changes in this revision

Viewing changes to debian/templates/nvidia-graphics-drivers.postrm.in

  • Committer: Package Import Robot
  • Author(s): Alberto Milone
  • Date: 2013-03-06 16:25:21 UTC
  • Revision ID: package-import@ubuntu.com-20130306162521-vbw5hhjhlcy7r8ue
Tags: 304.84-0ubuntu2
* debian/rules:
  - Allow direct assignment of package name. Thanks to
    Andy Dick <adick@nvidia.com> for the patch.
  - Use flavour-agnostic template file names. The *.in
    template files currently need to be renamed when
    switching package flavours. To facilitate package
    flavour switching, we use the flavour-agnostic
    templates nvidia-graphics-drivers-*.in in the
    debian/templates directory and generate flavour
    specific files from them.
    This work is based on the original implementation
    by Daniel Dadap <ddadap@nvidia.com>.
* debian/templates/control.in:
  - Conflict/replace/provide xorg-driver-binary.
    Each nvidia and fglrx driver will do the same with
    xorg-driver-binary.
  - Drop any other conflicts/replaces/provides.
* debian/templates/nvidia-graphics-drivers.README.
  Debian.in:
  - Update the documentation so as to cover the
    fact that we moved templates to debian/templates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# postrm script for #DRIVERNAME#
 
3
#
 
4
# see: dh_installdeb(1)
 
5
#
 
6
# Copyright (C) 2009-2010 Canonical Ltd
 
7
# Authors: Alberto Milone
 
8
 
 
9
set -e
 
10
 
 
11
# summary of how this script can be called:
 
12
#        * <postrm> `remove'
 
13
#        * <postrm> `purge'
 
14
#        * <old-postrm> `upgrade' <new-version>
 
15
#        * <new-postrm> `failed-upgrade' <old-version>
 
16
#        * <new-postrm> `abort-install'
 
17
#        * <new-postrm> `abort-install' <old-version>
 
18
#        * <new-postrm> `abort-upgrade' <old-version>
 
19
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
 
20
# for details, see /usr/share/doc/packaging-manual/
 
21
 
 
22
case "$1" in
 
23
    remove|purge)
 
24
        # This should make sure that #PKGLIBDIR# and
 
25
        # #PKGLIBDIR32# are removed even if some
 
26
        # links are left. See LP: #540143
 
27
        rm -Rf #PKGLIBDIR# #PKGLIBDIR32#
 
28
 
 
29
        # Remove the blacklist file for hybrid graphics
 
30
        rm -f /etc/modprobe.d/#DRIVERNAME#_hybrid.conf
 
31
 
 
32
        # Update initramfs, in case we were loaded into it
 
33
        /usr/sbin/update-initramfs -u
 
34
    ;;
 
35
    
 
36
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
37
 
 
38
 
 
39
    ;;
 
40
 
 
41
    *)
 
42
        echo "postrm called with unknown argument \`$1'" >&2
 
43
        exit 0
 
44
    ;;
 
45
 
 
46
esac
 
47
 
 
48
# dh_installdeb will replace this with shell code automatically
 
49
# generated by other debhelper scripts.
 
50
 
 
51
#DEBHELPER#