summaryrefslogtreecommitdiff
path: root/debian/postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postrm')
-rw-r--r--debian/postrm33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..2ebac2e
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,33 @@
+#!/bin/sh -e
+#
+# Debian package postrm
+# Version 1.2
+#
+# Robert Leslie <rob@mars.org>
+
+case "$1" in
+ remove)
+ ;;
+
+ upgrade)
+ ;;
+
+ purge)
+ rm -rf /var/spool/mqueue
+ rm -f /etc/sendmail.cf /etc/aliases.{db,dir,pag}
+ rm -f /etc/mail/sendmail.{cf,cw,ct,mc}{,.old}
+ rmdir /etc/mail 2>/dev/null || true
+ update-rc.d sendmail remove >/dev/null
+ if [ -e /etc/suid.conf -a -x /usr/sbin/suidunregister ]; then
+ suidunregister -s sendmail /usr/sbin/sendmail
+ fi
+ ;;
+
+ failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 0
+ ;;
+esac