forked from Lainports/freebsd-ports
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
31 lines
804 B
Bash
31 lines
804 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
# Set up a standard path
|
|
PATH=/usr/bin:/bin
|
|
|
|
# Don't do anything during post-deinstall
|
|
if [ "$2" = "POST-DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# Remove the plugin
|
|
|
|
# Plugin location variables
|
|
BROWSERPLUGINDIR="%%LOCALBASE%%/lib/browser_plugins"
|
|
JAVAPLUGINDIR="%%JRE_HOME%%/plugin/%%ARCH%%/ns610"
|
|
PLUGIN=libjavaplugin_oji.so
|
|
|
|
# Check if the package includes the plugin
|
|
if [ ! -e "${JAVAPLUGINDIR}/${PLUGIN}" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# See if the browser plugin is a link to the package plugin and remove it if so.
|
|
if [ -e "${BROWSERPLUGINDIR}/${PLUGIN}" -a \
|
|
-L "${BROWSERPLUGINDIR}/${PLUGIN}" -a \
|
|
x`ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` = x"${JAVAPLUGINDIR}/${PLUGIN}" ]; then
|
|
rm -f "${BROWSERPLUGINDIR}/${PLUGIN}"
|
|
fi
|
|
|
|
exit 0
|