summaryrefslogtreecommitdiff
path: root/java/jdk16/files/pkg-deinstall.in
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-12-10 17:18:32 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-12-10 17:18:32 +0000
commitb1ccabf65df39e4ab553f6c4734942b9f89992b1 (patch)
treeca639d8654f8695791fbdb4960934e6598682543 /java/jdk16/files/pkg-deinstall.in
parent- Update to 5.2.4 (diff)
Decommissioning java 1.5 (EOLed since October 2009):
removal of the different 1.5 jre and jdk vendors Removing outdated jdk16 vendors: removing all the bsdjava and freebsd vendors, consider using openjdk6 or openjsk7 instead. Discussed with: java (glarkin)
Notes
Notes: svn path=/head/; revision=308619
Diffstat (limited to 'java/jdk16/files/pkg-deinstall.in')
-rw-r--r--java/jdk16/files/pkg-deinstall.in31
1 files changed, 0 insertions, 31 deletions
diff --git a/java/jdk16/files/pkg-deinstall.in b/java/jdk16/files/pkg-deinstall.in
deleted file mode 100644
index 167d5bd28893..000000000000
--- a/java/jdk16/files/pkg-deinstall.in
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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%%/ns7"
-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