# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # orthanc # orthanc/distinfo # orthanc/Makefile # orthanc/pkg-plist # orthanc/pkg-descr # orthanc/files # orthanc/files/orthanc.in # orthanc/files/patch-OrthancServer_Resources_Configuration.json # echo c - orthanc mkdir -p orthanc > /dev/null 2>&1 echo x - orthanc/distinfo sed 's/^X//' >orthanc/distinfo << '5841c696afd33aad8b05426dbef4f5ab' XTIMESTAMP = 1596543829 XSHA256 (orthanc/Orthanc-1.7.2.tar.gz) = ea167b4688db7cd8855a1758f289b21d490e7d97afcc405f12d881b22bf17e9b XSIZE (orthanc/Orthanc-1.7.2.tar.gz) = 1644200 XSHA256 (orthanc/civetweb-1.12-fixed.tar.gz) = 0e81fc252166302a33abd68e98936fb24d9b008b5816fe50edd6b12256768e41 XSIZE (orthanc/civetweb-1.12-fixed.tar.gz) = 3035855 XSHA256 (orthanc/e2fsprogs-1.44.5.tar.gz) = 2e211fae27ef74d5af4a4e40b10b8df7f87c655933bd171aab4889bfc4e6d1cc XSIZE (orthanc/e2fsprogs-1.44.5.tar.gz) = 7619237 5841c696afd33aad8b05426dbef4f5ab echo x - orthanc/Makefile sed 's/^X//' >orthanc/Makefile << 'bf1a1e0ee6e4db7a3b78b6b48849190d' X# Created by: maintainer.freebsd@xpoundit.com X# $FreeBSD$ X XPORTNAME= orthanc XPORTVERSION= 1.7.2 XPORTREVISION= 1 XCATEGORIES= science XMASTER_SITES= http://orthanc-server.com/downloads/get.php?path=/orthanc/:main \ X http://orthanc.osimis.io/ThirdPartyDownloads/:thirdparty XDISTFILES= Orthanc-${PORTVERSION}.tar.gz:main \ X civetweb-1.12-fixed.tar.gz:thirdparty \ X e2fsprogs-1.44.5.tar.gz:thirdparty XDIST_SUBDIR= ${PORTNAME} XEXTRACT_ONLY= Orthanc-${PORTVERSION}.tar.gz X XMAINTAINER= maintainer.freebsd@xpoundit.com XCOMMENT= Orthanc is a DICOM server for healthcare and medical research X XLICENSE= GPLv3 XLICENSE_FILE= ${WRKSRC}/COPYING X XLIB_DEPENDS= libboost_atomic.so:devel/boost-libs \ X libcharls.so:graphics/dcmtk \ X libcurl.so:ftp/curl \ X libgtest.so:devel/googletest \ X libicudata.so:devel/icu \ X libjbig.so:graphics/jbigkit \ X libjpeg.so:graphics/jpeg-turbo \ X libjsoncpp.so:devel/jsoncpp \ X libnghttp2.so:www/libnghttp2 \ X libpng16.so:graphics/png \ X libpugixml.so:textproc/pugixml \ X libsqlite3.so:databases/sqlite3 \ X libtiff.so:graphics/tiff \ X libuuid.so:misc/e2fsprogs-libuuid \ X libxml2.so:textproc/libxml2 X XUSES= cmake iconv jpeg lua python:build ssl X XWRKSRC= ${WRKDIR}/Orthanc-${PORTVERSION} XCMAKE_SOURCE_PATH= ${WRKSRC}/OrthancServer XCMAKE_ARGS= -DDCMTK_LIBRARIES="dcmdsig;charls;dcmjpls" \ X -DDCMTK_DIR="${LOCALBASE}" \ X -DDCMTK_DICTIONARY_DIR="${LOCALBASE}/share/dcmtk" \ X -DUSE_SYSTEM_CIVETWEB=OFF \ X -DUSE_SYSTEM_UUID=OFF \ X -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF \ X -DBUILD_CONNECTIVITY_CHECKS=OFF XCFLAGS+= -I${LOCALBASE}/include \ X -DNDEBUG XCXXFLAGS+= -DNDEBUG XUSE_LDCONFIG= yes XUSE_RC_SUBR= orthanc XUSERS= orthanc XGROUPS= orthanc XPLIST_SUB+= PORTVERSION=${PORTVERSION} X Xpost-patch: X ${MKDIR} ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads X ${MKDIR} ${CMAKE_SOURCE_PATH}/Plugins/Samples/ConnectivityChecks/ThirdPartyDownloads X ${CP} ${DISTDIR}/${DIST_SUBDIR}/civetweb-1.12-fixed.tar.gz ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads X ${CP} ${DISTDIR}/${DIST_SUBDIR}/e2fsprogs-1.44.5.tar.gz ${CMAKE_SOURCE_PATH}/ThirdPartyDownloads X Xpost-install: X ${MKDIR} ${STAGEDIR}/var/db/orthanc/db/db-v5 X ${MKDIR} ${STAGEDIR}${DATADIR}/plugins X ${MKDIR} ${STAGEDIR}${ETCDIR} X ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${CMAKE_SOURCE_PATH}/Resources/Configuration.json X ${CP} ${CMAKE_SOURCE_PATH}/Resources/Configuration.json ${STAGEDIR}${ETCDIR}/orthanc.json.sample X X.include bf1a1e0ee6e4db7a3b78b6b48849190d echo x - orthanc/pkg-plist sed 's/^X//' >orthanc/pkg-plist << 'f55fa2a6da50a58c71d054925b57ab3b' X@owner orthanc X@group orthanc X@mode 700 X@dir %%DATADIR%%/plugins X@dir /var/db/orthanc/db/db-v5 X@dir /var/db/orthanc/db X@dir /var/db/orthanc X@mode 600 X@sample %%ETCDIR%%/orthanc.json.sample X@mode Xinclude/orthanc/OrthancCDatabasePlugin.h Xinclude/orthanc/OrthancCPlugin.h Xbin/OrthancRecoverCompressedFile Xsbin/Orthanc X%%DATADIR%%/plugins/%%LUA_LIBDIR%%ModalityWorklists.so X%%DATADIR%%/plugins/%%LUA_LIBDIR%%ModalityWorklists.so.%%PORTVERSION%% X%%DATADIR%%/plugins/%%LUA_LIBDIR%%ServeFolders.so X%%DATADIR%%/plugins/%%LUA_LIBDIR%%ServeFolders.so.%%PORTVERSION%% f55fa2a6da50a58c71d054925b57ab3b echo x - orthanc/pkg-descr sed 's/^X//' >orthanc/pkg-descr << '032a5e628b4bf82a0ccfdb5e40185fd1' XOrthanc aims at providing a simple, yet powerful standalone DICOM server. It Xis designed to improve the DICOM flows in hospitals and to support research Xabout the automated analysis of medical images. Orthanc lets its users focus Xon the content of the DICOM files, hiding the complexity of the DICOM format Xand of the DICOM protocol. X XOrthanc can turn any computer running Windows, Linux, FreeBSD or OS X into a XDICOM store (in other words, a mini-PACS system). Its architecture is Xlightweight and standalone, meaning that no complex database administration Xis required, nor the installation of third-party dependencies. X XWhat makes Orthanc unique is the fact that it provides a RESTful API. Thanks Xto this major feature, it is possible to drive Orthanc from any computer Xlanguage. The DICOM tags of the stored medical images can be downloaded in Xthe JSON file format. Furthermore, standard PNG images can be generated Xon-the-fly from the DICOM instances by Orthanc. X XOrthanc also features a plugin mechanism to add new modules that extends the Xcore capabilities of its REST API. A Web viewer, a PostgreSQL database Xback-end, a MySQL database back-end, and a reference implementation of XDICOMweb are currently freely available as plugins. X XWWW: https://www.orthanc-server.com/ 032a5e628b4bf82a0ccfdb5e40185fd1 echo c - orthanc/files mkdir -p orthanc/files > /dev/null 2>&1 echo x - orthanc/files/orthanc.in sed 's/^X//' >orthanc/files/orthanc.in << '542f8b85dde137c99eef239bb81f6c33' X#!/bin/sh X X# $FreeBSD$ X# X# PROVIDE: orthanc X# REQUIRE: LOGIN X# KEYWORD: shutdown X# X# Add these lines to /etc/rc.conf.local or /etc/rc.conf X# to enable this service: X# X# orthanc_enable (bool): Set to NO by default. X# Set it to YES to enable Orthanc. X# orthanc_flags (str): Set to %%ETCDIR%%/orthanc.json X# by default. X X. /etc/rc.subr X Xname=orthanc Xrcvar=orthanc_enable Xdesc="RESTful DICOM server for healthcare and medical research" X Xload_rc_config $name X X: ${orthanc_enable:=NO} X: ${orthanc_flags="%%ETCDIR%%/orthanc.json"} X Xstart_precmd=orthanc_prestart Xpidfile=/var/run/orthanc.pid Xprocname=%%PREFIX%%/sbin/Orthanc Xcommand=/usr/sbin/daemon Xcommand_args=" -f -p ${pidfile} -u orthanc ${procname} ${orthanc_flags}" X Xorthanc_prestart() X{ X # Have to empty rc_flags so they don't get passed to daemon(8) X rc_flags="" X} X Xrun_rc_command "$1" 542f8b85dde137c99eef239bb81f6c33 echo x - orthanc/files/patch-OrthancServer_Resources_Configuration.json sed 's/^X//' >orthanc/files/patch-OrthancServer_Resources_Configuration.json << '5df90c81a5d51edcd4ce04edd6b79dfb' X--- OrthancServer/Resources/Configuration.json.orig 2020-07-08 09:50:26 UTC X+++ OrthancServer/Resources/Configuration.json X@@ -10,12 +10,12 @@ X // Path to the directory that holds the heavyweight files (i.e. the X // raw DICOM instances). Backslashes must be either escaped by X // doubling them, or replaced by forward slashes "/". X- "StorageDirectory" : "OrthancStorage", X+ "StorageDirectory" : "/var/db/orthanc/db-v5", X X // Path to the directory that holds the SQLite index (if unset, the X // value of StorageDirectory is used). This index could be stored on X // a RAM-drive or a SSD device for performance reasons. X- "IndexDirectory" : "OrthancStorage", X+ "IndexDirectory" : "/var/db/orthanc/db-v5", X X // Path to the directory where Orthanc stores its large temporary X // files. The content of this folder can be safely deleted if X@@ -53,6 +53,7 @@ X // find shared libraries. Backslashes must be either escaped by X // doubling them, or replaced by forward slashes "/". X "Plugins" : [ X+ "%%PREFIX%%/share/orthanc/plugins/" X ], X X // Maximum number of processing jobs that are simultaneously running 5df90c81a5d51edcd4ce04edd6b79dfb exit