rev 19558 - kde-extras/icecream/trunk/debian
Pino Toscano
pino at alioth.debian.org
Fri May 24 11:19:26 UTC 2013
Author: pino
Date: 2013-05-24 11:19:26 +0000 (Fri, 24 May 2013)
New Revision: 19558
Removed:
kde-extras/icecream/trunk/debian/icecc.config
kde-extras/icecream/trunk/debian/icecc.default
kde-extras/icecream/trunk/debian/icecc.templates
kde-extras/icecream/trunk/debian/po/
Modified:
kde-extras/icecream/trunk/debian/changelog
kde-extras/icecream/trunk/debian/icecc.postinst
Log:
remove the debconf usage to determine whether start daemons (#656089)
other than being uncommon to use debconf this way, it also overwrites a conffile,
/etc/defaults/icecc (which has been removed now, although still used if present)
Modified: kde-extras/icecream/trunk/debian/changelog
===================================================================
--- kde-extras/icecream/trunk/debian/changelog 2013-05-24 11:14:44 UTC (rev 19557)
+++ kde-extras/icecream/trunk/debian/changelog 2013-05-24 11:19:26 UTC (rev 19558)
@@ -36,6 +36,10 @@
properly.
* Rework the startup of iceccd and icecc-scheduler:
- split the init script in two init scripts for iceccd and icecc-scheduler
+ - remove the debconf usage to determine whether start daemons; other than
+ being uncommon to use debconf this way, it also overwrites a conffile,
+ /etc/defaults/icecc (which has been removed now, although still used if
+ present). (Closes: #656089)
-- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org> Thu, 23 May 2013 20:48:57 +0200
Modified: kde-extras/icecream/trunk/debian/icecc.postinst
===================================================================
--- kde-extras/icecream/trunk/debian/icecc.postinst 2013-05-24 11:14:44 UTC (rev 19557)
+++ kde-extras/icecream/trunk/debian/icecc.postinst 2013-05-24 11:19:26 UTC (rev 19558)
@@ -9,39 +9,10 @@
fi
# configure some variables
-CONFIGFILE=/etc/default/icecc
ICECC_GROUP=icecc
ICECC_USER=icecc
ICECC_HOME=/var/cache/icecc
-# source debconf stuff
-. /usr/share/debconf/confmodule
-db_version 2.0
-
-# generate configuration file
-echo "# Defaults for icecc initscript" > $CONFIGFILE
-echo "# sourced by /etc/init.d/icecc" >> $CONFIGFILE
-echo "START_ICECC=" >> $CONFIGFILE
-echo "START_ICECC_SCHEDULER=" >> $CONFIGFILE
-
-# retrieve various configuration options from debconf
-db_get icecc/daemon
-START_ICECC="$RET"
-
-db_get icecc/scheduler
-START_ICECC_SCHEDULER="$RET"
-
-# done with debconf
-db_stop
-
-cp -a -f $CONFIGFILE $CONFIGFILE.tmp
-
-sed -e "s/^ *START_ICECC=.*/START_ICECC=\"$START_ICECC\"/" \
- -e "s/^ *START_ICECC_SCHEDULER=.*/START_ICECC_SCHEDULER=\"$START_ICECC_SCHEDULER\"/" \
- < $CONFIGFILE > $CONFIGFILE.tmp
-
-mv -f $CONFIGFILE.tmp $CONFIGFILE
-
# create group
grep -q $ICECC_GROUP /etc/group || ( echo Creating $ICECC_GROUP group... ; \
addgroup --quiet --system $ICECC_GROUP)
More information about the pkg-kde-commits
mailing list