diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2001-10-21 18:47:20 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2001-10-21 18:47:20 +0000 |
commit | 4688c2ff1e32cf645dcd0567372f4c515d0fe7fd (patch) | |
tree | ad6f4102cd2aa60ea2b4dfdb224ab244b47faee7 /security/amavis-perl/pkg-deinstall.qmail | |
parent | Upgrade to 2.0.12 (diff) |
Update to version 11
Give Seamus Venasse maintainership
PR: 31095
Submitted by: new maintainer
Diffstat (limited to 'security/amavis-perl/pkg-deinstall.qmail')
-rw-r--r-- | security/amavis-perl/pkg-deinstall.qmail | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/security/amavis-perl/pkg-deinstall.qmail b/security/amavis-perl/pkg-deinstall.qmail new file mode 100644 index 000000000000..c367aa729c4c --- /dev/null +++ b/security/amavis-perl/pkg-deinstall.qmail @@ -0,0 +1,25 @@ +#!/usr/bin/perl + +use strict; + +my $qmailDir; + +# ensure we are running only as post installation +exit 0 if $ARGV[ 1 ] ne "POST-DEINSTALL"; + +# find location of qmail +if ( -f "/var/qmail/bin/qmail-send" ) { + $qmailDir = "/var/qmail"; +} else { + $qmailDir = "/usr/local/qmail"; +} + +print "==> Removing virusalert user\n"; +unlink "${qmailDir}/alias/.qmail-virusalert"; + +print "==> Removing amavis from qmail\n"; +unlink "${qmailDir}/bin/qmail-queue"; +system( "mv ${qmailDir}/bin/qmail-queue-real ${qmailDir}/bin/qmail-queue" ); + +print "==> Removing mode from suidperl\n"; +chmod 0511, "/usr/bin/suidperl"; |