#!/bin/sh
#
#	$FreeBSD: ports/net-mgmt/nagios12/files/DEINSTALL.tmpl,v 1.2 2005/04/06 10:03:58 flz Exp $
#

USER=nagios
GROUP=nagios
DIR=/var/spool/nagios

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
fi
