Author: jodogne-guest Date: 2015-08-03 10:01:21 +0000 (Mon, 03 Aug 2015) New Revision: 19821
Added: trunk/packages/orthanc-dicomweb/trunk/debian/README.Debian trunk/packages/orthanc-dicomweb/trunk/debian/changelog trunk/packages/orthanc-dicomweb/trunk/debian/configuration/ trunk/packages/orthanc-dicomweb/trunk/debian/configuration/dicomweb.json trunk/packages/orthanc-dicomweb/trunk/debian/control trunk/packages/orthanc-dicomweb/trunk/debian/copyright trunk/packages/orthanc-dicomweb/trunk/debian/install trunk/packages/orthanc-dicomweb/trunk/debian/patches/ trunk/packages/orthanc-dicomweb/trunk/debian/patches/cmake trunk/packages/orthanc-dicomweb/trunk/debian/patches/series trunk/packages/orthanc-dicomweb/trunk/debian/postinst trunk/packages/orthanc-dicomweb/trunk/debian/postrm trunk/packages/orthanc-dicomweb/trunk/debian/rules trunk/packages/orthanc-dicomweb/trunk/debian/source/ trunk/packages/orthanc-dicomweb/trunk/debian/source/format trunk/packages/orthanc-dicomweb/trunk/debian/upstream/ trunk/packages/orthanc-dicomweb/trunk/debian/upstream/metadata Log: initial commit of orthanc-dicomweb Added: trunk/packages/orthanc-dicomweb/trunk/debian/README.Debian =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/README.Debian (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/README.Debian 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,8 @@ +Orthanc DICOMweb is a plugin to Orthanc, the lightweight, RESTful Vendor +Neutral Archive for medical imaging. It extends the Orthanc core with +support of the WADO and DICOMweb (QIDO-RS, STOW-RS, WADO-RS) standards. + +Homepage: http://www.orthanc-server.com/static.php?page=dicomweb + +The configuration file of the plugin can be found at the following +location: /etc/orthanc/dicomweb.json Added: trunk/packages/orthanc-dicomweb/trunk/debian/changelog =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/changelog (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/changelog 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,5 @@ +orthanc-dicomweb (0.1+dfsg-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #794392) + + -- Sebastien Jodogne <s.jodo...@gmail.com> Mon, 03 Aug 2015 10:18:51 +0200 Added: trunk/packages/orthanc-dicomweb/trunk/debian/configuration/dicomweb.json =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/configuration/dicomweb.json (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/configuration/dicomweb.json 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,9 @@ +{ + /** + * The following options control the configuration of the Orthanc + * plugin adding support of WADO and DICOMweb. + **/ + + "DicomWeb" : { + } +} Added: trunk/packages/orthanc-dicomweb/trunk/debian/control =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/control (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/control 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,32 @@ +Source: orthanc-dicomweb +Maintainer: Debian Med Packaging Team <debian-med-packag...@lists.alioth.debian.org> +Uploaders: Sebastien Jodogne <s.jodo...@gmail.com>, + Andreas Tille <ti...@debian.org> +Section: science +Priority: optional +Standards-Version: 3.9.6 +Build-Depends: cmake (>= 2.8), + debhelper (>= 9), + libboost-all-dev (>= 1.54.0-5), + libgdcm2-dev, + libgtest-dev (>= 1.6.0), + libjpeg-dev, + libjs-jquery, + libjsoncpp-dev, + libpng-dev, + libpugixml-dev, + orthanc-dev (>= 0.9.1), + uuid-dev, + yui-compressor, + zlib1g-dev +Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/orthanc-dicomweb/trunk/ +Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/orthanc-dicomweb/trunk/ +Homepage: http://www.orthanc-server.com/static.php?page=dicomweb + +Package: orthanc-dicomweb +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends}, orthanc (>= 0.9.1) +Description: Plugin to extend Orthanc with support of WADO and DICOMweb + Orthanc DICOMweb is a plugin to Orthanc, the lightweight, RESTful Vendor + Neutral Archive for medical imaging. It extends the Orthanc core with + support of the WADO and DICOMweb (QIDO-RS, STOW-RS, WADO-RS) standards. Added: trunk/packages/orthanc-dicomweb/trunk/debian/copyright =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/copyright (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/copyright 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,95 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: OrthancDicomWeb +Upstream-Contact: Sebastien Jodogne <s.jodo...@gmail.com> +Source: https://bitbucket.org/sjodogne/orthanc-dicomweb/ +Files-Excluded: + Resources/Samples/JavaScript/jquery.min.js + +Files: * +Copyright: 2012-2015 Sebastien Jodogne <s.jodo...@gmail.com>, University Hospital of Liege, Belgium +License: AGPL-3 + +Files: Orthanc/* +Copyright: 2012-2015 Sebastien Jodogne <s.jodo...@gmail.com>, University Hospital of Liege, Belgium +License: GPL-3 with OpenSSL exception + +Files: Orthanc/Resources/ThirdParty/VisualStudio/* +Copyright: 2006-2008 Alexander Chemeris +License: BSD-3-clause + + +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. + + +License: GPL-3 with OpenSSL exception + 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 + the Free Software Foundation, either version 3 of the License, or (at + your option) any later version. + . + In addition, as a special exception, the copyright holders of this + program give permission to link the code of its release with the + OpenSSL project's "OpenSSL" library (or with modified versions of it + that use the same license as the "OpenSSL" library), and distribute + the linked executables. You must obey the GNU General Public License + in all respects for all of the code used other than "OpenSSL". If you + modify file(s) with this exception, you may extend this exception to + your version of the file(s), but you are not obligated to do so. If + you do not wish to do so, delete this exception statement from your + version. If you delete this exception statement from all source files + in the program, then also delete it here. + . + 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 + General Public License for more details. + . + You should have received a copy of the GNU 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. + . + On Debian systems, the full text of the GNU General Public License + version 3 can be found in the file + `/usr/share/common-licenses/GPL-3'. + + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are + met: + . + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + * The name of the autors may be used to endorse or promote + products derived from this software without specific prior written + permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Added: trunk/packages/orthanc-dicomweb/trunk/debian/install =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/install (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/install 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1 @@ +debian/configuration/dicomweb.json etc/orthanc Added: trunk/packages/orthanc-dicomweb/trunk/debian/patches/cmake =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/patches/cmake (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/patches/cmake 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,34 @@ +Description: Fix the linking of the shared library +Author: Sebastien Jodogne <s.jodo...@gmail.com> +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: OrthancDicomWeb-0.1/CMakeLists.txt +=================================================================== +--- OrthancDicomWeb-0.1.orig/CMakeLists.txt ++++ OrthancDicomWeb-0.1/CMakeLists.txt +@@ -147,9 +147,9 @@ message("Setting the version of the libr + + add_definitions(-DORTHANC_DICOM_WEB_VERSION="${ORTHANC_DICOM_WEB_VERSION}") + +-set_target_properties(OrthancDicomWeb PROPERTIES +- VERSION ${ORTHANC_DICOM_WEB_VERSION} +- SOVERSION ${ORTHANC_DICOM_WEB_VERSION} ++set_target_properties(OrthancDicomWeb PROPERTIES ++ NO_SONAME ON ++ LINK_FLAGS "-lgdcmDSED -lgdcmMSFF -luuid -Wl,-soname,libOrthancDicomWeb.so.${ORTHANC_DICOM_WEB_VERSION}" + ) + + install( +Index: OrthancDicomWeb-0.1/Orthanc/Resources/CMake/Compiler.cmake +=================================================================== +--- OrthancDicomWeb-0.1.orig/Orthanc/Resources/CMake/Compiler.cmake ++++ OrthancDicomWeb-0.1/Orthanc/Resources/CMake/Compiler.cmake +@@ -55,7 +55,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux + # Remove the "-rdynamic" option + # http://www.mail-archive.com/cmake@cmake.org/msg08837.html + set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") +- link_libraries(uuid pthread rt) ++ link_libraries(pthread rt) + + if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") Added: trunk/packages/orthanc-dicomweb/trunk/debian/patches/series =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/patches/series (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/patches/series 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1 @@ +cmake Added: trunk/packages/orthanc-dicomweb/trunk/debian/postinst =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/postinst (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/postinst 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +case $1 in + configure) + # Configure the permissions of the configuration file + chown -R orthanc:orthanc /etc/orthanc/dicomweb.json + chmod 0664 /etc/orthanc/dicomweb.json + + # Restart the Orthanc service + # https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2 + if [ -x /etc/init.d/orthanc ]; then + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d orthanc restart + else + /etc/init.d/orthanc restart + fi + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# Property changes on: trunk/packages/orthanc-dicomweb/trunk/debian/postinst ___________________________________________________________________ Added: svn:executable + * Added: trunk/packages/orthanc-dicomweb/trunk/debian/postrm =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/postrm (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/postrm 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,27 @@ +#!/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 [ -x /etc/init.d/orthanc ]; then + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d orthanc restart + else + /etc/init.d/orthanc restart + fi + fi + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# Property changes on: trunk/packages/orthanc-dicomweb/trunk/debian/postrm ___________________________________________________________________ Added: svn:executable + * Added: trunk/packages/orthanc-dicomweb/trunk/debian/rules =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/rules (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/rules 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1,38 @@ +#!/usr/bin/make -f + +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 := libOrthancDicomWeb.so + +%: + dh $@ --parallel --builddirectory=Build + +CMAKE_EXTRA_FLAGS += \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + -DSTATIC_BUILD:BOOL=OFF \ + -DSTANDALONE_BUILD:BOOL=ON \ + -DUSE_GTEST_DEBIAN_SOURCE_PACKAGE:BOOL=ON \ + -DCMAKE_BUILD_TYPE="" # The build type must be left empty, see #711515 + +override_dh_auto_configure: + # Place back the jquery library from Debian + cp /usr/share/javascript/jquery/jquery.min.js Resources/Samples/JavaScript/jquery.min.js + + # Launch the original CMake script + dh_auto_configure -- $(CMAKE_EXTRA_FLAGS) + +override_dh_auto_test: + ( cd Build; ./UnitTests ) + +override_dh_auto_install: + cp Build/${TARGET} Build/${TARGET}.${UPSTREAM_VERSION} + dh_install Build/${TARGET}.${UPSTREAM_VERSION} usr/lib + +override_dh_link: + dh_link usr/lib/${TARGET}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET} + +override_dh_installchangelogs: + dh_installchangelogs -k NEWS + +get-orig-source: + uscan --verbose --force-download --repack --compression xz Property changes on: trunk/packages/orthanc-dicomweb/trunk/debian/rules ___________________________________________________________________ Added: svn:executable + * Added: trunk/packages/orthanc-dicomweb/trunk/debian/source/format =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/source/format (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/source/format 2015-08-03 10:01:21 UTC (rev 19821) @@ -0,0 +1 @@ +3.0 (quilt) Added: trunk/packages/orthanc-dicomweb/trunk/debian/upstream/metadata =================================================================== --- trunk/packages/orthanc-dicomweb/trunk/debian/upstream/metadata (rev 0) +++ trunk/packages/orthanc-dicomweb/trunk/debian/upstream/metadata 2015-08-03 10:01:21 UTC (rev 19821) @@ -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 _______________________________________________ debian-med-commit mailing list debian-med-commit@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit