Be sure to clean up sipb-xen-www when it's uninstalled sipb-xen-www/3.14.2
authorEvan Broder <broder@mit.edu>
Sun, 5 Oct 2008 04:06:49 +0000 (00:06 -0400)
committerEvan Broder <broder@mit.edu>
Sun, 5 Oct 2008 04:06:49 +0000 (00:06 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=1049

debian/changelog
debian/sipb-xen-www.prerm [new file with mode: 0644]

index c86a8f7..9ec8594 100644 (file)
@@ -1,3 +1,9 @@
+sipb-xen-www (3.14.2) unstable; urgency=low
+
+  * Be a good debian package and undo what you did on uninstall
+
+ -- Evan Broder <broder@mit.edu>  Sun, 05 Oct 2008 00:06:30 -0400
+
 sipb-xen-www (3.14.1) unstable; urgency=low
 
   * Try again, now that I actually understand what the problem is
diff --git a/debian/sipb-xen-www.prerm b/debian/sipb-xen-www.prerm
new file mode 100644 (file)
index 0000000..95dbdf6
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+# prerm script for sipb-xen-www
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+        update-rc.d apache2 defaults 91 9
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+