]> git.sven.stormbind.net Git - sven/java-package.git/blobdiff - oracle-j2sdk1.7/install
Support of .jinfo for udpate-java-alternatives tool
[sven/java-package.git] / oracle-j2sdk1.7 / install
diff --git a/oracle-j2sdk1.7/install b/oracle-j2sdk1.7/install
deleted file mode 100644 (file)
index 10c7a7a..0000000
+++ /dev/null
@@ -1,88 +0,0 @@
-suffix=j2sdk1.7-oracle
-j2se_base="/usr/lib/jvm/$suffix"
-priority=317
-
-if [ ! -e "$j2se_base/debian/info" ]; then
-    exit 0
-fi
-
-# alternative <program>
-function program_alternative() {
-    local program="$1"
-    update-alternatives \
-       --install "/usr/bin/$program" "$program" \
-       "$j2se_base/bin/$program" "$priority" \
-       --slave "/usr/share/man/man1/$program.1.gz" "$program.1.gz" \
-       "$j2se_base/man/man1/$program.1.gz"
-}
-
-# alternative <program> without man page
-function program_alternative_no_man() {
-    local program="$1"
-    update-alternatives \
-        --install "/usr/bin/$program" "$program" \
-        "$j2se_base/bin/$program" "$priority"
-}
-
-# kinit, klist, and ktab not installed at this
-# time; handling of /etc/krb5.conf not addressed
-# JRE-specific alternatives with JDKs cannot be 
-# handled by our current approach
-program_alternative appletviewer
-program_alternative_no_man 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_no_man 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
-iceweasel_dir="/usr/lib/iceweasel/plugins"
-[ -d "$iceweasel_dir" ] || install -d -m 755 "$iceweasel_dir"
-update-alternatives \
-    --install "$iceweasel_dir/libjavaplugin.so" \
-       "iceweasel-javaplugin.so" \
-       "$plugin_dir/libnpjp2.so" "$priority"
-
-# chromium
-chromium_dir="/usr/lib/chromium/plugins"
-[ -d "$chromium_dir" ] || install -d -m 755 "$chromium_dir"
-update-alternatives \
-    --install "$chromium_dir/libjavaplugin.so" \
-       "chromium-javaplugin.so" \
-       "$plugin_dir/libnpjp2.so" "$priority"
-