~maco.m/ubuntu/oneiric/nvidia-settings/fix-missing-dependencies-for-kubuntu

« back to all changes in this revision

Viewing changes to debian/postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2011-08-04 17:43:17 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: james.westby@ubuntu.com-20110804174317-w3pi7m610so5rmeh
Tags: 280.13-0ubuntu1
* New upstream release.
* Correct copyright assignment in debian/rules.
* Make it possible to generate files from templates.
* Install an alternative, so that users can switch between different
  flavours.
* Switch to debhelper 7 and quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Copyright (C) 2011 Canonical Ltd
 
3
# Authors: Alberto Milone
 
4
set -e
 
5
 
 
6
PACKAGE_NAME=#PKGNAME#
 
7
 
 
8
case "$1" in
 
9
    configure)
 
10
        # Deal with alternatives
 
11
        update-alternatives --force \
 
12
            --install #SYSCONFDIR#/ld.so.conf.d/nvidia_settings.conf nvidia_settings_conf #LDSOCONF# #ALTPRIORITY# \
 
13
            --slave #MANDIR#/nvidia-settings.1.gz man_nvidiasettings.gz #PKGMANDIR#/alt-#PKGNAME#.1.gz \
 
14
            --slave #BINDIR#/nvidia-settings nvidia_settings #PKGBINDIR#/nvidia-settings \
 
15
            --slave #INCLUDEDIR#/NVCtrl nvctrl_include #PKGINCLUDEDIR#/NVCtrl \
 
16
            --slave #LIBDIR#/libXNVCtrl.a libxnvctrl.a #PKGLIBDIR#/libXNVCtrl.a
 
17
 
 
18
        # ldconfig needs to be run immediately as we're changing /etc/ld.so.conf.d/ with
 
19
        # alternatives.
 
20
        LDCONFIG_NOTRIGGER=y ldconfig
 
21
 
 
22
        # Trigger gmenu so that the icons will show up in the menu
 
23
        dpkg-trigger --by-package=$PACKAGE_NAME gmenucache || true
 
24
 
 
25
        ;;
 
26
 
 
27
    abort-upgrade|abort-remove|abort-deconfigure)
 
28
    ;;
 
29
 
 
30
    *)
 
31
            echo "postinst called with unknown argument \`$1'" >&2
 
32
            exit 1
 
33
    ;;
 
34
esac
 
35
 
 
36
#DEBHELPER#