[Pkg-cyrus-sasl2-commits] r233 - in /cyrus-sasl-2.1/trunk/debian: changelog control rules sasl2-bin.postinst sasl2-bin.postrm sasl2-bin.templates
fabbe at users.alioth.debian.org
fabbe at users.alioth.debian.org
Fri Jun 8 09:52:50 UTC 2007
Author: fabbe
Date: Fri Jun 8 09:52:50 2007
New Revision: 233
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/?sc=1&rev=233
Log:
Introduce Debconf prompt to ask for permission to remove /etc/sasldb2 on purge.
Added:
cyrus-sasl-2.1/trunk/debian/sasl2-bin.postrm
cyrus-sasl-2.1/trunk/debian/sasl2-bin.templates
Modified:
cyrus-sasl-2.1/trunk/debian/changelog
cyrus-sasl-2.1/trunk/debian/control
cyrus-sasl-2.1/trunk/debian/rules
cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst
Modified: cyrus-sasl-2.1/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/changelog?rev=233&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/changelog (original)
+++ cyrus-sasl-2.1/trunk/debian/changelog Fri Jun 8 09:52:50 2007
@@ -8,9 +8,12 @@
need to install the modules packages, since they are not needed on all
systems but are needed especially on servers that provide SASL
authentication.
-
-
- -- Fabian Fagerholm <fabbe at debian.org> Thu, 7 Jun 2007 14:15:26 +0300
+ * debian/control, debian/sasl2-bin.templates, debian/sasl2-bin.postinst,
+ debian/rules, debian/sasl2-bin.postrm: Introduce Debconf prompt to ask
+ for permission to remove /etc/sasldb2 on package purge, with fallback
+ to not remove it when Debconf is not present. (Closes: #333416)
+
+ -- Fabian Fagerholm <fabbe at debian.org> Fri, 8 Jun 2007 12:49:34 +0300
cyrus-sasl2 (2.1.22.dfsg1-11) unstable; urgency=low
Modified: cyrus-sasl-2.1/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/control?rev=233&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/control (original)
+++ cyrus-sasl-2.1/trunk/debian/control Fri Jun 8 09:52:50 2007
@@ -4,14 +4,14 @@
Maintainer: Debian Cyrus SASL Team <pkg-cyrus-sasl2-debian-devel at lists.alioth.debian.org>
Uploaders: Fabian Fagerholm <fabbe at debian.org>, Roberto C. Sanchez <roberto at connexer.com>
Standards-Version: 3.7.2
-Build-Depends: debhelper (>= 5.0.0), dpatch, autotools-dev, automake1.9, autoconf, libtool, libdb4.2-dev (>= 4.2.52-24), libpam0g-dev (>= 0.76-22), libssl-dev (>= 0.9.7e-3), libmysqlclient15-dev (>= 5.0.20-1), libopie-dev (>= 2.32-10), libpq-dev (>= 8.1.3-4), libkrb5-dev, libsqlite0-dev (>= 2.8.16-1), libldap2-dev (>= 2.1.30-8), chrpath, groff-base
+Build-Depends: debhelper (>= 5.0.0), dpatch, autotools-dev, automake1.9, autoconf, libtool, libdb4.2-dev (>= 4.2.52-24), libpam0g-dev (>= 0.76-22), libssl-dev (>= 0.9.7e-3), libmysqlclient15-dev (>= 5.0.20-1), libopie-dev (>= 2.32-10), libpq-dev (>= 8.1.3-4), libkrb5-dev, libsqlite0-dev (>= 2.8.16-1), libldap2-dev (>= 2.1.30-8), chrpath, groff-base, debconf (>= 0.5) | debconf-2.0
Build-Conflicts: heimdal-dev
Package: sasl2-bin
Section: utils
Priority: optional
Architecture: any
-Depends: ${shlibs:Depends}, lsb-base (>= 3.0-6)
+Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6)
Description: Administration programs for SASL users database
This is the Cyrus SASL API implementation, version 2.1. See package
libsasl2-2 and RFC 2222 for more information.
Modified: cyrus-sasl-2.1/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/rules?rev=233&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/rules (original)
+++ cyrus-sasl-2.1/trunk/debian/rules Fri Jun 8 09:52:50 2007
@@ -234,6 +234,7 @@
binary-arch: build-arch install
dh_testdir -a
dh_testroot -a
+ dh_installdebconf -a
dh_installchangelogs -a ChangeLog
dh_installdocs -a
dh_installexamples -a
Modified: cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst?rev=233&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst (original)
+++ cyrus-sasl-2.1/trunk/debian/sasl2-bin.postinst Fri Jun 8 09:52:50 2007
@@ -8,6 +8,9 @@
FALLBACK_RUN_DIR=/var/run/saslauthd
SASLDB_FILE=/etc/sasldb2
+
+# Debconf hook.
+. /usr/share/debconf/confmodule
case "$1" in
configure)
Added: cyrus-sasl-2.1/trunk/debian/sasl2-bin.postrm
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/sasl2-bin.postrm?rev=233&op=file
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/sasl2-bin.postrm (added)
+++ cyrus-sasl-2.1/trunk/debian/sasl2-bin.postrm Fri Jun 8 09:52:50 2007
@@ -1,0 +1,65 @@
+#!/bin/sh
+# postrm script for cyrus-sasl2
+# Copyright (c) 2007 by Fabian Fagerholm <fabbe at debian.org>
+# Parts based on cyrus-imapd-2.2 by Henrique de Moraes Holshuch and others.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# Note that Cyrus SASL itself is published under a different license.
+
+set -e
+
+FALLBACK_RUN_DIR=/var/run/saslauthd
+
+# Debconf hook. We don't rely on debconf being present at this time.
+if [ -e /usr/share/debconf/confmodule ];then
+ # Source debconf library.
+ . /usr/share/debconf/confmodule
+ DEBCONFEXISTS="true"
+ export DEBCONFEXISTS
+else
+ DEBCONFEXISTS="false"
+ export DEBCONFEXISTS
+fi
+
+case "$1" in
+ remove)
+ ;;
+ purge)
+ # Remove the default statoverride, if it exists
+ if dpkg-statoverride --list $FALLBACK_RUN_DIR >/dev/null 2>&1; then
+ dpkg-statoverride --remove $FALLBACK_RUN_DIR || true
+ fi
+
+ # Purge /etc/sasldb2? If Debconf is not installed, it will
+ # not be touched.
+ if [ "$DEBCONFEXISTS" = "true" ]; then
+ db_title "Cyrus SASL" || true
+ db_fset cyrus-sasl2/purge-sasldb2 seen false || true
+ db_input high cyrus-sasl2/purge-sasldb2 || true
+ db_go || true
+ db_get cyrus-sasl2/purge-sasldb2
+
+ if [ "$RET" = "true" ]; then
+ rm -f /etc/sasldb2
+ fi
+ fi
+ ;;
+ upgrade|failed-upgrade|disappear)
+ ;;
+ abort-upgrade)
+ ;;
+ abort-install)
+ ;;
+ *)
+ echo "postrm called with unknown argument $1" >&2
+ exit 0
+esac
+
+# dh_installdeb will replace this with automatically generated code.
+#DEBHELPER#
+
+exit 0
Added: cyrus-sasl-2.1/trunk/debian/sasl2-bin.templates
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/sasl2-bin.templates?rev=233&op=file
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/sasl2-bin.templates (added)
+++ cyrus-sasl-2.1/trunk/debian/sasl2-bin.templates Fri Jun 8 09:52:50 2007
@@ -1,0 +1,10 @@
+Template: cyrus-sasl2/purge-sasldb2
+Type: boolean
+Default: false
+Description: Remove /etc/sasldb2?
+ Cyrus SASL can store usernames and passwords in the database file
+ /etc/sasldb2. If you have stored important data in that file, then
+ please make a backup now or answer "no" to this question.
+ .
+ If you have not stored important data in that file, it's safe to
+ answer "yes".
More information about the Pkg-cyrus-sasl2-commits
mailing list