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

Emilien Klein e2jk-guest at alioth.debian.org
Thu Nov 29 21:36:58 UTC 2012


Author: e2jk-guest
Date: 2012-11-29 21:36:57 +0000 (Thu, 29 Nov 2012)
New Revision: 12576

Added:
   trunk/packages/gnuhealth/trunk/debian/README.Debian
Modified:
   trunk/packages/gnuhealth/trunk/debian/TODO.Debian
   trunk/packages/gnuhealth/trunk/debian/changelog
   trunk/packages/gnuhealth/trunk/debian/compat
   trunk/packages/gnuhealth/trunk/debian/control
   trunk/packages/gnuhealth/trunk/debian/copyright
   trunk/packages/gnuhealth/trunk/debian/rules
Log:
Added dependencies on Tryton 2.4.X. Added steps to perform after installation to set GNU Health up.


Added: trunk/packages/gnuhealth/trunk/debian/README.Debian
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/README.Debian	                        (rev 0)
+++ trunk/packages/gnuhealth/trunk/debian/README.Debian	2012-11-29 21:36:57 UTC (rev 12576)
@@ -0,0 +1,144 @@
+GNU Health for Debian
+---------------------
+
+Setting up the Operating System
+===============================
+
+Creating the Operating System User
+----------------------------------
+
+It is highly recommended that you use a dedicated user for the GNU Health
+installation:
+
+  $ sudo adduser gnuhealth
+
+
+Create a database user
+----------------------
+
+Execute the following command to create your database administrator
+  $ su - postgres -c "createuser --createdb --no-createrole --no-superuser \
+    --pwprompt gnuhealth"
+
+Note: If you need to change PostgreSQL user's default password, run:
+  $ sudo passwd postgres
+
+
+Configure the Tryton server
+---------------------------
+
+Uncomment and adapt the following lines:
+  $ sudo nano /etc/trytond.conf
+db_type = postgresql
+db_user = <user created in previous step>
+db_password = <password set in previous step>
+
+Restart the Tryton server:
+  $ sudo /etc/init.d/tryton-server restart
+
+
+Configure PostgreSQL
+--------------------
+
+By default, Tryton might have issues connecting to the PostgreSQL database. If
+that's the case, change the values "peer" and "md5" to "trust":
+  $ sudo nano /etc/postgresql/9.1/main/pg_hba.conf
+
+# Database administrative login by Unix domain socket
+local   all             postgres                                peer
+
+# IPv4 local connections:
+host    all             all             127.0.0.1/32            md5
+
+Restart the PostgreSQL server:
+  $ sudo /etc/init.d/postgresql* restart
+
+
+Creating the GNU Health database
+================================
+
+Note: Instructions including screenshots are available on the project's
+wiki page:
+  http://en.wikibooks.org/wiki/GNU_Health/Installation
+
+The first step is to create a database that will hold all the information for
+your GNU Health system.
+
+All GNU Health information is stored in a PostgreSQL database, and processed by
+the Tryton kernel. No action is needed at the operating system level to create
+or manage the database, as all can be done via the Tryton / GNU Health frontend.
+
+To create a Database, open your Tryton client. You will be presented with the 
+Login popup window.
+
+Click on Manage profiles, then click on Add. Give your new connection a name
+on the left side, and fill the fields on the right side. If you're doing the
+installation on the same machine, choose localhost as the hostname.
+
+Click on the Create button. The default Tryton Server Password is admin (you
+can change it later). Give your database a name, and enter a new admin password
+twice. Note: this will be the password of the super-user for your new database,
+so use a strong password when dealing with production servers.
+
+After the database is created, click OK. You're now ready to log in!
+
+
+Logging into the application
+----------------------------
+
+Now that you're back at the login screen, you'll notice that the selected
+Profile is the one you've just created. Fill in the login form:
+
+    User name: The one you used previously usually, admin
+    Password: the one entered twice in the previous section
+
+Installing the default modules
+------------------------------
+
+From this point on, you will use the client for mostly every process. Start
+with the installation of the basic functionality:
+
+After you've created the database, the system will ask you to create some new
+users. You can skip this step for now.
+
+You are then presented with a list of modules that will provide the
+functionality you desire. If you don't see the Modules window, navigate to it
+on the right side: Administration > Modules > Modules.
+
+Select the health_profile module, and click on Mark for installation
+
+Click on the Action icon (a blue rotated square) and select Perform Pending
+Installation/Upgrade
+
+Tryton will automatically select all the dependent modules required for the
+installation
+
+Click on Start Upgrade. This process will take a while, depending on the
+computer where GNU Health is being installed on. Once it's done, a success
+message appears.
+
+Congratulations, you've successfully installed GNU Health!
+
+
+Installing Extra Modules
+------------------------
+
+GNU Health is constantly evolving. The default modules are just a subset to
+provide the basic functionality. Depending on your Health center, most probably
+you will want to install some of the other modules that come with GNU Health.
+Some of the modules that are ready to install are:
+
+* health_history: Generates the patient clinical history reports.
+* health_reporting: Statistics on different indicators (diseases, doctor
+  assignments, .. ). It also creates different charts
+* health_services: Registers all the services done to a patient, in an
+  ambulatory or inpatient scenario. It will allow to generate the invoices on
+  selected services.
+
+There are many more. Just check on the module list and select those that fit
+best your health center.
+
+Congratulations! You have completed the initial installation of GNU Health.
+
+
+ -- Emilien Klein <emilien+debian at klein.st>  Tue, 27 Nov 2012 23:37:01 +0100

Modified: trunk/packages/gnuhealth/trunk/debian/TODO.Debian
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/TODO.Debian	2012-11-26 19:54:56 UTC (rev 12575)
+++ trunk/packages/gnuhealth/trunk/debian/TODO.Debian	2012-11-29 21:36:57 UTC (rev 12576)
@@ -1,17 +1,12 @@
-Apparently current version of GNU_Health require tryton 2.4 (exactly)
-while at the moment (2012-10-28) we have 2.2 in testing and 2.6 in
-experimental.
+The current version of GNU Health requires Tryton 2.4 (exactly) while at the
+moment (2012-11-29) Tryton 2.2 is in testing and 2.6 in experimental.
 
 ----
 
-Write README.Debian with step-by-step instructions how to
-install for complete tryton newbies.
+Install the Demo database?
 
-----
-
-Install Demo Database??
-
     https://en.wikibooks.org/wiki/GNU_Health/The_Demo_database
 
     Files: demo/*
     Recommends: tryton-proteus
+

Modified: trunk/packages/gnuhealth/trunk/debian/changelog
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/changelog	2012-11-26 19:54:56 UTC (rev 12575)
+++ trunk/packages/gnuhealth/trunk/debian/changelog	2012-11-29 21:36:57 UTC (rev 12576)
@@ -1,5 +1,5 @@
 gnuhealth (1.6.4-1) unstable; urgency=low
 
-  * Initial release (Closes: #??????)
+  * Initial release (Closes: #694749)
 
- -- Andreas Tille <tille at debian.org>  Thu, 07 Apr 2011 16:53:45 +0200
+ -- Emilien Klein <emilien+debian at klein.st>  Thu, 29 Nov 2012 21:34:23 +0100

Modified: trunk/packages/gnuhealth/trunk/debian/compat
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/compat	2012-11-26 19:54:56 UTC (rev 12575)
+++ trunk/packages/gnuhealth/trunk/debian/compat	2012-11-29 21:36:57 UTC (rev 12576)
@@ -1 +1 @@
-9
+8

Modified: trunk/packages/gnuhealth/trunk/debian/control
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/control	2012-11-26 19:54:56 UTC (rev 12575)
+++ trunk/packages/gnuhealth/trunk/debian/control	2012-11-29 21:36:57 UTC (rev 12576)
@@ -1,31 +1,43 @@
 Source: gnuhealth
 Section: science
-Priority: optional
+Priority: extra
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
-DM-Upload-Allowed: yes
-Uploaders: Andreas Tille <tille at debian.org>
-Build-Depends: debhelper (>= 9), python
-Standards-Version: 3.9.4
+Uploaders: Andreas Tille <tille at debian.org>, Emilien Klein <emilien+debian at klein.st>
+Build-Depends: debhelper (>= 8.0.0),
+               autotools-dev,
+               python | python-all | python-dev | python-all-dev,
+               tryton-server (>= 2.4~), tryton-server (<< 2.5~)
+Standards-Version: 3.9.3
 Homepage: http://health.gnu.org/
 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/
-X-Python-Version: >= 2.6
 
 Package: gnuhealth
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}
-        ,python-dateutil
-        ,python-ldap
-        ,python-lxml
-        ,python-polib
-        ,python-relatorio
-        ,python-tz
-        ,python-vobject
-Suggests: tryton-server
-         ,python-psycopg2
-Description: centralized Electronic Medical Record and Hospital Information System
+Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends},
+         python-dateutil,
+         python-ldap,
+         python-lxml,
+         python-polib,
+         python-relatorio,
+         python-tz,
+         python-vobject,
+         python-psycopg2,
+         python-webdav,
+         tryton-client (>= 2.4~), tryton-client (<< 2.5~),
+         tryton-server (>= 2.4~), tryton-server (<< 2.5~),
+         tryton-modules-account (>= 2.4~), tryton-modules-account (<< 2.5~),
+         tryton-modules-account-invoice (>= 2.4~), tryton-modules-account-invoice (<< 2.5~),
+         tryton-modules-account-product (>= 2.4~), tryton-modules-account-product (<< 2.5~),
+         tryton-modules-calendar (>= 2.4~), tryton-modules-calendar (<< 2.5~),
+         tryton-modules-product (>= 2.4~), tryton-modules-product (<< 2.5~),
+         tryton-modules-country (>= 2.4~), tryton-modules-country (<< 2.5~),
+         tryton-modules-currency (>= 2.4~), tryton-modules-currency (<< 2.5~),
+         tryton-modules-party (>= 2.4~), tryton-modules-party (<< 2.5~),
+         tryton-modules-company (>= 2.4~), tryton-modules-company (<< 2.5~)
+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 openERP,
+ Medical Record (EMR) and Hospital Information System (HIS) for Tryton,
  so doctors and institutions all over the world, independently of their
  economic status, will benefit from a centralized, high quality, secure
  and scalable system.
@@ -37,7 +49,7 @@
   * Diseases and Medical procedures standards (ICD-10 / ICD-10-PCS)
   * Prescription writing
   * Billing
-  * Patient Genetic and Hereditary risks : Over 4200 genes related to
+  * Patient Genetic and Hereditary risks: over 4200 genes related to
     diseases (NCBI / Genecards)
   * Epidemiological and other statistical reports
   * 100% paperless patient examination and history taking
@@ -47,3 +59,6 @@
   * Medicine / Drugs information (vademécum)
   * Medical stock and supply chain management
   * Hospital Financial Administration
+  * GNU Health allows one to attach documents (X-rays, Biopsy results, ...)
+    to the Patient chart.
+  * Designed with industry standards in mind

Modified: trunk/packages/gnuhealth/trunk/debian/copyright
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/copyright	2012-11-26 19:54:56 UTC (rev 12575)
+++ trunk/packages/gnuhealth/trunk/debian/copyright	2012-11-29 21:36:57 UTC (rev 12576)
@@ -1,12 +1,11 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: GNUHealth
-Upstream-Contact: Luis Falcon <lfalcon at thymbra.com>
+Upstream-Name: GNU Health
+Upstream-Contact: Luis Falcon <lfalcon at gnusolidario.org>
 Source: http://ftp.gnu.org/gnu/health/
 
 Files: *
 Copyright: 2008-2012 Luis Falcon <lfalcon at gnusolidario.org>
-           2011-2012 Sebastián Marró <smarro at thymbra.com>
-           2008-2012 Sebastian Marro <smarro at gnusolidario.org>
+           2008-2012 Sebastian Marró <smarro at gnusolidario.org>
 License: GPL-3+
  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
@@ -24,6 +23,7 @@
  License version 3 can be found in ‘/usr/share/common-licenses/GPL-3’.
 
 Files: debian/*
-Copyright: 2011 Andreas Tille <tille at debian.org>
+Copyright: 2011-2012 Andreas Tille <tille at debian.org>
+           2012 Emilien Klein <emilien+debian at klein.st>
 License: same-as-upstream
- Same as Medical itelf (see above).
+ Same as GNU Health itself (see above).

Modified: trunk/packages/gnuhealth/trunk/debian/rules
===================================================================
--- trunk/packages/gnuhealth/trunk/debian/rules	2012-11-26 19:54:56 UTC (rev 12575)
+++ trunk/packages/gnuhealth/trunk/debian/rules	2012-11-29 21:36:57 UTC (rev 12576)
@@ -4,15 +4,27 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
 %:
 	dh $@ --with python2
 
+override_dh_auto_test:
+	# Cannot run the test suites at build time since they depend on Tryton
+	# being configured, with for example a user for the database, etc.
+
 override_dh_auto_build:
 	@
 
 override_dh_auto_install:
 	dh_auto_install
+	# Remove the qr code module (dependency currently not satisfied in Debian)
+	find debian -name "health_qrcodes" -type d -prune -execdir rm -r \{\} \;
+	# Mark all the Python scripts executable
 	find debian -name "*.py"  -type f -executable -exec chmod a-x \{\} \;
+	# Remove all the tests folders from the binary package
+	find debian -name "tests" -type d -prune -execdir rm -r \{\} \;
 
 override_dh_link:
 	## workaround for "extra-license-file":




More information about the debian-med-commit mailing list