diff options
author | bapt <bapt@FreeBSD.org> | 2016-08-23 20:28:07 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2016-08-23 20:28:07 +0800 |
commit | 3f8e3d61a03d4519006b1d79e4e6bfe2bc5c2c10 (patch) | |
tree | 7c3a753be814b0298a9e7047a458c801ed06951e /java | |
parent | 10c3345204e262f760cf6d712c1faa6c699c574c (diff) | |
download | freebsd-ports-gnome-3f8e3d61a03d4519006b1d79e4e6bfe2bc5c2c10.tar.gz freebsd-ports-gnome-3f8e3d61a03d4519006b1d79e4e6bfe2bc5c2c10.tar.zst freebsd-ports-gnome-3f8e3d61a03d4519006b1d79e4e6bfe2bc5c2c10.zip |
Remove the pkg-deinstall script forgotten during r419364
Pointyhat: bapt
PR: 210313
Diffstat (limited to 'java')
-rw-r--r-- | java/javavmwrapper/Makefile | 2 | ||||
-rw-r--r-- | java/javavmwrapper/pkg-deinstall | 54 |
2 files changed, 1 insertions, 55 deletions
diff --git a/java/javavmwrapper/Makefile b/java/javavmwrapper/Makefile index 260273f48caf..6b63bdff68f6 100644 --- a/java/javavmwrapper/Makefile +++ b/java/javavmwrapper/Makefile @@ -3,7 +3,7 @@ PORTNAME= javavmwrapper PORTVERSION= 2.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= java MASTER_SITES= # none DISTFILES= # none diff --git a/java/javavmwrapper/pkg-deinstall b/java/javavmwrapper/pkg-deinstall deleted file mode 100644 index 2885415997c2..000000000000 --- a/java/javavmwrapper/pkg-deinstall +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ - -export PATH=/bin:/sbin:/usr/bin:/usr/sbin - -# Run this script at the pre-deinstall stage -if [ "x${2}" != "xDEINSTALL" ]; then - exit 0 -fi - -# The option configuration file -OPTION_CONF="${PKG_PREFIX}/etc/javavm_opts.conf" - -# Remove the option configuration file if its identical to the -# distributed version. -if [ -f "${OPTION_CONF}" -a -f "${OPTION_CONF}.dist" ]; then - if [ `sed -e '/^#/d' -e '/^\s*$/d' "${OPTION_CONF}" | sort | md5` = \ - `sed -e '/^#/d' -e '/^\s*$/d' "${OPTION_CONF}.dist" | sort | md5` ]; then - rm -f "${OPTION_CONF}" - fi -fi - -# Destroy the symbolic links that were created for every executable for a VM. -_excl_links='checkvms manvm registervm unregistervm' -_find_expr='-depth 1 -type l' -for i in ${_excl_links}; do - _find_expr="${_find_expr} ! -name ${i}" -done -_javavm_path=`realpath ${PKG_PREFIX}/bin/javavm` -for i in `find ${PKG_PREFIX}/bin ${_find_expr}`; do - if [ "${_javavm_path}" = `realpath ${i}` ]; then - rm -f "${i}" - fi -done - -# The configuration file -CONF="${PKG_PREFIX}/etc/javavms" - -# Ensure the configuration file exists -if [ ! -f "${CONF}" ]; then - exit 0 -fi - -# Ensure the configuration file has the correct permissions -if [ ! -r "${CONF}" ]; then - echo "error: can't read configuration file ${CONF}" 1>&2 - exit 1 -fi - -# Remove the configuration file. -rm -f "${CONF}" - -exit 0 |