From: Vincent Bernat Date: Tue, 18 Dec 2007 22:16:47 +0000 (+0000) Subject: Handle transition from config files from roundcube to roundcube-core X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0c5f3581cd36ea1baa173426d97062cab5159f0b;p=roundcube.git Handle transition from config files from roundcube to roundcube-core --- diff --git a/debian/changelog b/debian/changelog index 18bbd90..d022326 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +roundcube (0.1~rc2-5) unstable; urgency=low + + * Deal with old /etc/logrotate.d/roundcube by removing it if left + untouched (Closes: #456546). Also deal with /etc/default/roundcube and + /etc/cron.daily/roundcube. + + -- Vincent Bernat Tue, 18 Dec 2007 23:02:46 +0100 + roundcube (0.1~rc2-4) unstable; urgency=low * Thightened dependencies for a safe upgrade diff --git a/debian/roundcube.cron.daily b/debian/roundcube.cron.daily new file mode 100644 index 0000000..d638782 --- /dev/null +++ b/debian/roundcube.cron.daily @@ -0,0 +1,8 @@ +# This file conflicts with /etc/cron.daily/roundcube-core. If you have +# modified it, report your modifications to +# /etc/cron.daily/roundcube-core. If this file is left empty or +# untouched, it will be deleted. + +# If you leave the following marker, this file will be deleted during +# the next upgrade: +# 75321 DELETE 75321 diff --git a/debian/roundcube.default b/debian/roundcube.default new file mode 100644 index 0000000..3506610 --- /dev/null +++ b/debian/roundcube.default @@ -0,0 +1,8 @@ +# This file conflicts with /etc/default/roundcube-core. If you have +# modified it, report your modifications to +# /etc/default/roundcube-core. If this file is left empty or +# untouched, it will be deleted. + +# If you leave the following marker, this file will be deleted during +# the next upgrade: +# 75321 DELETE 75321 diff --git a/debian/roundcube.logrotate b/debian/roundcube.logrotate new file mode 100644 index 0000000..bdb3ea5 --- /dev/null +++ b/debian/roundcube.logrotate @@ -0,0 +1,8 @@ +# This file conflicts with /etc/logrotate.d/roundcube-core. If you +# have modified it, report your modifications to +# /etc/logrotate.d/roundcube-core. If this file is left empty or +# untouched, it will be deleted. + +# If you leave the following marker, this file will be deleted during +# the next upgrade: +# 75321 DELETE 75321 diff --git a/debian/roundcube.postinst b/debian/roundcube.postinst new file mode 100644 index 0000000..99e67a5 --- /dev/null +++ b/debian/roundcube.postinst @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +# Handle old files that are not needed any more +for OLD in /etc/logrotate.d/roundcube /etc/default/roundcube /etc/cron.daily/roundcube; do + [ -f $OLD ] && { + if [ ! -s $OLD ]; then + rm $OLD + else + grep -q '^# 75321 DELETE 75321$' $OLD && rm $OLD + fi + } +done + +#DEBHELPER# + +exit 0