CVS java-package/ibm-j2sdk1.4
Barry Hawkins
barryh-guest@haydn.debian.org
Thu Apr 21 06:13:11 2005
Update of /cvsroot/pkg-java/java-package/ibm-j2sdk1.4
In directory haydn:/tmp/cvs-serv20577/ibm-j2sdk1.4
Modified Files:
install remove
Log Message:
Added plugin support for i386 IBM JRE/JDK
--- /cvsroot/pkg-java/java-package/ibm-j2sdk1.4/install 2005/04/01 07:44:11 1.2
+++ /cvsroot/pkg-java/java-package/ibm-j2sdk1.4/install 2005/04/21 06:12:30 1.3
@@ -35,3 +35,34 @@
program_alternative serialver
# the plugin is only available for i386 architecture
+
+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_ojigcc3.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_ojigcc3.so" "$priority"
+
+fi
--- /cvsroot/pkg-java/java-package/ibm-j2sdk1.4/remove 2005/04/01 07:44:11 1.2
+++ /cvsroot/pkg-java/java-package/ibm-j2sdk1.4/remove 2005/04/21 06:12:30 1.3
@@ -28,3 +28,21 @@
program_alternative serialver
# the plugin is only available for i386 architecture
+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_ojigcc3.so"
+
+ # firefox
+ update-alternatives \
+ --remove "firefox-javaplugin.so" "$plugin_dir/libjavaplugin_ojigcc3.so"
+
+fi