#!/bin/sh
#
#	$FreeBSD: ports/security/amavisd-new/files/DEINSTALL.tmpl,v 1.3 2003/04/20 10:02:44 leeym Exp $
#

USER=vscan
GROUP=vscan
DIR=/var/amavis
QUARANTINE=/var/virusmails

if [ "$2" = "POST-DEINSTALL" ]; then

    if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then
	echo "You should manually remove the \"${GROUP}\" group."
    fi

    if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then
	echo "You should manually remove the \"${USER}\" user."
    fi

    if [ -e ${DIR} ]; then
	echo "You should manually remove the \"${DIR}\" directory."
    fi
    
    if [ -e ${QUARANTINE} ]; then
      echo "You should manually remove the \"${QUARANTINE}\" directory."
    fi
fi
