1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/security/amavis-perl/pkg-deinstall.sendmail
David W. Chapman Jr. 4688c2ff1e Update to version 11
Give Seamus Venasse maintainership

PR:		31095
Submitted by:	new maintainer
2001-10-21 18:47:20 +00:00

29 lines
918 B
Bash

#!/bin/sh
# $FreeBSD: /tmp/pcvs/ports/security/amavis-perl/Attic/pkg-deinstall.sendmail,v 1.1 2001-10-21 18:47:20 dwcjr Exp $
prefix=/usr/local
PATH="/bin:/usr/bin"
if [ "$2" != "POST-DEINSTALL" ]; then
exit 0
fi
if [ -f /etc/sendmail.cf.pre-amavis ]; then
CFG=/etc
elif [ -f /etc/mail/sendmail.cf.pre-amavis ]; then
CFG=/etc/mail
else
echo "No sendmail.cf.pre-amavis found, are you sure that amavis was installed?"
exit 1
fi
rm -f ${CFG}/sendmail.cf
rm -f ${CFG}/sendmail.orig.cf
mv ${CFG}/sendmail.cf.pre-amavis ${CFG}/sendmail.cf
sed /^virusalert/d ${CFG}/aliases > ${CFG}/aliases.tmp
mv ${CFG}/aliases.tmp ${CFG}/aliases
newaliases
rmdir /var/spool/mqamavis 2>/dev/null || echo "You may wish to inspect /var/spool/mqamavis directory by yourself and remove it"
rmdir /var/spool/quarantine 2>/dev/null || echo "You may wish to inspect /var/spool/quarantine directory by yourself and remove it"
exit 0