2002-11-30 20:58:42 -05:00
|
|
|
#!/bin/sh
|
2004-02-16 15:09:03 -05:00
|
|
|
# $OpenBSD: DEINSTALL-mon,v 1.3 2004/02/16 20:09:04 sturm Exp $
|
2002-11-30 20:58:42 -05:00
|
|
|
#
|
|
|
|
# symon de-installation
|
|
|
|
|
|
|
|
set -e
|
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
|
|
CONFIG_FILE=${SYSCONFDIR}/symon.conf
|
2004-02-16 15:09:03 -05:00
|
|
|
SYMONUSER=_symon
|
|
|
|
SYMONGROUP=_symon
|
2002-11-30 20:58:42 -05:00
|
|
|
|
2004-02-16 15:09:03 -05:00
|
|
|
echo
|
|
|
|
echo "+---------------"
|
|
|
|
echo "| To completely deinstall the $1 package you need to perform"
|
|
|
|
echo "| this step as root:"
|
|
|
|
echo "|"
|
|
|
|
echo "| userdel $SYMONUSER"
|
|
|
|
echo "| groupdel $SYMONGROUP"
|
|
|
|
if [ "$PKG_DELETE_EXTRA" != Yes -a -f ${CONFIG_FILE} ]; then
|
2002-11-30 20:58:42 -05:00
|
|
|
echo "| rm -f $CONFIG_FILE"
|
|
|
|
fi
|
2004-02-16 15:09:03 -05:00
|
|
|
echo "|"
|
|
|
|
echo "| Do not do this if you plan on re-installing $1"
|
|
|
|
echo "| at some future time."
|
|
|
|
echo "+---------------"
|
|
|
|
echo
|
2002-11-30 20:58:42 -05:00
|
|
|
|
|
|
|
exit 0
|