~ubuntu-branches/ubuntu/lucid/couchdb/lucid

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Chad Miller, Ken VanDine
  • Date: 2009-09-25 19:18:26 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090925191826-km9018omfgxosvah
Tags: 0.10.0~svn818859-0ubuntu1
* Import code from pre-release branch.  (LP: #427860, #408909)
        + Build and System Integration:
          * Changed `couchdb` script configuration options.
          * Added default.d and local.d configuration directories to load
      sequence.
        + HTTP Interface:
          * Added optional cookie-based authentication handler.
          * Added optional two-legged OAuth authentication handler.
* Packaging of couchdb-bin must replace pre-split couchdb.
  (LP: #432219)
* Move all of /etc and /var out of the couchdb-bin package, to the
  couchdb package. 
* /etc/couchdb must be in couchdb-bin, as config files are needed
  by all servers.
  + So the couchdb user must be managed by couchdb-bin.
  + Split postinst/postrm files to manage different files.
  + Set Replaces of couchdb-bin by couchdb so that config files
    migrate.
* Update the version number in postrm.  (!)
* Use the new "Breaks" field in control file to help split pkg.

[Ken VanDine]
* debian/couchdb.install:
  - removed /var
* debian/rules:
  - removed bootstrap 
* debian/couchdb.postinst:
  - Added the debhelper tag

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
 
3
 
# Copyright 2009, Noah Slater <nslater@tumbolia.org>
4
 
 
5
 
# Copying and distribution of this file, with or without modification, are
6
 
# permitted in any medium without royalty provided the copyright notice and this
7
 
# notice are preserved.
8
 
 
9
 
VERSION=%VERSION%
10
 
 
11
 
case $1 in
12
 
    purge)
13
 
        if test -d "/etc/couchdb"; then
14
 
            rmdir --ignore-fail-on-non-empty "/etc/couchdb" || true
15
 
        fi
16
 
        if test -d "/var/lib/couchdb/$VERSION"; then
17
 
            rmdir --ignore-fail-on-non-empty "/var/lib/couchdb/$VERSION" || true
18
 
        fi
19
 
        if test -d "/var/lib/couchdb"; then
20
 
            rmdir --ignore-fail-on-non-empty "/var/lib/couchdb" || true
21
 
        fi
22
 
        if test -d "/var/log/couchdb/$VERSION"; then
23
 
            rmdir --ignore-fail-on-non-empty "/var/log/couchdb/$VERSION" || true
24
 
        fi
25
 
        if test -d "/var/log/couchdb"; then
26
 
            rmdir --ignore-fail-on-non-empty "/var/log/couchdb" || true
27
 
        fi
28
 
        if test -d "/var/run/couchdb"; then
29
 
            rmdir --ignore-fail-on-non-empty "/var/run/couchdb" || true
30
 
        fi
31
 
        ;;
32
 
esac
33
 
 
34
 
#DEBHELPER#