CVS java-package/ibm-j2re1.3
Barry Hawkins
barryh-guest@haydn.debian.org
Thu Apr 21 06:13:05 2005
Update of /cvsroot/pkg-java/java-package/ibm-j2re1.3
In directory haydn:/tmp/cvs-serv20577/ibm-j2re1.3
Modified Files:
install remove
Log Message:
Added plugin support for i386 IBM JRE/JDK
--- /cvsroot/pkg-java/java-package/ibm-j2re1.3/install 2005/03/14 08:58:38 1.1
+++ /cvsroot/pkg-java/java-package/ibm-j2re1.3/install 2005/04/21 06:12:22 1.2
@@ -24,4 +24,37 @@
program_alternative rmid
program_alternative rmiregistry
-# no plugin available ...
+# the plugin is only available for i386 architecture
+# 1.3 only provides a pre-gcc3 plugin
+
+if [ $(dpkg --print-architecture) = i386 ] ; then
+
+ # assemble the plugin path
+ plugin_dir="$j2se_base/jre/bin"
+
+ # netscape
+ netscape_dir="/usr/lib/netscape/plugins-libc6"
+ [ -d "$netscape_dir" ] || install -d -m 755 "$netscape_dir"
+ update-alternatives \
+ --install "$netscape_dir/libjavaplugin.so" \
+ "netscape-javaplugin.so" \
+ "$plugin_dir/libjavaplugin_oji.so" "$priority"
+
+ # mozilla
+ mozilla_dir="/usr/lib/mozilla/plugins"
+ [ -d "$mozilla_dir" ] || install -d -m 755 "$mozilla_dir"
+ update-alternatives \
+ --install "$mozilla_dir/libjavaplugin.so" \
+ "mozilla-javaplugin.so" \
+ "$plugin_dir/libjavaplugin_oji.so" "$priority"
+
+ # firefox
+ firefox_dir="/usr/lib/mozilla-firefox/plugins"
+ [ -d "$firefox_dir" ] || install -d -m 755 "$firefox_dir"
+ update-alternatives \
+ --install "$firefox_dir/libjavaplugin.so" \
+ "firefox-javaplugin.so" \
+ "$plugin_dir/libjavaplugin_oji.so" "$priority"
+
+fi
+
--- /cvsroot/pkg-java/java-package/ibm-j2re1.3/remove 2005/03/14 08:58:38 1.1
+++ /cvsroot/pkg-java/java-package/ibm-j2re1.3/remove 2005/04/21 06:12:22 1.2
@@ -17,3 +17,22 @@
program_alternative javaw
program_alternative rmid
program_alternative rmiregistry
+
+if [ $(dpkg --print-architecture) = i386 ] ; then
+
+ # assemble the plugin path
+ plugin_dir="$j2se_base/jre/bin"
+
+ # netscape
+ update-alternatives \
+ --remove "netscape-javaplugin.so" "$plugin_dir/libjavaplugin_oji.so"
+
+ # mozilla
+ update-alternatives \
+ --remove "mozilla-javaplugin.so" "$plugin_dir/libjavaplugin_oji.so"
+
+ # firefox
+ update-alternatives \
+ --remove "firefox-javaplugin.so" "$plugin_dir/libjavaplugin_oji.so"
+
+fi