openbsd-ports/www/squid/pkg/DEINSTALL
brad f77c38db29 switch to new schema for user/group.
--
From: sturm@
Thanks to mpech@ for testing and pointing out the user/group
I almost missed in MESSAGE.
2003-07-08 20:43:20 +00:00

31 lines
762 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.8 2003/07/08 20:43:21 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