rev 19565 - kde-extras/icecream/trunk/debian

Pino Toscano pino at alioth.debian.org
Fri May 24 15:12:22 UTC 2013


Author: pino
Date: 2013-05-24 15:12:22 +0000 (Fri, 24 May 2013)
New Revision: 19565

Added:
   kde-extras/icecream/trunk/debian/icecc.maintscript
Modified:
   kde-extras/icecream/trunk/debian/changelog
   kde-extras/icecream/trunk/debian/icecc.postinst
Log:
cleanup the old conffiles

remove /etc/init.d/icecc, and move away /etc/defaults/icecc


Modified: kde-extras/icecream/trunk/debian/changelog
===================================================================
--- kde-extras/icecream/trunk/debian/changelog	2013-05-24 13:08:34 UTC (rev 19564)
+++ kde-extras/icecream/trunk/debian/changelog	2013-05-24 15:12:22 UTC (rev 19565)
@@ -47,6 +47,8 @@
   * icecc.postrm: do not manually remove the conffiles in /etc, since dpkg does
     that already.
   * Bump Standards-Version to 3.9.4, no changes required.
+  * Cleanup the old conffiles: remove /etc/init.d/icecc, and move away
+    /etc/defaults/icecc.
 
  -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Thu, 23 May 2013 20:48:57 +0200
 

Added: kde-extras/icecream/trunk/debian/icecc.maintscript
===================================================================
--- kde-extras/icecream/trunk/debian/icecc.maintscript	                        (rev 0)
+++ kde-extras/icecream/trunk/debian/icecc.maintscript	2013-05-24 15:12:22 UTC (rev 19565)
@@ -0,0 +1 @@
+rm_conffile /etc/init.d/icecc 1.0.0-1~ icecc

Modified: kde-extras/icecream/trunk/debian/icecc.postinst
===================================================================
--- kde-extras/icecream/trunk/debian/icecc.postinst	2013-05-24 13:08:34 UTC (rev 19564)
+++ kde-extras/icecream/trunk/debian/icecc.postinst	2013-05-24 15:12:22 UTC (rev 19565)
@@ -24,6 +24,18 @@
 
 chown $ICECC_USER:$ICECC_GROUP $ICECC_HOME
 
+if [ "$1" = "upgrade" ]; then
+        if dpkg --compare-versions "$2" le "1.0.0-1~"; then
+                # unregister the old init script
+                update-rc.d icecc remove >/dev/null
+                # move away the old /etc/defaults/icecc; since the old version
+                # was modified in postinst, it cannot be removed by looking
+                # at its md5sum
+                echo "Moving obsolete conffile /etc/defaults/icecc out of the way..."
+                mv -f "/etc/defaults/icecc" "/etc/defaults/icecc.dpkg-bak"
+        fi
+fi
+
 #DEBHELPER#
 
 exit 0




More information about the pkg-kde-commits mailing list