[pkg-boinc-commits] r521 - in /branches/experimental/boinc/debian: boinc-client.install boinc-client.postinst boinc-client.postrm boinc-client.templates changelog control overrides/ overrides/boinc-client po/ po/POTFILES.in po/templates.pot rules

fst-guest at users.alioth.debian.org fst-guest at users.alioth.debian.org
Tue Aug 29 20:46:45 UTC 2006


Author: fst-guest
Date: Tue Aug 29 20:46:45 2006
New Revision: 521

URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=521
Log:
Use debconf to ask whether the BOINC data directory should be removed while
purging the boinc-client package.

Added:
    branches/experimental/boinc/debian/boinc-client.templates
    branches/experimental/boinc/debian/overrides/
    branches/experimental/boinc/debian/overrides/boinc-client
    branches/experimental/boinc/debian/po/
    branches/experimental/boinc/debian/po/POTFILES.in
    branches/experimental/boinc/debian/po/templates.pot
Modified:
    branches/experimental/boinc/debian/boinc-client.install
    branches/experimental/boinc/debian/boinc-client.postinst
    branches/experimental/boinc/debian/boinc-client.postrm
    branches/experimental/boinc/debian/changelog
    branches/experimental/boinc/debian/control
    branches/experimental/boinc/debian/rules

Modified: branches/experimental/boinc/debian/boinc-client.install
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/boinc-client.install?rev=521&op=diff
==============================================================================
--- branches/experimental/boinc/debian/boinc-client.install (original)
+++ branches/experimental/boinc/debian/boinc-client.install Tue Aug 29 20:46:45 2006
@@ -4,3 +4,4 @@
 debian/extra/remote_hosts.cfg           etc/boinc-client
 debian/extra/update-boinc-applinks      usr/bin
 debian/tmp/usr/bin/boinc_cmd            usr/bin
+debian/overrides/boinc-client           usr/share/lintian/overrides

Modified: branches/experimental/boinc/debian/boinc-client.postinst
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/boinc-client.postinst?rev=521&op=diff
==============================================================================
--- branches/experimental/boinc/debian/boinc-client.postinst (original)
+++ branches/experimental/boinc/debian/boinc-client.postinst Tue Aug 29 20:46:45 2006
@@ -2,6 +2,9 @@
 # postinst script for boinc-client
 
 set -e
+
+# Source the debconf shell library.
+. /usr/share/debconf/confmodule
 
 BOINC_DIR=/var/lib/boinc-client
 CONF_DIR=/etc/boinc-client

Modified: branches/experimental/boinc/debian/boinc-client.postrm
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/boinc-client.postrm?rev=521&op=diff
==============================================================================
--- branches/experimental/boinc/debian/boinc-client.postrm (original)
+++ branches/experimental/boinc/debian/boinc-client.postrm Tue Aug 29 20:46:45 2006
@@ -3,18 +3,31 @@
 
 set -e
 
+# Source the debconf shell library.
+. /usr/share/debconf/confmodule
+
 BOINC_DIR=/var/lib/boinc-client
+
+remove_boinc_dir_and_user()
+{
+    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
+            remove_boinc_dir_and_user
         fi
     ;;
 

Added: branches/experimental/boinc/debian/boinc-client.templates
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/boinc-client.templates?rev=521&op=file
==============================================================================
--- branches/experimental/boinc/debian/boinc-client.templates (added)
+++ branches/experimental/boinc/debian/boinc-client.templates Tue Aug 29 20:46:45 2006
@@ -1,0 +1,4 @@
+Template: boinc-client/remove_boinc_dir
+Type: boolean
+Default: false
+_Description: Remove the BOINC data directory?

Modified: branches/experimental/boinc/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/changelog?rev=521&op=diff
==============================================================================
--- branches/experimental/boinc/debian/changelog (original)
+++ branches/experimental/boinc/debian/changelog Tue Aug 29 20:46:45 2006
@@ -4,13 +4,15 @@
 
   [ Frank S. Thomas ]
   * New experimental upstream release.
+  * Use debconf to ask whether the BOINC data directory should be removed
+    while purging the boinc-client package.
   * Updates for the new Python policy:
     - Added python-support (>= 0.4) to Build-Depends.
     - Replaced dh_python with dh_pysupport in debian/rules.
   * debian/patches/:
     - Updated 07_use-sensible-browser.dpatch for the new release.
 
- -- Frank S. Thomas <frank at thomas-alfeld.de>  Sun, 27 Aug 2006 23:27:43 +0200
+ -- Frank S. Thomas <frank at thomas-alfeld.de>  Tue, 29 Aug 2006 22:40:47 +0200
 
 boinc (5.4.10-2) unstable; urgency=medium
 

Modified: branches/experimental/boinc/debian/control
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/control?rev=521&op=diff
==============================================================================
--- branches/experimental/boinc/debian/control (original)
+++ branches/experimental/boinc/debian/control Tue Aug 29 20:46:45 2006
@@ -4,7 +4,7 @@
 Maintainer: Debian BOINC Maintainers <pkg-boinc-devel at lists.alioth.debian.org>
 Uploaders: Steffen Moeller <steffen_moeller at gmx.de>, Frank S. Thomas <frank at thomas-alfeld.de>, Christoph Martin <christoph.martin at uni-mainz.de>
 Standards-Version: 3.7.2
-Build-Depends: debhelper (>= 5), dpatch, python-support (>= 0.4), libmysqlclient15-dev, zlib1g-dev, libssl-dev, libcurl3-openssl-dev (>= 7.13.2) | libcurl-ssl-dev, freeglut3-dev, libsm-dev, libice-dev, libxmu-dev, libxi-dev, libx11-dev, libjpeg62-dev, libwxgtk2.6-dev, automake1.9 (>= 1.9.3), autoconf (>= 2.59), autotools-dev, docbook2x, docbook-xml, dh-buildinfo
+Build-Depends: debhelper (>= 5), dpatch, python-support (>= 0.4), po-debconf, libmysqlclient15-dev, zlib1g-dev, libssl-dev, libcurl3-openssl-dev (>= 7.13.2) | libcurl-ssl-dev, freeglut3-dev, libsm-dev, libice-dev, libxmu-dev, libxi-dev, libx11-dev, libjpeg62-dev, libwxgtk2.6-dev, automake1.9 (>= 1.9.3), autoconf (>= 2.59), autotools-dev, docbook2x, docbook-xml, dh-buildinfo
 
 Package: boinc-client
 Section: net

Added: branches/experimental/boinc/debian/overrides/boinc-client
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/overrides/boinc-client?rev=521&op=file
==============================================================================
--- branches/experimental/boinc/debian/overrides/boinc-client (added)
+++ branches/experimental/boinc/debian/overrides/boinc-client Tue Aug 29 20:46:45 2006
@@ -1,0 +1,1 @@
+boinc-client: no-debconf-config

Added: branches/experimental/boinc/debian/po/POTFILES.in
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/po/POTFILES.in?rev=521&op=file
==============================================================================
--- branches/experimental/boinc/debian/po/POTFILES.in (added)
+++ branches/experimental/boinc/debian/po/POTFILES.in Tue Aug 29 20:46:45 2006
@@ -1,0 +1,1 @@
+[type: gettext/rfc822deb] boinc-client.templates

Added: branches/experimental/boinc/debian/po/templates.pot
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/po/templates.pot?rev=521&op=file
==============================================================================
--- branches/experimental/boinc/debian/po/templates.pot (added)
+++ branches/experimental/boinc/debian/po/templates.pot Tue Aug 29 20:46:45 2006
@@ -1,0 +1,23 @@
+# 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-08-29 22:39+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 "Remove the BOINC data directory?"
+msgstr ""

Modified: branches/experimental/boinc/debian/rules
URL: http://svn.debian.org/wsvn/pkg-boinc/branches/experimental/boinc/debian/rules?rev=521&op=diff
==============================================================================
--- branches/experimental/boinc/debian/rules (original)
+++ branches/experimental/boinc/debian/rules Tue Aug 29 20:46:45 2006
@@ -143,6 +143,8 @@
 	  aclocal.m4 \
 	  config.h.in \
 	  configure
+	
+	debconf-updatepo
 
 clean-boinc-client:
 	dh_testdir
@@ -228,6 +230,7 @@
 	dh_testroot
 	dh_installchangelogs -a
 	dh_installdocs -a
+	dh_installdebconf -a
 	dh_installmenu -a
 	dh_desktop -a
 	dh_installinit -a




More information about the pkg-boinc-commits mailing list