openbsd-ports/www/squid/pkg/DEINSTALL
brad 98cf57f75b - unconditionally show DEINSTALL message since there is more than just the
config directory that has to be removed
- change a whole bunch of vars in INSTALL from ${FOO} to $FOO so they do
not get substituded and have the substitution occur only once at the top
of the INSTALL script
2000-07-29 00:04:58 +00:00

28 lines
650 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.4 2000/07/29 00:04:58 brad Exp $
#
# squid de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
STATEDIR=${STATEDIR}
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| rm -rf $CONFIG_DIR"
echo "| rm -rf $PREFIX/share/squid"
echo "| rm -rf $STATEDIR"
echo "| rm -f /var/run/squid.pid"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
exit 0