[pkg-boinc-commits] r537 - in /trunk/boinc/debian: boinc-client.install boinc-client.postinst boinc-client.postrm boinc-client.templates changelog overrides/ overrides/boinc-client po/ po/POTFILES.in po/templates.pot

fst-guest at users.alioth.debian.org fst-guest at users.alioth.debian.org
Fri Oct 6 08:26:58 UTC 2006


Author: fst-guest
Date: Fri Oct  6 08:26:58 2006
New Revision: 537

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=537
Log:
Finally commit the debconf changes.

Added:
    trunk/boinc/debian/boinc-client.templates
    trunk/boinc/debian/overrides/
    trunk/boinc/debian/overrides/boinc-client
    trunk/boinc/debian/po/
    trunk/boinc/debian/po/POTFILES.in
    trunk/boinc/debian/po/templates.pot
Modified:
    trunk/boinc/debian/boinc-client.install
    trunk/boinc/debian/boinc-client.postinst
    trunk/boinc/debian/boinc-client.postrm
    trunk/boinc/debian/changelog

Modified: trunk/boinc/debian/boinc-client.install
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/boinc-client.install?rev=537&op=diff
==============================================================================
--- trunk/boinc/debian/boinc-client.install (original)
+++ trunk/boinc/debian/boinc-client.install Fri Oct  6 08:26:58 2006
@@ -3,4 +3,5 @@
 debian/conffiles/log_flags.xml              etc/boinc-client
 debian/conffiles/remote_hosts.cfg           etc/boinc-client
 debian/extra/update-boinc-applinks  usr/bin
-lib/boinc_cmd                       usr/bin
+debian/overrides/boinc-client       usr/share/lintian/overrides
+debian/tmp/usr/bin/boinc_cmd        usr/bin

Modified: trunk/boinc/debian/boinc-client.postinst
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/boinc-client.postinst?rev=537&op=diff
==============================================================================
--- trunk/boinc/debian/boinc-client.postinst (original)
+++ trunk/boinc/debian/boinc-client.postinst Fri Oct  6 08:26:58 2006
@@ -3,16 +3,19 @@
 
 set -e
 
+# Source the debconf shell library.
+. /usr/share/debconf/confmodule
+
 BOINC_DIR=/var/lib/boinc-client
 CONF_DIR=/etc/boinc-client
 
-move_configfile_and_symlink()
+mv_conffile()
 {
-    if [ ! -L $BOINC_DIR/$1 -a -f $BOINC_DIR/$1 ]; then
-        mv -f $BOINC_DIR/$1 $CONF_DIR/$1
+    if [ ! -L "$BOINC_DIR/$1" -a -f "$BOINC_DIR/$1" ]; then
+        mv -f "$BOINC_DIR/$1" "$CONF_DIR/$1"
     fi
-    ln -sf $CONF_DIR/$1 $BOINC_DIR/$1
-    chown boinc:boinc $BOINC_DIR/$1
+    ln -sf "$CONF_DIR/$1" "$BOINC_DIR/$1"
+    chown boinc:boinc "$BOINC_DIR/$1"
 }
 
 case "$1" in
@@ -35,15 +38,15 @@
 
         # Move old configuration files to /etc/boinc-client/ and
         # create symlinks for the BOINC core client.
-        move_configfile_and_symlink global_prefs_override.xml
-        move_configfile_and_symlink gui_rpc_auth.cfg
-        move_configfile_and_symlink log_flags.xml
-        move_configfile_and_symlink remote_hosts.cfg
+        mv_conffile global_prefs_override.xml
+        mv_conffile gui_rpc_auth.cfg
+        mv_conffile log_flags.xml
+        mv_conffile remote_hosts.cfg
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
     ;;
-    
+
     *)
         echo "postinst called with unknown argument \`$1'" >&2
         exit 1

Modified: trunk/boinc/debian/boinc-client.postrm
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/boinc-client.postrm?rev=537&op=diff
==============================================================================
--- trunk/boinc/debian/boinc-client.postrm (original)
+++ trunk/boinc/debian/boinc-client.postrm Fri Oct  6 08:26:58 2006
@@ -3,18 +3,31 @@
 
 set -e
 
+# Source the debconf shell library.
+. /usr/share/debconf/confmodule
+
 BOINC_DIR=/var/lib/boinc-client
+
+rm_boinc_dir()
+{
+    if [ -d $BOINC_DIR ]; then
+        rm -r $BOINC_DIR
+    fi
+    if getent passwd boinc >/dev/null; then
+        deluser boinc
+    fi
+    if getent group boinc >/dev/null; then
+        delgroup boinc
+    fi
+}
 
 case "$1" in
     purge)
-        if [ -d $BOINC_DIR ]; then
-            rm -r $BOINC_DIR
-        fi
-        if getent passwd boinc >/dev/null; then
-            deluser boinc
-        fi
-        if getent group boinc >/dev/null; then
-            delgroup boinc
+        db_input high boinc-client/remove_boinc_dir || true
+        db_go
+        db_get boinc-client/remove_boinc_dir || true
+        if [ "$RET" = "true" ]; then
+            rm_boinc_dir
         fi
     ;;
 

Added: trunk/boinc/debian/boinc-client.templates
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/boinc-client.templates?rev=537&op=file
==============================================================================
--- trunk/boinc/debian/boinc-client.templates (added)
+++ trunk/boinc/debian/boinc-client.templates Fri Oct  6 08:26:58 2006
@@ -1,0 +1,13 @@
+Template: boinc-client/remove_boinc_dir
+Type: boolean
+Default: false
+_Description: Do you want to remove the BOINC data directory?
+ The BOINC data directory /var/lib/boinc-client contains the information to
+ which projects the BOINC core client is attached, the work unit cache and
+ several other data.  If you no longer need this data, this is your chance to
+ remove them.
+ .
+ If no longer have need of the data being stored in the BOINC data directory,
+ you should choose this option.  If you want to hold this data for another
+ time, or if you would rather handle this process manually, you should refuse
+ this option.

Modified: trunk/boinc/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/changelog?rev=537&op=diff
==============================================================================
--- trunk/boinc/debian/changelog (original)
+++ trunk/boinc/debian/changelog Fri Oct  6 08:26:58 2006
@@ -1,6 +1,9 @@
 boinc (5.4.11-2) unstable; urgency=low
 
-  * NOT RELEASED YET
+  * Use debconf to ask whether the default BOINC data directory
+    /var/lib/boinc-client should be removed while purging the boinc-client
+    package. The wording of the template was taken from the
+    dbconfig-common/purge template.
   * debian/control:
     - Added po-debconf to Build-Depends because debconf-updatepo is called in
       the clean target of debian/rules.
@@ -15,7 +18,7 @@
   * debian/copyright:
     - Added copyright note about the Debian packaging.
 
- -- Frank S. Thomas <frank at thomas-alfeld.de>  Fri,  6 Oct 2006 09:34:28 +0200
+ -- Frank S. Thomas <frank at thomas-alfeld.de>  Fri,  6 Oct 2006 10:23:19 +0200
 
 boinc (5.4.11-1) unstable; urgency=low
 

Added: trunk/boinc/debian/overrides/boinc-client
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/overrides/boinc-client?rev=537&op=file
==============================================================================
--- trunk/boinc/debian/overrides/boinc-client (added)
+++ trunk/boinc/debian/overrides/boinc-client Fri Oct  6 08:26:58 2006
@@ -1,0 +1,1 @@
+boinc-client: no-debconf-config

Added: trunk/boinc/debian/po/POTFILES.in
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/po/POTFILES.in?rev=537&op=file
==============================================================================
--- trunk/boinc/debian/po/POTFILES.in (added)
+++ trunk/boinc/debian/po/POTFILES.in Fri Oct  6 08:26:58 2006
@@ -1,0 +1,1 @@
+[type: gettext/rfc822deb] boinc-client.templates

Added: trunk/boinc/debian/po/templates.pot
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/po/templates.pot?rev=537&op=file
==============================================================================
--- trunk/boinc/debian/po/templates.pot (added)
+++ trunk/boinc/debian/po/templates.pot Fri Oct  6 08:26:58 2006
@@ -1,0 +1,43 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: pkg-boinc-devel at lists.alioth.debian.org\n"
+"POT-Creation-Date: 2006-09-02 12:10+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../boinc-client.templates:1001
+msgid "Do you want to remove the BOINC data directory?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boinc-client.templates:1001
+msgid ""
+"The BOINC data directory /var/lib/boinc-client contains the information to "
+"which projects the BOINC core client is attached, the work unit cache and "
+"several other data.  If you no longer need this data, this is your chance to "
+"remove them."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boinc-client.templates:1001
+msgid ""
+"If no longer have need of the data being stored in the BOINC data directory, "
+"you should choose this option.  If you want to hold this data for another "
+"time, or if you would rather handle this process manually, you should refuse "
+"this option."
+msgstr ""




More information about the pkg-boinc-commits mailing list