[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: IcedTea - a first step towards OpenJDK



I have also discovered that the plugin package that icedtea builds is uninstallable if the plugin directories don't exist (which will happen unless the user has every supported browser installed), a new postinst that fixes this issue is attatched.
#!/bin/sh -e

PATH=/sbin:/bin:/usr/sbin:/usr/bin

priority=1060
browser_dirs="firefox iceape iceweasel mozilla midbrowser xulrunner"
PLUGIN=gcjwebplugin.so
PLUGINPTH=/usr/lib/jvm/java-7-icedtea/jre/plugin/i386/$PLUGIN

for browser in $browser_dirs; do
    mkdir -p /usr/lib/$browser/plugins/
    update-alternatives --quiet --install \
	/usr/lib/$browser/plugins/libjavaplugin.so \
	$browser-javaplugin.so \
	$PLUGINPTH \
	$priority
done

#DEBHELPER#

exit 0

Reply to: