433214b639
- Cleanup a little bit PR: ports/109185 (Based on) Submitted by: Michael Scheidell <scheidell@secnap.net>
26 lines
618 B
Bash
26 lines
618 B
Bash
#!/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=%%CLAMAVUSER%%
|
|
|
|
echo
|
|
echo "===================================================="
|
|
echo
|
|
echo "If you want remove clamav permanently from you system"
|
|
echo "execute following commands:"
|
|
echo
|
|
echo " # rm -rf %%LOGDIR%%"
|
|
echo " # rm -rf %%RUNDIR%%"
|
|
echo " # rm -rf %%DBDIR%%"
|
|
if pw usershow "${CLAMAVUSER}" 2>/dev/null 1>&2; then
|
|
echo " # pw userdel ${CLAMAVUSER}"
|
|
fi
|
|
echo
|
|
echo "===================================================="
|
|
echo
|
|
|
|
exit 0
|