Debianization for 1.01-2
[qmail] / debian / postrm
diff --git a/debian/postrm b/debian/postrm
new file mode 100644 (file)
index 0000000..0e5686f
--- /dev/null
@@ -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
+}
+