Remove the deinstall script that appears to be deleting all the temporary files

created by pkg(8) during upgrades

It happens because the deinstall script tries to clean up the potential manual
VM registration by cleaning out all symlinks to bin/javavm

Given all VM are registring/unregistering themselves this part is not needed

The other thing the script was doing handling the configuration which has been
replaced by @sample.

pkg-install has been modified to drop the handling of the configuration file but
keep the auto registration if all VM found. While this part is not necessary as
well, we keep it because otherwise anyone doing delete/install on javavmwapper
version 2.5 being the installed version would end up with all VM unregistered.

The pkg-install should be removed after EOL of FreeBSD 10.3

PR:		210313
MFH:		2016Q3
This commit is contained in:
Baptiste Daroussin 2016-07-31 12:30:24 +00:00
parent d36beb635a
commit 64f16bafaf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419364
3 changed files with 2 additions and 12 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= javavmwrapper PORTNAME= javavmwrapper
PORTVERSION= 2.5 PORTVERSION= 2.5
PORTREVISION= 1
CATEGORIES= java CATEGORIES= java
MASTER_SITES= # none MASTER_SITES= # none
DISTFILES= # none DISTFILES= # none

View file

@ -9,17 +9,6 @@ if [ "x${2}" != "xPOST-INSTALL" ]; then
exit 0 exit 0
fi fi
# The option configuration file
OPTION_CONF="${PKG_PREFIX}/etc/javavm_opts.conf"
# Install default javavm options configuration
if [ ! -e "${OPTION_CONF}" ]; then
cp "${OPTION_CONF}.dist" "${OPTION_CONF}"
else
echo "${OPTION_CONF} already exists - not installing."
echo "You may need to hand merge changes."
fi
# Ensure all JDKs and JREs are installed # Ensure all JDKs and JREs are installed
_excl_dirs='bootstrap-openjdk' _excl_dirs='bootstrap-openjdk'
_find_expr='-depth 2 -regex .*/bin/java' _find_expr='-depth 2 -regex .*/bin/java'

View file

@ -4,7 +4,7 @@ bin/javavm
bin/manvm bin/manvm
bin/registervm bin/registervm
bin/unregistervm bin/unregistervm
etc/javavm_opts.conf.dist @sample etc/javavm_opts.conf.dist etc/javavm_opts.conf
man/man1/checkvms.1.gz man/man1/checkvms.1.gz
man/man1/javavm.1.gz man/man1/javavm.1.gz
man/man1/manvm.1.gz man/man1/manvm.1.gz