summaryrefslogtreecommitdiff
path: root/debian/apache2.2-common.preinst
diff options
context:
space:
mode:
authorStefan Fritsch <sf@debian.org>2007-07-03 19:42:35 +0000
committerStefan Fritsch <sf@sfritsch.de>2012-01-02 10:36:44 +0100
commitecc520f8b0688d3c041a701c67807ecd1332f43e (patch)
tree39835ec4f6a47affd7755bc01ac20c617c3d91b8 /debian/apache2.2-common.preinst
parent2315b6274e31327967bd445a0d4068c1c6d28f88 (diff)
downloadapache2-ecc520f8b0688d3c041a701c67807ecd1332f43e.tar.gz
* Remove the NO_START kludge.
* Disable AddDefaultCharset by default * Make ports.conf, conf.d/charset, and /etc/default/apache2 conffiles managed by dpkg git-svn-id: svn+ssh://svn.debian.org/svn/pkg-apache/trunk/apache2@406 01b336ce-410b-0410-9a02-a0e7f243c266
Diffstat (limited to 'debian/apache2.2-common.preinst')
-rw-r--r--debian/apache2.2-common.preinst12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/apache2.2-common.preinst b/debian/apache2.2-common.preinst
index 9cdcbc25..e6898098 100644
--- a/debian/apache2.2-common.preinst
+++ b/debian/apache2.2-common.preinst
@@ -17,4 +17,16 @@ fi
# YAY, MORE EVILNESS
rm -f /var/lib/dpkg/info/apache2-common.postrm
+mv_conffile() {
+ if [ "`md5sum $1 2>/dev/null | cut -d ' ' -f 1`" = "$2" ] ; then
+ mv $1 $1.dpkg-apache2.2-common.old
+ fi
+}
+
+if [ "$2" ] && dpkg --compare-versions "$2" lt 2.2.4-2; then
+ mv_conffile /etc/default/apache2 9ac83f9132b78c3aa6dd4d7a583bf476
+ mv_conffile /etc/apache2/ports.conf d5fcefc335117f400d451de47efeca87
+ mv_conffile /etc/apache2/conf.d/charset 641239a7d2d172856cb1413a47d2e142
+fi
+
#DEBHELPER#