#!/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 # 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 # Destroy the symbolic links that were created for every executable for a VM. cat "${CONF}" | \ ( while read JAVAVM; do VM=`echo "${JAVAVM}" | sed -E 's|[[:space:]]*#.*||' 2>/dev/null` JAVA_HOME=`dirname "${VM}"` JAVA_HOME=`dirname "${JAVA_HOME}"` for exe in "${JAVA_HOME}"/bin/* "${JAVA_HOME}"/jre/bin/*; do exe=`basename "${exe}"` if [ -L "${PKG_PREFIX}/bin/${exe}" -a \ "`ls -ld "${PKG_PREFIX}/bin/${exe}" 2>/dev/null | \ awk '/->/{print $NF;exit 0}END{exit 1}'`" = \ "${PKG_PREFIX}/bin/javavm" ]; then rm "${PKG_PREFIX}/bin/${exe}" fi done; done; ) exit 0 option value='dependabot/npm_and_yarn/devel/electron4/files/bl-1.2.3'>dependabot/npm_and_yarn/devel/electron4/files/bl-1.2.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/misc/hulgalugha
Commit message (Expand)AuthorAgeFilesLines
* Allow staging as a regular user and simplifyantoine2014-09-071-3/+3
* Convert some more USE_BZIP2 to USES=tar:bzip2adamw2014-07-301-1/+1
* - Remove NO_STAGE as these have been tested to be safebdrewery2013-09-251-1/+0
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-21