#!/bin/sh
# $MidnightBSD: mports/security/clamav/files/pkg-deinstall.in,v 1.4 2013/06/21 00:51:14 laffer1 Exp $

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

CLAMAVUSER=clamav

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

exit 0
