[med-svn] r13439 - trunk/packages/gnuhealth/trunk/debian

Emilien Klein e2jk-guest at alioth.debian.org
Mon Apr 29 18:58:42 UTC 2013


Author: e2jk-guest
Date: 2013-04-29 18:58:42 +0000 (Mon, 29 Apr 2013)
New Revision: 13439

Added:
   trunk/packages/gnuhealth/trunk/debian/config
Modified:
   trunk/packages/gnuhealth/trunk/debian/control
   trunk/packages/gnuhealth/trunk/debian/postinst
   trunk/packages/gnuhealth/trunk/debian/postrm
   trunk/packages/gnuhealth/trunk/debian/prerm
Log:
Start using dbconfig-common to handle the database aspects


Added: trunk/packages/gnuhealth/trunk/debian/config
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/config	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/config	2013-04-29 18:58:42 UTC (rev 13439)
@@ -0,0 +1,14 @@
+#!/bin/sh
+# config maintainer script for gnuhealth
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# source dbconfig-common shell library, and call the hook function
+if [ -f /usr/share/dbconfig-common/dpkg/config.pgsql ]; then
+    . /usr/share/dbconfig-common/dpkg/config.pgsql
+    dbc_go gnuhealth $@
+fi
+

Modified: trunk/packages/gnuhealth/trunk/debian/control
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/control	2013-04-29 17:53:33 UTC (rev 13438)
+++ trunk/packages/gnuhealth/trunk/debian/control	2013-04-29 18:58:42 UTC (rev 13439)
@@ -17,6 +17,7 @@
 Architecture: all
 Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends},
          debconf,
+         dbconfig-common,
          python-dateutil,
          python-ldap,
          python-lxml,
@@ -38,6 +39,7 @@
          tryton-modules-party (>= 2.6~), tryton-modules-party (<< 2.7~),
          tryton-modules-company (>= 2.6~), tryton-modules-company (<< 2.7~),
          tryton-modules-stock-lot (>= 2.6~), tryton-modules-stock-lot (<< 2.7~)
+Recommends: postgresql-client
 Description: Electronic Medical Record and Hospital Information System
  GNU Health is a multi-user, highly scalable, centralized Electronic
  Medical Record (EMR) and Hospital Information System (HIS) for Tryton,

Modified: trunk/packages/gnuhealth/trunk/debian/postinst
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/postinst	2013-04-29 17:53:33 UTC (rev 13438)
+++ trunk/packages/gnuhealth/trunk/debian/postinst	2013-04-29 18:58:42 UTC (rev 13439)
@@ -8,6 +8,12 @@
 # Source debconf library.
 . /usr/share/debconf/confmodule
 
+# source dbconfig-common shell library, and call the hook function
+if [ -f /usr/share/dbconfig-common/dpkg/postinst.pgsql ]; then
+    . /usr/share/dbconfig-common/dpkg/postinst.pgsql
+    dbc_go gnuhealth $@
+fi
+
 # summary of how this script can be called:
 #        * <postinst> `configure' <most-recently-configured-version>
 #        * <old-postinst> `abort-upgrade' <new version>

Modified: trunk/packages/gnuhealth/trunk/debian/postrm
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/postrm	2013-04-29 17:53:33 UTC (rev 13438)
+++ trunk/packages/gnuhealth/trunk/debian/postrm	2013-04-29 18:58:42 UTC (rev 13439)
@@ -5,6 +5,15 @@
 
 set -e
 
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# source dbconfig-common shell library, and call the hook function
+if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then
+    . /usr/share/dbconfig-common/dpkg/postrm.pgsql
+    dbc_go gnuhealth $@
+fi
+
 # summary of how this script can be called:
 #        * <postrm> `remove'
 #        * <postrm> `purge'

Modified: trunk/packages/gnuhealth/trunk/debian/prerm
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/prerm	2013-04-29 17:53:33 UTC (rev 13438)
+++ trunk/packages/gnuhealth/trunk/debian/prerm	2013-04-29 18:58:42 UTC (rev 13439)
@@ -5,6 +5,15 @@
 
 set -e
 
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# source dbconfig-common shell library, and call the hook function
+if [ -f /usr/share/dbconfig-common/dpkg/prerm.pgsql ]; then
+    . /usr/share/dbconfig-common/dpkg/prerm.pgsql
+    dbc_go gnuhealth $@
+fi
+
 # summary of how this script can be called:
 #        * <prerm> `remove'
 #        * <old-prerm> `upgrade' <new-version>




More information about the debian-med-commit mailing list