[svn-inject] Applying Debian modifications to trunk
[manu/suphp.git] / debian / libapache-mod-suphp.prerm
diff --git a/debian/libapache-mod-suphp.prerm b/debian/libapache-mod-suphp.prerm
new file mode 100644 (file)
index 0000000..0fac5c4
--- /dev/null
@@ -0,0 +1,46 @@
+#! /bin/sh
+# prerm script for libapache-mod-suphp
+#
+# 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)
+        if [ -x /usr/sbin/apache-modconf ]; then
+            for i in apache apache-perl apache-ssl; do
+                if [ -e /etc/$i/httpd.conf ]; then
+                    apache-modconf $i disable mod_suphp quiet
+                fi
+            done
+        fi
+
+        ;;
+    upgrade|failed-upgrade|deconfigure)
+        ;;
+    *)
+        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
+
+