summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/apache2.2-common.postrm24
-rw-r--r--debian/changelog2
2 files changed, 26 insertions, 0 deletions
diff --git a/debian/apache2.2-common.postrm b/debian/apache2.2-common.postrm
new file mode 100644
index 00000000..11c951dc
--- /dev/null
+++ b/debian/apache2.2-common.postrm
@@ -0,0 +1,24 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = purge ] ; then
+ rm -f /etc/apache2/httpd.conf \
+ /etc/apache2/ports.conf \
+ /etc/apache2/conf.d/charset
+
+ for f in /etc/apache2/sites-enabled/* \
+ /etc/apache2/mods-enabled/* ; do
+ [ -L "$f" ] && rm -f "$f"
+ done
+
+ for d in /etc/apache2/sites-enabled/ \
+ /etc/apache2/mods-enabled/ \
+ /etc/apache2/conf.d \
+ /etc/apache2 ; do
+ rmdir $d 2> /dev/null || true
+ done
+
+fi
+
+#DEBHELPER#
diff --git a/debian/changelog b/debian/changelog
index 36ea2357..ef5af916 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -37,6 +37,8 @@ apache2 (2.2.3-5) UNRELEASED; urgency=low
* Treat apache2-mpm-itk as prefork in a2enmod (Closes: #412602)
* Add README.Debian to describe when and how to change "restart" to "reload"
in the logrotate script.
+ * When purging, remove {mods,sites}-enabled symlink and the config files
+ created by postinst (Closes: #397789)
-- Thom May <thom@debian.org> Sat, 28 Apr 2007 11:32:14 +0200