#!/bin/sh
# $FreeBSD: security/clamav-devel/files/pkg-deinstall.in 300897 2012-07-14 14:29:18Z beat $

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
