head	1.2;
access;
symbols
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2001.10.21.18.47.20;	author dwcjr;	state dead;
branches;
next	1.1;

1.1
date	2001.01.07.07.38.32;	author will;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Update to version 11
Give Seamus Venasse maintainership

PR:		31095
Submitted by:	new maintainer
@
text
@#!/bin/sh
# $FreeBSD: ports/security/amavis-perl/pkg-deinstall,v 1.1 2001/01/07 07:38:32 will 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
@


1.1
log
@Add amavis-perl 10, a mail virus scanner (uses external antivirus).

PR:		23978
Submitted by:	Roman Shterenzon <roman@@xpert.com>
@
text
@d2 1
a2 1
# $FreeBSD$
@

