openbsd-ports/www/squid/pkg/DEINSTALL
2002-08-23 14:10:20 +00:00

31 lines
760 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.7 2002/08/23 14:10:20 brad Exp $
#
# Squid de-installation
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}/squid
SQUIDDIR=${SQUIDDIR}
SQUIDUSER=squid
SQUIDGROUP=squid
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| these steps as root:"
echo "|"
echo "| userdel $SQUIDUSER"
echo "| groupdel $SQUIDGROUP"
echo "| rm -rf $CONFIG_DIR"
echo "| rm -rf $PREFIX/share/squid"
echo "| rm -rf $SQUIDDIR"
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