openbsd-ports/www/squid/pkg/DEINSTALL

31 lines
754 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.6 2002/02/20 20:31:27 brad Exp $
#
# Squid de-installation
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
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