~vorlon/ubuntu/oneiric/cyrus-sasl2/multiarch

« back to all changes in this revision

Viewing changes to debian/sasl2-bin.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-06-04 16:03:06 UTC
  • mfrom: (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090604160306-wioioa3amb1up5ws
Tags: 2.1.23.dfsg1-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add sysv-rc dependency
  - Since the libsasl2 package description so clearly
    states that the library is "completely useless" without one of the
    libsasl2-modules packages, upgrade the Recommends on a single package
    to an ORd Depends on the complete list of them.
  - Prepend XS-Original- to Vcs-{Browser,Svn}.
  - Remove stop links from rc0 and rc6
  - stop service only when switching to single user mode.
* Dropped changes, superseded in Debian:
  - build-depend on libdb4.6-dev; Debian has moved on to db4.7
  - Added debian/patches/021ubuntu-fix-threaded-sasl.dpatch
    - Fixes SEGV in threaded SASL applications.
* debian/rules: remove all the build-*stamp files on clean, not just
  build-stamp.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
# the Free Software Foundation; either version 2 of the License, or
7
7
# (at your option) any later version.
8
8
 
 
9
set -e
 
10
 
9
11
FALLBACK_RUN_DIR=/var/run/saslauthd
10
12
SASLDB_FILE=/etc/sasldb2
11
13
 
17
19
                # Upgrade SASL database if needed
18
20
                # The libdb dependency was updated in the following versions:
19
21
                #  2.1.22.dfsg1-14 (db4.2 -> db4.4)
20
 
                #  2.1.22.dfsg1-17 (db.4.4 -> db4.6)
21
 
                if dpkg --compare-versions "$2" "lt-nl" 2.1.22.dfsg1-17; then
 
22
                #  2.1.22.dfsg1-17 (db4.4 -> db4.6)
 
23
                #  2.1.22.dfsg1-24 (db4.6 -> db4.7)
 
24
                if dpkg --compare-versions "$2" "lt-nl" 2.1.22.dfsg1-24; then
22
25
                        
23
26
                        # If the database contains no users, just wipe it out,
24
27
                        # it will be recreated later in the current format
37
40
                                fi
38
41
 
39
42
                                # Upgrade SASL database and handle errors
40
 
                                if ! db4.6_upgrade $SASLDB_FILE >/dev/null 2>&1; then
 
43
                                if ! db4.7_upgrade $SASLDB_FILE >/dev/null 2>&1; then
41
44
                                        db_input high cyrus-sasl2/upgrade-sasldb2-failed || true
42
45
                                        db_go || true
43
46
                                        cp --archive "$RET" $SASLDB_FILE >/dev/null 2>&1