[med-svn] r18875 - in trunk/packages: . orthanc-postgresql orthanc-postgresql/trunk orthanc-postgresql/trunk/debian orthanc-postgresql/trunk/debian/configuration orthanc-postgresql/trunk/debian/patches orthanc-postgresql/trunk/debian/source orthanc-postgresql/trunk/debian/upstream

Sebastien Jodogne jodogne-guest at moszumanska.debian.org
Fri Feb 27 21:03:48 UTC 2015


Author: jodogne-guest
Date: 2015-02-27 21:03:47 +0000 (Fri, 27 Feb 2015)
New Revision: 18875

Added:
   trunk/packages/orthanc-postgresql/
   trunk/packages/orthanc-postgresql/trunk/
   trunk/packages/orthanc-postgresql/trunk/debian/
   trunk/packages/orthanc-postgresql/trunk/debian/README.Debian
   trunk/packages/orthanc-postgresql/trunk/debian/changelog
   trunk/packages/orthanc-postgresql/trunk/debian/compat
   trunk/packages/orthanc-postgresql/trunk/debian/configuration/
   trunk/packages/orthanc-postgresql/trunk/debian/configuration/orthanc-postgresql.json
   trunk/packages/orthanc-postgresql/trunk/debian/control
   trunk/packages/orthanc-postgresql/trunk/debian/copyright
   trunk/packages/orthanc-postgresql/trunk/debian/install
   trunk/packages/orthanc-postgresql/trunk/debian/patches/
   trunk/packages/orthanc-postgresql/trunk/debian/patches/series
   trunk/packages/orthanc-postgresql/trunk/debian/patches/shlibs
   trunk/packages/orthanc-postgresql/trunk/debian/postinst
   trunk/packages/orthanc-postgresql/trunk/debian/postrm
   trunk/packages/orthanc-postgresql/trunk/debian/rules
   trunk/packages/orthanc-postgresql/trunk/debian/source/
   trunk/packages/orthanc-postgresql/trunk/debian/source/format
   trunk/packages/orthanc-postgresql/trunk/debian/upstream/
   trunk/packages/orthanc-postgresql/trunk/debian/upstream/metadata
   trunk/packages/orthanc-postgresql/trunk/debian/watch
Log:
initial commit of the orthanc-postgresql package

Added: trunk/packages/orthanc-postgresql/trunk/debian/README.Debian
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/README.Debian	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/README.Debian	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,15 @@
+Orthanc PostgreSQL is a set of 2 plugins to Orthanc, a lightweight,
+RESTful Vendor Neutral Archive for medical imaging. These plugins
+override the default SQLite engine of Orthanc with a PostgreSQL
+back-end. They bring scalability to Orthanc, making it
+enterprise-ready.
+    
+Homepage: https://code.google.com/p/orthanc-postgresql/
+
+To enable the plugin, you must specify the parameters of your
+PostgreSQL database by modifying the configuration file
+"/etc/orthanc/orthanc.json", following the instructions in
+"/etc/orthanc/orthanc-postgresql.json". Then, restart the Orthanc
+service:
+
+# sudo /etc/init.d/orthanc restart

Added: trunk/packages/orthanc-postgresql/trunk/debian/changelog
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/changelog	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/changelog	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,5 @@
+orthanc-postgresql (1.0-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #779327)
+
+ -- Sebastien Jodogne <s.jodogne at gmail.com>  Fri, 27 Feb 2015 21:29:38 +0100

Added: trunk/packages/orthanc-postgresql/trunk/debian/compat
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/compat	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/compat	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1 @@
+9

Added: trunk/packages/orthanc-postgresql/trunk/debian/configuration/orthanc-postgresql.json
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/configuration/orthanc-postgresql.json	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/configuration/orthanc-postgresql.json	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,30 @@
+{
+    /**
+     * The following options must be added to the
+     * "/etc/orthanc/orthanc.json" configuration file to control the
+     * configuration of the Orthanc PostgreSQL plugins.
+     **/
+
+    "PostgreSQL" : {
+
+	// Enable the use of PostgreSQL to store the Orthanc index
+	"EnableIndex" : true,
+
+	// Enable the use of PostgreSQL to store the DICOM files
+	"EnableStorage" : true,
+
+	// Option 1: Specify explicit authentication parameters
+	"Host" : "localhost",
+	"Port" : 5432,
+	"Database" : "orthanc",
+	"Username" : "orthanc",
+	"Password" : "orthanc",
+
+	// Option 2: Authenticate using PostgreSQL connection URI
+	"ConnectionUri" : "postgresql://username:password@localhost:5432/database",
+
+	// Optional: Disable the locking of the PostgreSQL database
+	"Lock" : false
+
+    }
+}

Added: trunk/packages/orthanc-postgresql/trunk/debian/control
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/control	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/control	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,27 @@
+Source: orthanc-postgresql
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Sebastien Jodogne <s.jodogne at gmail.com>,
+           Andreas Tille <tille at debian.org>
+Section: science
+Priority: optional
+Standards-Version: 3.9.6
+Build-Depends: cmake (>= 2.8),
+	       debhelper (>= 9),
+               liborthancclient-dev (>= 0.8.6),
+	       libboost-all-dev (>= 1.54.0-5),
+	       libpq-dev,
+               libgtest-dev (>= 1.6.0),
+               libjsoncpp-dev
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc-postgresql/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/orthanc-postgresql/trunk/
+Homepage: https://code.google.com/p/orthanc-postgresql/
+
+Package: orthanc-postgresql
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, orthanc (>= 0.8.6)
+Description: Plugins to use PostgreSQL as a database back-end to Orthanc
+ Orthanc PostgreSQL is a set of 2 plugins to Orthanc, a lightweight,
+ RESTful Vendor Neutral Archive for medical imaging. These plugins
+ override the default SQLite engine of Orthanc with a PostgreSQL
+ back-end. They bring scalability to Orthanc, making it
+ enterprise-ready.

Added: trunk/packages/orthanc-postgresql/trunk/debian/copyright
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/copyright	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/copyright	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,25 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: OrthancWebViewer
+Upstream-Contact: Sebastien Jodogne <s.jodogne at gmail.com>
+Source: https://code.google.com/p/orthanc-webviewer/
+
+Files: *
+Copyright: 2012-2015 Sebastien Jodogne <s.jodogne at gmail.com>, University Hospital of Liege, Belgium
+License: AGPL-3
+
+
+
+License: AGPL-3
+ This program is free software: you can redistribute it and/or
+ modify it under the terms of the GNU Affero General Public License
+ as published by the Free Software Foundation, either version 3 of
+ the License, or (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Affero General Public License for more details.
+ . 
+ You should have received a copy of the GNU Affero General Public License
+ along with this package; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Added: trunk/packages/orthanc-postgresql/trunk/debian/install
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/install	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/install	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1 @@
+debian/configuration/orthanc-postgresql.json etc/orthanc

Added: trunk/packages/orthanc-postgresql/trunk/debian/patches/series
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/patches/series	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/patches/series	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,2 @@
+shlibs
+

Added: trunk/packages/orthanc-postgresql/trunk/debian/patches/shlibs
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/patches/shlibs	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/patches/shlibs	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,20 @@
+Description: Fix the soname of the shared libraries
+Author: Sebastien Jodogne <s.jodogne at gmail.com>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: OrthancPostgreSQL-1.0/CMakeLists.txt
+===================================================================
+--- OrthancPostgreSQL-1.0.orig/CMakeLists.txt
++++ OrthancPostgreSQL-1.0/CMakeLists.txt
+@@ -134,3 +134,11 @@ add_executable(UnitTests
+   ${CMAKE_SOURCE_DIR}/UnitTestsSources/PostgreSQLTests.cpp
+   ${CMAKE_SOURCE_DIR}/UnitTestsSources/PostgreSQLWrapperTests.cpp
+   )
++
++set(VERSION 1.0)
++set_target_properties(OrthancPostgreSQLStorage PROPERTIES
++  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLStorage.so.${VERSION}"
++  NO_SONAME ON)
++set_target_properties(OrthancPostgreSQLIndex PROPERTIES
++  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLIndex.so.${VERSION}"
++  NO_SONAME ON)

Added: trunk/packages/orthanc-postgresql/trunk/debian/postinst
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/postinst	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/postinst	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+case $1 in
+    configure)
+	# Restart the Orthanc service
+	# https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
+	if which invoke-rc.d >/dev/null 2>&1; then
+     	    invoke-rc.d orthanc restart
+     	else
+     	    /etc/init.d/orthanc restart
+     	fi
+	;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+esac
+
+#DEBHELPER#


Property changes on: trunk/packages/orthanc-postgresql/trunk/debian/postinst
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/packages/orthanc-postgresql/trunk/debian/postrm
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/postrm	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/postrm	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+case $1 in
+    purge|remove|upgrade)
+	# Restart the Orthanc service
+	# https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
+	if which invoke-rc.d >/dev/null 2>&1; then
+     	    invoke-rc.d orthanc restart
+     	else
+     	    /etc/init.d/orthanc restart
+     	fi
+	;;
+
+    failed-upgrade|abort-install|abort-upgrade|disappear)
+	;;
+esac
+
+#DEBHELPER#


Property changes on: trunk/packages/orthanc-postgresql/trunk/debian/postrm
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/packages/orthanc-postgresql/trunk/debian/rules
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/rules	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/rules	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+
+export JAVASCRIPT_LIBS := Build/javascript-libs
+export DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+export UPSTREAM_VERSION := $(shell echo "$(DEBIAN_VERSION)" | cut -d '-' -f 1)
+export TARGET_INDEX := libOrthancPostgreSQLIndex.so
+export TARGET_STORAGE := libOrthancPostgreSQLStorage.so
+
+%:
+	dh $@ --parallel --builddirectory=Build
+
+CMAKE_EXTRA_FLAGS += \
+	-DCMAKE_SKIP_RPATH:BOOL=ON \
+	-DSTATIC_BUILD:BOOL=OFF \
+        -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE:BOOL=ON \
+	-DCMAKE_BUILD_TYPE=""   # The build type must be left empty, see #711515
+
+override_dh_auto_configure:
+	dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)
+
+override_dh_auto_install:
+	cp Build/${TARGET_INDEX} Build/${TARGET_INDEX}.${UPSTREAM_VERSION}
+	cp Build/${TARGET_STORAGE} Build/${TARGET_STORAGE}.${UPSTREAM_VERSION}
+
+	dh_install Build/${TARGET_INDEX}.${UPSTREAM_VERSION} usr/lib
+	dh_install Build/${TARGET_STORAGE}.${UPSTREAM_VERSION} usr/lib
+
+override_dh_link:
+	dh_link usr/lib/${TARGET_INDEX}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET_INDEX}
+	dh_link usr/lib/${TARGET_STORAGE}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET_STORAGE}
+
+override_dh_installchangelogs:
+	dh_installchangelogs -k NEWS
+
+get-orig-source:
+	uscan --verbose --force-download --repack --compression xz


Property changes on: trunk/packages/orthanc-postgresql/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/packages/orthanc-postgresql/trunk/debian/source/format
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/source/format	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/source/format	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: trunk/packages/orthanc-postgresql/trunk/debian/upstream/metadata
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/upstream/metadata	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/upstream/metadata	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,6 @@
+Reference:
+  Author: S. Jodogne and C. Bernard and M. Devillers and E. Lenaerts and P. Coucke
+  Title: "Orthanc -- A Lightweight, RESTful DICOM Server for Healthcare and Medical Research"
+  Type: book
+  Booktitle: Proc. of the International Symposium on Biomedical Imaging
+  Year: 2013

Added: trunk/packages/orthanc-postgresql/trunk/debian/watch
===================================================================
--- trunk/packages/orthanc-postgresql/trunk/debian/watch	                        (rev 0)
+++ trunk/packages/orthanc-postgresql/trunk/debian/watch	2015-02-27 21:03:47 UTC (rev 18875)
@@ -0,0 +1,2 @@
+version=3
+https://github.com/jodogne/Orthanc/releases .*/download/[^/]+/OrthancPostgreSQL-(\d\S*)\.tar\.gz




More information about the debian-med-commit mailing list