X-Git-Url: http://git.sven.stormbind.net/?a=blobdiff_plain;f=oracle-j2sdk1.6%2Fremove;fp=oracle-j2sdk1.6%2Fremove;h=02badc3b0d519001efdcd03976f13881d936bbf2;hb=ca8b5d176518ea838461b92229d2fbebb3731de8;hp=0000000000000000000000000000000000000000;hpb=5bc639af80c6222872b24d8950ac8ee53655870a;p=sven%2Fjava-package.git diff --git a/oracle-j2sdk1.6/remove b/oracle-j2sdk1.6/remove new file mode 100644 index 0000000..02badc3 --- /dev/null +++ b/oracle-j2sdk1.6/remove @@ -0,0 +1,63 @@ +suffix=j2sdk1.6-oracle +j2se_base="/usr/lib/jvm/$suffix" + +if [ ! -e "$j2se_base/debian/info" ]; then + exit 0 +fi + +# alternative +function program_alternative() { + local program="$1" + update-alternatives \ + --remove "$program" "$j2se_base/bin/$program" +} + +program_alternative appletviewer +program_alternative ControlPanel +program_alternative extcheck +program_alternative idlj +program_alternative jar +program_alternative jarsigner +program_alternative java +program_alternative javac +program_alternative javadoc +program_alternative javah +program_alternative javap +program_alternative java-rmi.cgi +program_alternative javaws +program_alternative jconsole +program_alternative jdb +program_alternative jinfo +program_alternative jmap +program_alternative jps +program_alternative jsadebugd +program_alternative jstack +program_alternative jstat +program_alternative jstatd +program_alternative keytool +program_alternative native2ascii +program_alternative orbd +program_alternative pack200 +program_alternative policytool +program_alternative rmic +program_alternative rmid +program_alternative rmiregistry +program_alternative serialver +program_alternative servertool +program_alternative tnameserv +program_alternative unpack200 + +# derive the architecture-specific +# directory for the plugin +arch_dir="$(dpkg --print-architecture)" + +# assemble the plugin path +plugin_dir="$j2se_base/jre/lib/$arch_dir" + +# iceweasel +update-alternatives \ + --remove "iceweasel-javaplugin.so" "$plugin_dir/libnpjp2.so" + +# chromium +update-alternatives \ + --remove "chromium-javaplugin.so" "$plugin_dir/libnpjp2.so"