X-Git-Url: https://git.distorted.org.uk/~mdw/qmail/blobdiff_plain/2117e02ec495fdfd6e96b39778b701a5bcff8aa5..9312c29dd4ff4591809c01f71361d8cfe92db67c:/debian/postrm diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..0e5686f --- /dev/null +++ b/debian/postrm @@ -0,0 +1,18 @@ +#!/usr/bin/perl + +$| = 1; + +$action = shift @ARGV; + +if ( $action eq 'purge' ) { + system('update-rc.d qmail remove >/dev/null'); + system("rm -rf /var/qmail"); + system("rm -rf /etc/qmail"); + exit $?; +} + +if ( $action eq 'abort-install' ) { + # Put back old inetd.conf (?) + exit 0 +} +