~ubuntu-branches/ubuntu/raring/icedtea-web/raring

« back to all changes in this revision

Viewing changes to debian/icedtea-netx.postinst.in

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-02-04 18:19:46 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20120204181946-jngobgzz4mlen9yl
Tags: 1.2~pre1-0ubuntu1
* Update to hg 20120203, taken from the icedtea-web-1.2 release branch.
* Build separate plugin packages for OpenJDK 6 and OpenJDK 7, needed
  to provide the path to the runtime and the mime description in the plugin.
* Use icedtea-<jre version>-plugin as the name for both plugin packages.
* Remove icedtea-web-1.1.4-npapi-fix.patch, fixed upstream.
* Pass -n to gzip when compressing manpages to be Multi-Arch: same safe.
* Build multiarch packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
5
 
priority=1061
 
5
multiarch=@multiarch@
 
6
priority=@priority@
6
7
basedir=/@basedir@
7
8
mandir=$basedir/jre/man
 
9
priority7=@priority7@
 
10
base7dir=/@base7dir@
 
11
man7dir=$base7dir/jre/man
8
12
tools='javaws itweb-settings'
9
13
srcext=1.gz
10
14
dstext=1.gz
11
15
 
12
16
case "$1" in
13
17
configure)
 
18
   if [ -z "$2" ]; then
 
19
        update_alternatives=y
 
20
    fi
 
21
    if [ -n "$multiarch" ] && [ -n "$2" ]; then
 
22
        for i in $tools; do
 
23
            if [ -z `update-alternatives --list $i 2>/dev/null | grep "^$basedir/"` ]; then
 
24
                update_alternatives=y
 
25
                break
 
26
            fi
 
27
        done
 
28
    fi
 
29
 
 
30
    if [ "$update_alternatives" = y ]; then
 
31
    if [ -n "$multiarch" ] && [ "$DPKG_MAINTSCRIPT_ARCH" != $(dpkg --print-architecture) ]; then
 
32
        priority=$(expr $priority - 1)
 
33
        priority7=$(expr $priority7 - 1)
 
34
    fi
 
35
 
14
36
    for i in $tools; do
15
37
        unset slave1 || true
16
38
        if [ -e $mandir/man1/$i.$srcext ]; then
27
49
            $priority \
28
50
            $slave1
29
51
    done
 
52
 
 
53
    for i in $tools; do
 
54
        unset slave1 || true
 
55
        if [ -e $man7dir/man1/$i.$srcext ]; then
 
56
            slave1="--slave \
 
57
                /usr/share/man/man1/$i.$dstext \
 
58
                $i.$dstext \
 
59
                $man7dir/man1/$i.$srcext"
 
60
        fi
 
61
        update-alternatives \
 
62
            --install \
 
63
            /usr/bin/$i \
 
64
            $i \
 
65
            $base7dir/jre/bin/$i \
 
66
            $priority7 \
 
67
            $slave1
 
68
    done
 
69
    fi
30
70
esac
31
71
 
32
72
#DEBHELPER#