Your message dated Wed, 19 Dec 2012 20:09:16 +0100 with message-id <20121219190916.GS5634@radis.cristau.org> and subject line Re: Bug#691428: unblock: scuttle/0.7.4-8 has caused the Debian Bug report #691428, regarding unblock: scuttle/0.7.4-8 to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 691428: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=691428 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: unblock: scuttle/0.7.4-8
- From: Marcelo Jorge Vieira <metal@debian.org>
- Date: Thu, 25 Oct 2012 13:12:25 -0200
- Message-id: <1351177945.5476.17.camel@speedhorse.localdomain>
Package: release.debian.org Severity: normal User: release.debian.org@packages.debian.org Usertags: unblock Please unblock package scuttle. Attached is a debdiff of changes made to fix bug#688500. Cheers, -- Marcelo Jorge Vieira xmpp:metal@jabber-br.org http://metaldot.alucinados.comdiff -u scuttle-0.7.4/debian/control scuttle-0.7.4/debian/control --- scuttle-0.7.4/debian/control +++ scuttle-0.7.4/debian/control @@ -17,7 +17,8 @@ wwwconfig-common, dbconfig-common, php-gettext, - mysql-client + mysql-client, + ucf Suggests: mysql-server Description: Web-based social bookmarking system Allows multiple users to store, share and tag their favourite links online. diff -u scuttle-0.7.4/debian/changelog scuttle-0.7.4/debian/changelog --- scuttle-0.7.4/debian/changelog +++ scuttle-0.7.4/debian/changelog @@ -1,3 +1,10 @@ +scuttle (0.7.4-8) unstable; urgency=high + + * Fixed configuration file in /var (policy 10.7) (Closes: #688500) + - Moving config_debconf.inc.php from /var/lib to /etc + + -- Marcelo Jorge Vieira (metal) <metal@debian.org> Mon, 22 Oct 2012 02:18:10 -0200 + scuttle (0.7.4-7) unstable; urgency=low * Added Italian debconf template translation (Closes: #665703) diff -u scuttle-0.7.4/debian/scuttle.install scuttle-0.7.4/debian/scuttle.install --- scuttle-0.7.4/debian/scuttle.install +++ scuttle-0.7.4/debian/scuttle.install @@ -22 +22 @@ -debian/config_debconf.inc.php var/lib/scuttle/ +debian/config_debconf.inc.php usr/share/scuttle/ diff -u scuttle-0.7.4/debian/config.inc.php.diff scuttle-0.7.4/debian/config.inc.php.diff --- scuttle-0.7.4/debian/config.inc.php.diff +++ scuttle-0.7.4/debian/config.inc.php.diff @@ -21,7 +21,7 @@ +# $locale and $adminemail at +# /var/cache/scuttle/config_debconf.php -+include_once('/var/lib/scuttle/config_debconf.inc.php'); ++include_once('/etc/scuttle/config_debconf.inc.php'); + $sitename = 'Scuttle'; -$locale = 'en_GB'; diff -u scuttle-0.7.4/debian/config_debconf.inc.php scuttle-0.7.4/debian/config_debconf.inc.php --- scuttle-0.7.4/debian/config_debconf.inc.php +++ scuttle-0.7.4/debian/config_debconf.inc.php @@ -1,13 +1,6 @@ <? -### This file is automatically generated by scuttle -# -# Please do not edit this file directly. If you want to change or add -# anything please take a look at /etc/scuttle/config.inc.php -# -### - $adminemail = 'admin@example.org'; -$locale = 'en_GB' +$locale = 'en_GB'; ?> diff -u scuttle-0.7.4/debian/scuttle.postrm scuttle-0.7.4/debian/scuttle.postrm --- scuttle-0.7.4/debian/scuttle.postrm +++ scuttle-0.7.4/debian/scuttle.postrm @@ -43,12 +43,17 @@ fi # permissions - config file - CONFIG_FILE="/var/lib/scuttle/config_debconf.inc.php" + CONFIG_FILE="/etc/scuttle/config_debconf.inc.php" CONFIG_AUX=$(dpkg-statoverride --list | grep $CONFIG_FILE) || true if [ -z "$CONFIG_AUX" ]; then dpkg-statoverride --remove $CONFIG_FILE fi + rm -f $CONFIG_FILE + if which ucf >/dev/null 2>&1; then + ucf --purge $CONFIG_FILE + fi + # remove scuttle cache dir rm -rf /var/cache/scuttle fi diff -u scuttle-0.7.4/debian/scuttle.postinst scuttle-0.7.4/debian/scuttle.postinst --- scuttle-0.7.4/debian/scuttle.postinst +++ scuttle-0.7.4/debian/scuttle.postinst @@ -18,19 +18,16 @@ if [ -z "$CACHE_AUX" ]; then dpkg-statoverride --update --add root www-data 0774 $CACHE_DIR fi - - # config file debconf - CONFIG_FILE="/var/lib/scuttle/config_debconf.inc.php" - CONFIG_AUX=$(dpkg-statoverride --list | grep $CONFIG_FILE) || true - if [ -z "$CONFIG_AUX" ]; then - dpkg-statoverride --update --add root www-data 0640 $CONFIG_FILE - fi + # config file debconf + CONFIG_TEMPLATE="/usr/share/scuttle/config_debconf.inc.php" + CONFIG_FILE="/etc/scuttle/config_debconf.inc.php" + CONFIG_TMP="/etc/scuttle/config_debconf.inc.php.dpkg-new" # set admin email in config file ADMIN_EMAIL="\$_SERVER['SERVER_ADMIN']"; if [ -n "$ADMIN_EMAIL" ] ; then - sed -e "s/adminemail[^;]*/adminemail = $ADMIN_EMAIL/" -i $CONFIG_FILE + sed -e "s/adminemail[^;]*/adminemail = $ADMIN_EMAIL/" $CONFIG_TEMPLATE > $CONFIG_TMP fi # debconf messages @@ -39,7 +36,14 @@ # set locale in config file if [ -n "$LOCALE" ] ; then - sed -e "s/locale[^;]*/locale = '$LOCALE'/" -i $CONFIG_FILE + sed -e "s/locale[^;]*/locale = '$LOCALE'/" $CONFIG_TEMPLATE > $CONFIG_TMP + fi + + ucf --debconf-ok $CONFIG_TMP $CONFIG_FILE && rm -f $CONFIG_TMP + + CONFIG_AUX=$(dpkg-statoverride --list | grep $CONFIG_FILE) || true + if [ -z "$CONFIG_AUX" ]; then + dpkg-statoverride --update --add root www-data 0640 $CONFIG_FILE fi # source dbconfig-common stuffAttachment: signature.asc
Description: This is a digitally signed message part
--- End Message ---
--- Begin Message ---
- To: Marcelo Jorge Vieira <metal@debian.org>, 691428-done@bugs.debian.org
- Subject: Re: Bug#691428: unblock: scuttle/0.7.4-8
- From: Julien Cristau <jcristau@debian.org>
- Date: Wed, 19 Dec 2012 20:09:16 +0100
- Message-id: <20121219190916.GS5634@radis.cristau.org>
- In-reply-to: <1351177945.5476.17.camel@speedhorse.localdomain>
- References: <1351177945.5476.17.camel@speedhorse.localdomain>
On Thu, Oct 25, 2012 at 13:12:25 -0200, Marcelo Jorge Vieira wrote: > > Package: release.debian.org > Severity: normal > User: release.debian.org@packages.debian.org > Usertags: unblock > > Please unblock package scuttle. > > Attached is a debdiff of changes made to fix bug#688500. > Looks like this migrated a month ago, closing. Thanks, JulienAttachment: signature.asc
Description: Digital signature
--- End Message ---