~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to debian/postgresql-8.4.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-lqeaexh03y4xge1k
Tags: 8.4~0cvs20090328-1
* Package current trunk, which will become 8.4 in time. Packaging branched
  from 8.3 packaging trunk. Move from cdbs' tarball.mk to bzr-builddeb.
* Drop obsolete patches:
  - 03-gettext-domains.patch: Adopted upstream.
  - 04-psql-passwordprompt.patch: Obsoleted by new psql -w option.
  - 05-check-rlimits-nofile.patch: Adopted upstream.
* Update remaining patches for new upstream version.
* Add debian/docbook2man-sgmlspl/docbook2man-spec{.pl,_makelinks}: Current
  Debian version in docbook-utils is way too old and broken (see #275715,
  #271611), locally ship the current ones from upstream, in order to build
  manpages.
* debian/rules: Build documentation and manpage tarballs if not present (as
  with building from CVS). Add necessary build dependencies docbook-utils,
  openjade, and docbook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
VERSION=8.4
 
4
 
 
5
 
 
6
if [ "$1" = configure ]; then
 
7
    # fix init script stop priority on upgrades
 
8
    if dpkg --compare-versions "$2" le-nl "8.4~rc2-1"; then
 
9
        echo "Fixing init script priorities..."
 
10
        for l in 0 1 6; do
 
11
            old=/etc/rc$l.d/K19postgresql-8.4
 
12
            new=/etc/rc$l.d/K21postgresql-8.4
 
13
            if [ -e $old ] && ! [ -e $new ]; then
 
14
                mv $old $new
 
15
            fi
 
16
        done
 
17
    fi
 
18
 
 
19
    . /usr/share/postgresql-common/maintscripts-functions
 
20
 
 
21
    configure_version $VERSION "$2"
 
22
fi
 
23
 
 
24
#DEBHELPER#