#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/security/clamav/files/pkg-deinstall.in,v 1.2 2007-02-16 00:19:32 garga Exp $

if [ "$2" != "POST-DEINSTALL" ]; then
	exit 0
fi

CLAMAVUSER=clamav

echo
echo "===================================================="
echo
echo "If you want remove clamav permanently from you system"
echo "execute following commands:"
echo
echo " # rm -rf /var/log/clamav"
echo " # rm -rf /var/run/clamav"
echo " # rm -rf /var/db/clamav"
if pw usershow "${CLAMAVUSER}" 2>/dev/null 1>&2; then
	echo " # pw userdel ${CLAMAVUSER}"
fi
echo
echo "===================================================="
echo

exit 0
