]> git.sven.stormbind.net Git - sven/java-package.git/blob - oracle-j2sdk1.6/remove
Initial rework of (svn) java-package 0.42
[sven/java-package.git] / oracle-j2sdk1.6 / remove
1 suffix=j2sdk1.6-oracle
2 j2se_base="/usr/lib/jvm/$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 appletviewer
16 program_alternative ControlPanel
17 program_alternative extcheck
18 program_alternative idlj
19 program_alternative jar
20 program_alternative jarsigner
21 program_alternative java
22 program_alternative javac
23 program_alternative javadoc
24 program_alternative javah
25 program_alternative javap
26 program_alternative java-rmi.cgi
27 program_alternative javaws
28 program_alternative jconsole
29 program_alternative jdb
30 program_alternative jinfo
31 program_alternative jmap
32 program_alternative jps
33 program_alternative jsadebugd
34 program_alternative jstack
35 program_alternative jstat
36 program_alternative jstatd
37 program_alternative keytool
38 program_alternative native2ascii
39 program_alternative orbd
40 program_alternative pack200
41 program_alternative policytool
42 program_alternative rmic
43 program_alternative rmid
44 program_alternative rmiregistry
45 program_alternative serialver
46 program_alternative servertool
47 program_alternative tnameserv
48 program_alternative unpack200
49
50 # derive the architecture-specific 
51 # directory for the plugin
52 arch_dir="$(dpkg --print-architecture)"
53
54 # assemble the plugin path
55 plugin_dir="$j2se_base/jre/lib/$arch_dir"
56
57 # iceweasel
58 update-alternatives \
59     --remove "iceweasel-javaplugin.so" "$plugin_dir/libnpjp2.so"
60
61 # chromium
62 update-alternatives \
63     --remove "chromium-javaplugin.so" "$plugin_dir/libnpjp2.so"