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

Emilien Klein e2jk-guest at alioth.debian.org
Mon Apr 29 21:04:06 UTC 2013


Author: e2jk-guest
Date: 2013-04-29 21:04:06 +0000 (Mon, 29 Apr 2013)
New Revision: 13445

Added:
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.config
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.docs
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.lintian-overrides
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.manpages
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.postinst
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.postrm
   trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.prerm
Removed:
   trunk/packages/gnuhealth/trunk/debian/config
   trunk/packages/gnuhealth/trunk/debian/docs
   trunk/packages/gnuhealth/trunk/debian/gnuhealth.lintian-overrides
   trunk/packages/gnuhealth/trunk/debian/manpages
   trunk/packages/gnuhealth/trunk/debian/postinst
   trunk/packages/gnuhealth/trunk/debian/postrm
   trunk/packages/gnuhealth/trunk/debian/prerm
Modified:
   trunk/packages/gnuhealth/trunk/debian/control
Log:
Rename the binary package gnuhealth to gnuhealth-server (see discussion on http://lists.alioth.debian.org/pipermail/debian-med-packaging/2013-April/019394.html)


Deleted: trunk/packages/gnuhealth/trunk/debian/config
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/config	2013-04-29 20:08:36 UTC (rev 13444)
+++ trunk/packages/gnuhealth/trunk/debian/config	2013-04-29 21:04:06 UTC (rev 13445)
@@ -1,14 +0,0 @@
-#!/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 20:08:36 UTC (rev 13444)
+++ trunk/packages/gnuhealth/trunk/debian/control	2013-04-29 21:04:06 UTC (rev 13445)
@@ -13,7 +13,7 @@
 Vcs-Browser: http://svn.debian.org/viewsvn/debian-med/trunk/packages/gnuhealth/trunk/
 Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/gnuhealth/trunk/
 
-Package: gnuhealth
+Package: gnuhealth-server
 Architecture: all
 Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends},
          debconf,

Deleted: trunk/packages/gnuhealth/trunk/debian/docs
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/docs	2013-04-29 20:08:36 UTC (rev 13444)
+++ trunk/packages/gnuhealth/trunk/debian/docs	2013-04-29 21:04:06 UTC (rev 13445)
@@ -1 +0,0 @@
-README

Copied: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.config (from rev 13439, trunk/packages/gnuhealth/trunk/debian/config)
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.config	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.config	2013-04-29 21:04:06 UTC (rev 13445)
@@ -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
+

Copied: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.docs (from rev 13350, trunk/packages/gnuhealth/trunk/debian/docs)
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.docs	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.docs	2013-04-29 21:04:06 UTC (rev 13445)
@@ -0,0 +1 @@
+README

Copied: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.lintian-overrides (from rev 13440, trunk/packages/gnuhealth/trunk/debian/gnuhealth.lintian-overrides)
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.lintian-overrides	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.lintian-overrides	2013-04-29 21:04:06 UTC (rev 13445)
@@ -0,0 +1,5 @@
+# debconf is used in postinst only to display instructions to users that chose
+# to use a non-standard database name, which they need to update manually
+# otherwise the package is rendered unusable
+gnuhealth binary: postinst-uses-db-input
+

Copied: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.manpages (from rev 13350, trunk/packages/gnuhealth/trunk/debian/manpages)
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.manpages	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.manpages	2013-04-29 21:04:06 UTC (rev 13445)
@@ -0,0 +1 @@
+health/man/gnuhealth.1

Copied: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.postinst (from rev 13442, trunk/packages/gnuhealth/trunk/debian/postinst)
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.postinst	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.postinst	2013-04-29 21:04:06 UTC (rev 13445)
@@ -0,0 +1,86 @@
+#!/bin/sh
+# postinst script for gnuhealth
+#
+# see: dh_installdeb(1)
+
+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/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>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+GNUHEALTH_USER="gnuhealth"
+GNUHEALTH_LOGDIR="/var/log/gnuhealth"
+
+case "$1" in
+    configure)
+		# Creating system user
+		adduser --no-create-home --quiet --system --group ${GNUHEALTH_USER}
+        
+		# Creating log directory
+		mkdir -p ${GNUHEALTH_LOGDIR}
+		chown ${GNUHEALTH_USER}:adm ${GNUHEALTH_LOGDIR}
+		chmod 0750 ${GNUHEALTH_LOGDIR}
+		
+        # TODO: needs to be reworked
+        ## Check if the gnuhealth database role already exists
+        #role=`psql -U postgres -c "\du" 2>/dev/null | grep gnuhealth | wc -l`
+        #if [ $role -eq 0 ]; then
+        #    echo "not here"
+        #    # Create the PostgreSQL database role
+        #else
+        #    # Check if the gnuhealth database exists
+        #    db=`psql -U postgres -l 2>/dev/null | grep gnuhealth | wc -l`
+        #    if [ $db -eq 1 ]; then
+        #        # Update the gnuhealth database
+        #        trytond --database=gnuhealth --update=all
+        #    else
+        #        # The user has probably set up it's own database, prompt her
+        #        # to manually upgrade its database
+        #        db_reset gnuhealth/manualupgrade
+        #        db_input high gnuhealth/manualupgrade || true
+        #        db_go
+        #    fi
+        #fi
+        #
+        ## Start the Tryton server
+        #if which invoke-rc.d >/dev/null 2>&1; then
+        #    invoke-rc.d tryton-server start
+        #else
+        #    /etc/init.d/tryton-server start
+        #fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.postrm (from rev 13442, trunk/packages/gnuhealth/trunk/debian/postrm)
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.postrm	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.postrm	2013-04-29 21:04:06 UTC (rev 13445)
@@ -0,0 +1,66 @@
+#!/bin/sh
+# postrm script for gnuhealth
+#
+# see: dh_installdeb(1)
+
+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'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+GNUHEALTH_USER="gnuhealth"
+GNUHEALTH_LOGDIR="/var/log/gnuhealth"
+
+case "$1" in
+    purge)
+		# Remove system user
+		if [ -x /usr/sbin/deluser ]; then
+			deluser --quiet --system ${GNUHEALTH_USER}
+		fi
+
+		# Remove log directory
+		rmdir --ignore-fail-on-non-empty ${GNUHEALTH_LOGDIR} > /dev/null 2>&1 || true
+		;;
+	
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+        # TODO: needs to be reworked
+        ## Start the Tryton server
+        #if which invoke-rc.d >/dev/null 2>&1; then
+        #    invoke-rc.d tryton-server start
+        #else
+        #    /etc/init.d/tryton-server start
+        #fi
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Copied: trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.prerm (from rev 13442, trunk/packages/gnuhealth/trunk/debian/prerm)
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.prerm	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth-server.prerm	2013-04-29 21:04:06 UTC (rev 13445)
@@ -0,0 +1,54 @@
+#!/bin/sh
+# prerm script for gnuhealth
+#
+# see: dh_installdeb(1)
+
+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>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+        # TODO: needs to be reworked
+        ## Stop the Tryton server
+        #if which invoke-rc.d >/dev/null 2>&1; then
+        #    invoke-rc.d tryton-server stop
+        #else
+        #    /etc/init.d/tryton-server stop
+        #fi
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Deleted: trunk/packages/gnuhealth/trunk/debian/gnuhealth.lintian-overrides
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/gnuhealth.lintian-overrides	2013-04-29 20:08:36 UTC (rev 13444)
+++ trunk/packages/gnuhealth/trunk/debian/gnuhealth.lintian-overrides	2013-04-29 21:04:06 UTC (rev 13445)
@@ -1,5 +0,0 @@
-# debconf is used in postinst only to display instructions to users that chose
-# to use a non-standard database name, which they need to update manually
-# otherwise the package is rendered unusable
-gnuhealth binary: postinst-uses-db-input
-

Deleted: trunk/packages/gnuhealth/trunk/debian/manpages
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/manpages	2013-04-29 20:08:36 UTC (rev 13444)
+++ trunk/packages/gnuhealth/trunk/debian/manpages	2013-04-29 21:04:06 UTC (rev 13445)
@@ -1 +0,0 @@
-health/man/*.1

Deleted: trunk/packages/gnuhealth/trunk/debian/postinst
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/postinst	2013-04-29 20:08:36 UTC (rev 13444)
+++ trunk/packages/gnuhealth/trunk/debian/postinst	2013-04-29 21:04:06 UTC (rev 13445)
@@ -1,86 +0,0 @@
-#!/bin/sh
-# postinst script for gnuhealth
-#
-# see: dh_installdeb(1)
-
-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/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>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <postinst> `abort-remove'
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-GNUHEALTH_USER="gnuhealth"
-GNUHEALTH_LOGDIR="/var/log/gnuhealth"
-
-case "$1" in
-    configure)
-		# Creating system user
-		adduser --no-create-home --quiet --system --group ${GNUHEALTH_USER}
-        
-		# Creating log directory
-		mkdir -p ${GNUHEALTH_LOGDIR}
-		chown ${GNUHEALTH_USER}:adm ${GNUHEALTH_LOGDIR}
-		chmod 0750 ${GNUHEALTH_LOGDIR}
-		
-        # TODO: needs to be reworked
-        ## Check if the gnuhealth database role already exists
-        #role=`psql -U postgres -c "\du" 2>/dev/null | grep gnuhealth | wc -l`
-        #if [ $role -eq 0 ]; then
-        #    echo "not here"
-        #    # Create the PostgreSQL database role
-        #else
-        #    # Check if the gnuhealth database exists
-        #    db=`psql -U postgres -l 2>/dev/null | grep gnuhealth | wc -l`
-        #    if [ $db -eq 1 ]; then
-        #        # Update the gnuhealth database
-        #        trytond --database=gnuhealth --update=all
-        #    else
-        #        # The user has probably set up it's own database, prompt her
-        #        # to manually upgrade its database
-        #        db_reset gnuhealth/manualupgrade
-        #        db_input high gnuhealth/manualupgrade || true
-        #        db_go
-        #    fi
-        #fi
-        #
-        ## Start the Tryton server
-        #if which invoke-rc.d >/dev/null 2>&1; then
-        #    invoke-rc.d tryton-server start
-        #else
-        #    /etc/init.d/tryton-server start
-        #fi
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/packages/gnuhealth/trunk/debian/postrm
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/postrm	2013-04-29 20:08:36 UTC (rev 13444)
+++ trunk/packages/gnuhealth/trunk/debian/postrm	2013-04-29 21:04:06 UTC (rev 13445)
@@ -1,66 +0,0 @@
-#!/bin/sh
-# postrm script for gnuhealth
-#
-# see: dh_installdeb(1)
-
-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'
-#        * <old-postrm> `upgrade' <new-version>
-#        * <new-postrm> `failed-upgrade' <old-version>
-#        * <new-postrm> `abort-install'
-#        * <new-postrm> `abort-install' <old-version>
-#        * <new-postrm> `abort-upgrade' <old-version>
-#        * <disappearer's-postrm> `disappear' <overwriter>
-#          <overwriter-version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-GNUHEALTH_USER="gnuhealth"
-GNUHEALTH_LOGDIR="/var/log/gnuhealth"
-
-case "$1" in
-    purge)
-		# Remove system user
-		if [ -x /usr/sbin/deluser ]; then
-			deluser --quiet --system ${GNUHEALTH_USER}
-		fi
-
-		# Remove log directory
-		rmdir --ignore-fail-on-non-empty ${GNUHEALTH_LOGDIR} > /dev/null 2>&1 || true
-		;;
-	
-    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
-        # TODO: needs to be reworked
-        ## Start the Tryton server
-        #if which invoke-rc.d >/dev/null 2>&1; then
-        #    invoke-rc.d tryton-server start
-        #else
-        #    /etc/init.d/tryton-server start
-        #fi
-    ;;
-
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0

Deleted: trunk/packages/gnuhealth/trunk/debian/prerm
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/prerm	2013-04-29 20:08:36 UTC (rev 13444)
+++ trunk/packages/gnuhealth/trunk/debian/prerm	2013-04-29 21:04:06 UTC (rev 13445)
@@ -1,54 +0,0 @@
-#!/bin/sh
-# prerm script for gnuhealth
-#
-# see: dh_installdeb(1)
-
-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>
-#        * <new-prerm> `failed-upgrade' <old-version>
-#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-#        * <deconfigured's-prerm> `deconfigure' `in-favour'
-#          <package-being-installed> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    remove|upgrade|deconfigure)
-        # TODO: needs to be reworked
-        ## Stop the Tryton server
-        #if which invoke-rc.d >/dev/null 2>&1; then
-        #    invoke-rc.d tryton-server stop
-        #else
-        #    /etc/init.d/tryton-server stop
-        #fi
-    ;;
-
-    failed-upgrade)
-    ;;
-
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0




More information about the debian-med-commit mailing list