Skip to content

Commit

Permalink
Added missing dbconfig-common hooks and set defaults for database nam…
Browse files Browse the repository at this point in the history
…e and

database user to interchange-cat-standard Debian package.
  • Loading branch information
racke committed Feb 15, 2008
1 parent 814a939 commit 0a55170
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 8 deletions.
2 changes: 2 additions & 0 deletions WHATSNEW-5.5
Expand Up @@ -150,6 +150,8 @@ Packaging

* Apache 2 is now default webserver for Debian packages.

* Added missing dbconfig-common hooks and set defaults for database name and
database user to interchange-cat-standard Debian package.

Interchange 5.5.1 released on 2007-08-21.

Expand Down
5 changes: 4 additions & 1 deletion debian/changelog
Expand Up @@ -3,6 +3,9 @@ interchange (5.5.2-0.0.1) unstable; urgency=low
* new upstream release
- display modified date on Saved Carts / Recurring Order page in a
human readable format (Closes: #430338)
* demo catalog installation
- added missing dbconfig-common hooks (Closes: #465993)
- added defaults for database name and database user
* updated French translation of Debconf templates (Closes: #440784,
thanks to Christian Perrier <bubulle@debian.org>)
* don't care about Apache 1 anymore
Expand All @@ -11,7 +14,7 @@ interchange (5.5.2-0.0.1) unstable; urgency=low
* use type error for wrong Debconf input
* use colon style for Debconf questions

-- Stefan Hornburg (Racke) <racke@linuxia.de> Fri, 15 Feb 2008 21:51:46 +0100
-- Stefan Hornburg (Racke) <racke@linuxia.de> Fri, 15 Feb 2008 22:22:06 +0100

interchange (5.5.1-1) unstable; urgency=low

Expand Down
8 changes: 6 additions & 2 deletions debian/interchange-cat-standard.config
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
# Copyright 2001,2002,2003,2004,2005,2006 by Stefan Hornburg (Racke) <racke@linuxia.de>
# Copyright 2001,2002,2003,2004,2005,2006,2008 by Stefan Hornburg (Racke) <racke@linuxia.de>
#
# 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
Expand All @@ -20,8 +20,12 @@
# Source debconf library
. /usr/share/debconf/confmodule

# Source dbconfig-common stuff
# Set defaults for dbconfig-common
dbc_dbtypes="mysql, pgsql"
dbc_dbname=interchange_standard
dbc_dbuser=interchange

# Source dbconfig-common stuff
. /usr/share/dbconfig-common/dpkg/config

# demo catalog installation
Expand Down
7 changes: 4 additions & 3 deletions debian/interchange-cat-standard.postinst
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
# Copyright 2001,2004,2005,2006 by Stefan Hornburg (Racke) <racke@linuxia.de>
# Copyright 2001,2004,2005,2006,2008 by Stefan Hornburg (Racke) <racke@linuxia.de>
#
# 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
Expand All @@ -19,8 +19,9 @@

# Source debconf library
. /usr/share/debconf/confmodule
# Source dbconfig-common library
. /usr/share/dbconfig-common/dpkg/postinst.mysql

# Call dbconfig-common hook
. /usr/share/dbconfig-common/dpkg/postinst
dbc_go interchange-cat-standard $@

GOAHEAD=false
Expand Down
8 changes: 7 additions & 1 deletion debian/interchange-cat-standard.postrm
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
# Copyright 2000,2001,2004 by Stefan Hornburg (Racke) <racke@linuxia.de>
# Copyright 2000,2001,2004,2008 by Stefan Hornburg (Racke) <racke@linuxia.de>
#
# 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
Expand All @@ -20,6 +20,12 @@
# Source debconf library
. /usr/share/debconf/confmodule

# Call dbconfig-common hook
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
. /usr/share/dbconfig-common/dpkg/postrm
dbc_go interchange-cat-standard $@
fi

if [ "$1" = "purge" ]; then
db_get interchange-cat-standard/install
if [ "$RET" = "true" ]; then
Expand Down
6 changes: 5 additions & 1 deletion debian/interchange-cat-standard.prerm
@@ -1,6 +1,6 @@
#! /bin/sh -e
#
# Copyright 2001,2004,2005 by Stefan Hornburg (Racke) <racke@linuxia.de>
# Copyright 2001,2004,2005,2008 by Stefan Hornburg (Racke) <racke@linuxia.de>
#
# 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
Expand All @@ -20,6 +20,10 @@
# Source debconf library
. /usr/share/debconf/confmodule

# Call dbconfig-common hook
. /usr/share/dbconfig-common/dpkg/prerm
dbc_go interchange-cat-standard $@

/usr/sbin/interchangeconfig USE_STANDARD=

db_get interchange-cat-standard/install
Expand Down

0 comments on commit 0a55170

Please sign in to comment.