~dns/gnash/debian

« back to all changes in this revision

Viewing changes to browser-plugin-gnash.postinst

  • Committer: DNS
  • Date: 2012-02-07 06:12:43 UTC
  • Revision ID: dns@rbose.org-20120207061243-x0zks7m6b958yxfp
* moved files in this branch to the root dir

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
# summary of how this script can be called:
 
5
#        * <postinst> `configure' <most-recently-configured-version>
 
6
#        * <old-postinst> `abort-upgrade' <new version>
 
7
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
 
8
#          <new-version>
 
9
#        * <postinst> `abort-remove'
 
10
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
 
11
#          <failed-install-package> <version> `removing'
 
12
#          <conflicting-package> <version>
 
13
# for details, see http://www.debian.org/doc/debian-policy/ or
 
14
# the debian-policy package
 
15
 
 
16
case "$1" in
 
17
    configure)
 
18
        for p in mozilla firefox iceweasel xulrunner midbrowser; do 
 
19
            if test -d "/usr/lib/$p/plugins"; then
 
20
                update-alternatives --install \
 
21
                    "/usr/lib/$p/plugins/flashplugin-alternative.so" \
 
22
                    "$p-flashplugin" \
 
23
                    /usr/lib/mozilla/plugins/libgnashplugin.so \
 
24
                    10;
 
25
            fi
 
26
        done
 
27
        ;;
 
28
    abort-upgrade|abort-remove|abort-deconfigure)
 
29
        ;;
 
30
    
 
31
    *)
 
32
        echo "postinst called with unknown argument \`$1'" >&2
 
33
        exit 1
 
34
        ;;
 
35
esac
 
36
 
 
37
# dh_installdeb will replace this with shell code automatically
 
38
# generated by other debhelper scripts.
 
39
 
 
40
#DEBHELPER#
 
41
 
 
42
exit 0
 
43