]> git.sven.stormbind.net Git - sven/java-package.git/blob - oracle-j2re1.6/remove
Initial rework of (svn) java-package 0.42
[sven/java-package.git] / oracle-j2re1.6 / remove
1 suffix=j2re1.6-oracle
2 j2se_base="/usr/lib/jre/$suffix"
3
4 if [ ! -e "$j2se_base/debian/info" ]; then
5     exit 0
6 fi
7
8 # alternative <program>
9 function program_alternative() {
10     local program="$1"
11     update-alternatives \
12         --remove "$program" "$j2se_base/bin/$program"
13 }
14
15 program_alternative ControlPanel
16 program_alternative java
17 program_alternative javaws
18 program_alternative keytool
19 program_alternative orbd
20 program_alternative pack200
21 program_alternative policytool
22 program_alternative rmid
23 program_alternative rmiregistry
24 program_alternative servertool
25 program_alternative tnameserv
26 program_alternative unpack200
27
28 # derive the architecture-specific 
29 # directory for the plugin
30 arch_dir="$(dpkg --print-architecture)"
31
32 # assemble the plugin path
33 plugin_dir="$j2se_base/lib/$arch_dir"
34
35 # iceweasel
36 update-alternatives \
37     --remove "iceweasel-javaplugin.so" "$plugin_dir/libnpjp2.so"
38
39 # chromium
40 update-alternatives \
41     --remove "chromium-javaplugin.so" "$plugin_dir/libnpjp2.so"