debian/0000755000000000000000000000000012237114757007177 5ustar debian/control0000644000000000000000000000310312237114604010566 0ustar Source: ctn Maintainer: Debian Med Packaging Team Uploaders: Andreas Tille Section: graphics Priority: optional Build-Depends: debhelper (>= 9), libmotif-dev, libxaw7-dev, flex, bison, zlib1g-dev, libmysqlclient15-dev, libx11-dev, libxt-dev, x11proto-core-dev, csh | c-shell Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/ctn/trunk/ Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/ctn/trunk/ Homepage: http://sourceforge.net/projects/mirctn Package: ctn Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: ctn-doc Description: Central Test Node, a DICOM implementation for medical imaging DICOM is the standard for image storage, annotation, and networking. It is used widely for medical imaging. The Central Test Node software (CTN) provides an implementation of this standard. . This package includes the binary and run-time configuration files for CTN. Package: ctn-dev Architecture: any Section: devel Depends: ctn (= ${binary:Version}), ${misc:Depends} Suggests: ctn-doc Description: Development files for Central Test Node, a DICOM implementation DICOM is the standard for image storage, annotation, and networking. It is used widely for medical imaging. . This package includes the header files and static library used for creating programs that use the CTN library. debian/ctn-dev.install0000644000000000000000000000005712236726172012130 0ustar include/* usr/include/ctn lib/*/* usr/lib/ctn debian/test-endian.c0000644000000000000000000000073312236777516011570 0ustar #include #include main() { unsigned int i = 1 + (256 * 2) + (256*256 * 3) + (256*256*256 * 4); unsigned char* p = (unsigned char*) &i; if (*p == 1 && *(p+1) == 2 && *(p+2) == 3 && *(p+3) == 4) { printf("LITTLE_ENDIAN_ARCHITECTURE\n"); exit (0); } else if (*p == 4 && *(p+1) == 3 && *(p+2) == 2 && *(p+3) == 1) { printf ("BIG_ENDIAN_ARCHITECTURE\n"); exit (0); } printf ("UNKNOWN_ENDIAN_ARCHITECTURE\n"); exit(1); } debian/debian.mysql.options.env0000644000000000000000000000171712236731102013763 0ustar export CWD=`pwd` mkdir -p $CWD/debian/tmp export CTN_TARGET=$CWD/debian/tmp export DICOM_ROOT=$CWD export DICOM_BIN=$CTN_TARGET/bin export DICOM_LIB=$DICOM_ROOT/lib/ctn-mysql export DICOM_LIBSRC=$DICOM_ROOT/libsrc export DICOM_INCLUDE=$DICOM_ROOT/include export DICOM_MAKE=$DICOM_ROOT/debian/ctnmake.debian.mysql.options.full export MYSQL_LIB=/usr/lib export MYSQL_INCLUDE=/usr/include/mysql gcc debian/test-endian.c -o debian/test-endian export TEST_ENDIAN=`./debian/test-endian` rm debian/test-endian echo "TEST_ENDIAN: $TEST_ENDIAN" #export ARCHITECTURE=LITTLE_ENDIAN_ARCHITECTURE export ARCHITECTURE=$TEST_ENDIAN export OS=LINUX export CC=gcc export XCC=gcc export DBLINK=gcc export INSTALL=install export INSTALLUID="install -m 4775" export INSTALLINCLUDE="install -c -m 444 " export CI="echo Use ci on a sun" export CO="echo Use co on a sun" export INDENT="Use indent on a sun" export LINTOPTIONS=$DICOM_ROOT/lint/minimal.lnt export RANLIB=ranlib export LEX=flex debian/ctn.examples0000644000000000000000000000004712236732334011520 0ustar apps/scripts/[abd-z]* apps/scripts/cr* debian/links0000644000000000000000000001411112237113004010220 0ustar usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/add-accession-numbers.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/archive_agent.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/archive_cleaner.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/archive_server.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/clone_study.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/commit_agent.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/create_common.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/create_greyscale_module.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/create_icons.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/create_icons.94.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/create_print_entry.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/createdirectory.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ctn_version.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ctndisp.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ctnnetwork.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_dump_compressed.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_mask_image.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_modify_elements.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_modify_object.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_print_dictionary.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_rm_group.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_snoop.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_strip_odd_groups.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_template.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_to_html.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_to_text.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_vr_patterns.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dcm_x_disp.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dicom_echo.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/dump_commit_requests.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/enq_ctndisp.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/enq_ctnnetwork.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ex1_initiator.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ex2_initiator.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ex3_acceptor.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ex3_initiator.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ex4_acceptor.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ex4_initiator.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/fillImageDB.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/fillImageDBScript.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/fillRSA.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/fillRSAImpInterp.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/fis_server.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/gqinitq.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/gqkillq.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/his_layout.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/icon_append_file.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/icon_append_index.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/icon_dump_file.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/icon_dump_index.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/icon_script.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/image_server.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/img_layout.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/kill_ctndisp.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/kill_ctnnetwork.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/load_control.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/mwlQuery.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/pacs_layout.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/pq_ctndisp.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/pq_ctnnetwork.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/print_client.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/print_layout.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/print_mgr.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/print_server.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/print_server_display.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ris_gateway.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/send_image.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/send_results.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/send_study.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/simple_pacs.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/simple_storage.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/snp_to_files.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_clients.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_his_client.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_his_server.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_img_client.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_img_displays.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_img_server.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_pacs_client.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_pacs_server.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/start_print_client.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/stop_img_displays.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/storage_classes.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/storage_commit.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ttdelete.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ttinsert.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ttlayout.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ttselect.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ttunique.1 usr/share/man/man1/ctn_manpage.1 /usr/share/man/man1/ttupdate.1 debian/rules0000755000000000000000000000511212237003631010242 0ustar #!/usr/bin/make -f pkg-ctn := ctn pkg-ctn-dev := ctn-dev %: dh $@ # we must provide *SIZE inside dicom.h or otherwise applications which # would use ctn might be doomed to get improper U32 types etc # that file will be included in dicom.h - hard patched debian/savefiles: mkdir -p debian/savefiles mkdir -p debian/savefiles/apps/dcm_modify_object cp -a apps/dcm_modify_object/gram.h debian/savefiles/apps/dcm_modify_object debian/test-sizes: debian/savefiles cc debian/test-sizes.c -o debian/test-sizes debian/intsizes.h: debian/test-sizes sh debian/intsizes_h.sh override_dh_auto_build: debian/intsizes.h debian/test-sizes >| debian/ctnmake.debian.mysql.options.full echo "CFLAGS=$(CFLAGS)" >> debian/ctnmake.debian.mysql.options.full echo "LDFLAGS=$(LDFLAGS)" >> debian/ctnmake.debian.mysql.options.full cat debian/ctnmake.debian.mysql.options >> debian/ctnmake.debian.mysql.options.full mv debian/intsizes.h facilities/dicom/ chmod +x $(CURDIR)/apps/scripts/createdirectory chmod +x $(CURDIR)/apps/scripts/checkEnvironment mkdir $(CURDIR)/lib mkdir $(CURDIR)/include (. debian/debian.mysql.options.env; make install) override_dh_auto_clean: dh_auto_clean # restore changed files if [ -d debian/savefiles ] ; then \ mv debian/savefiles/apps/dcm_modify_object/gram.h apps/dcm_modify_object ; \ rm -rf debian/savefiles/apps ; \ fi rm -rf debian/savefiles rm -f debian/ctn*.postinst.* debian/ctn*.prerm.* debian/intsizes.h rm -f debian/ctnmake.debian.mysql.options.full debian/test-sizes rm -f facilities/dicom/intsizes.h rm -f libsrc/*.c libsrc/*.h rm -f `find . -name \*.o -or -name \*.a` rm -rf include rm -rf lib override_dh_prep: # ctn build process does build+install in one rush # dear dh_prep, please leave my debian/tmp mv $(CURDIR)/debian/tmp $(CURDIR)/debian/do_not_delete_this_tmp_dir dh_prep mv $(CURDIR)/debian/do_not_delete_this_tmp_dir $(CURDIR)/debian/tmp override_dh_auto_install: echo 'Do not try to call `make install` since it requires setting variable DICOM_MAKE' override_dh_fixperms: dh_fixperms chmod +x `echo $(CURDIR)/debian/$(pkg-ctn)/usr/share/ctn/mysql/*` chmod -x `echo $(CURDIR)/debian/$(pkg-ctn)/usr/share/ctn/mysql/*.script` # Remark: The following uscan command requires devscripts > 2.12.4 which is not # yet released at the time of this package release. The code can be obtained # via # git clone git://tille@git.debian.org/git/users/tille/devscripts.git # and then use scripts/uscan.pl get-orig-source: mkdir -p ../tarballs uscan --verbose --force-download --destdir=../tarballs --repack-compression xz debian/man/0000755000000000000000000000000012214301032007725 5ustar debian/man/dcm_create_object.10000644000000000000000000000113012214301032013416 0ustar .\" -*- NROFF -*- .TH "dcm_create_object" "1" .SH "NAME" dcm_create_object \- Create a object in a DICOM File .SH "SYNOPSIS" .B dcm_create_object [-i inputfile] [-p pixels] [-v] fileout .SH "DESCRIPTION " \fIdcm_create_object\fP makes creates DICOM file from raw pixel data and an input source. .SH "OPTIONS" \fIdcm_create_object\fP accepts the following options: .TP 16 .B \-i Take input from this file rather than stdin .TP 16 .B \-p pixels Read raw pixel data from this file and add as 7FE0 0010 .TP 16 .B \-v Place DCM facility in verbose mode .TP 16 .B fileout Name of the output file debian/man/dcm_rm_element.10000644000000000000000000000120512214301032012757 0ustar .\" -*- NROFF -*- .TH "dcm_rm_element" "1" .SH "NAME" dcm_rm_element \- Remove an element from a DICOM file .SH "SYNOPSIS" .B dcm_rm_element [-b] [-t] [-v] group element filein fileout .SH "DESCRIPTION " \fIdcm_rm_element\fP removes and element from DICOM file while writing into an output file. .SH "OPTIONS" \fIdcm_rm_element\fP accepts the following options: .TP 16 .B \-b Input files are stored in big-endian byte order .TP 16 .B \-t Read file assuming DICOM Part 10 format .TP 16 .B \-v Place DCM facility in verbose mode .TP 16 .B group element The tag of the element to be removed .TP 16 .B filein fileout Input and output files debian/man/dcm_diff.10000644000000000000000000000146212214301032011545 0ustar .\" -*- NROFF -*- .TH "dcm_diff" "1" .SH "NAME" dcm_diff \- Compare the attributes in two DICOM files. .SH "SYNOPSIS" .B dcm_diff [-b] [-t] [-v] [-g] [-o] [-z] file1 file2 .SH "DESCRIPTION " \fIdcm_diff\fP reads the user designated files and compares attribute values. Differencs are printed to the standard output. .SH "OPTIONS" \fIdcm_diff\fP accepts the following options: .TP 16 .B \-b Input files are stored in big-endian byte order .TP 16 .B \-g Remove group length elements .TP 16 .B \-l Use (retired) length-to-end attribute for object length .TP 16 .B \-o Place output in verbose mode .TP 16 .B \-t Read file assuming DICOM Part 10 format .TP 16 .B \-v Place DCM facility in verbose mode .TP 16 .B \-z Perform format conversion (verificatioon) on data in files .TP 16 .B file1 file2 Comparison files debian/man/dcm_dump_file.10000644000000000000000000000155412214301032012603 0ustar .\" -*- NROFF -*- .TH "dcm_dump_file" "1" .SH "NAME" dcm_dump_file \- Dump the contents of a DICOM File .SH "SYNOPSIS" .B dcm_dump_file [-b] [-g] [-l] [-m mult] [-t] [-v] [-w flag] [-z] file [file ...] .SH "DESCRIPTION " \fIdcm_dump_file\fP dumps the contents of a DICOM V3 file to standard output in human readable form. .SH "OPTIONS" \fIdcm_dump_file\fP accepts the following options: .TP 16 .B \-b Input files are stored in big-endian byte order .TP 16 .B \-e Exit on file open error. Do not process other files .TP 16 .B \-g Remove group length elements .TP 16 .B \-m mult Change VM limit from 0 to mult .TP 16 .B \-v Place DCM facility in verbose mode .TP 16 .B \-t Part 10 file .TP 16 .B \-w Set open options; flag can be REPEAT .TP 16 .B \-z Perform format conversion (verification) on data in files .TP 16 .B file One or more information objects to be dumped debian/man/dcm_map_to_8.10000644000000000000000000000161612214301032012344 0ustar .\" -*- NROFF -*- .TH "dcm_map_to_8" "1" .SH "NAME" dcm_map_to_8 \- map original pixel data (10, 12 bit) to 8 bit .SH "SYNOPSIS" .B dcm_map_to_8 [-b] [-v] [-W width] [-C center] input output .SH "DESCRIPTION " \fIdcm_map_to_8\fP reads one DICOM image (monochrome) and maps the pixel data to 8 bits. It does this by applying window width, window center, rescale slope, and rescale intercept values found in the information object. The user can override the window width and center values by supplying different values as command line arguments. .SH "OPTIONS" \fIdcm_map_to_8\fP accepts the following options: .TP 16 .B \-b Read input file assuming the data is stored in big-endian byte order .TP 16 .B \-v Place DCM facility in verbose mode .TP 16 .B -W width Override window width with this value .TP 16 .B -C center Override window center with this value .TP 16 .B input output Input and output files debian/man/dcm_resize.10000644000000000000000000000123712214301032012136 0ustar .\" -*- NROFF -*- .TH "dcm_resize" "1" .SH "NAME" dcm_resize \- Resize a DICOM image .SH "SYNOPSIS" .B dcm_resize [-b] [-c cols] [-r rows] [-t] [-v] input output .SH "DESCRIPTION " \fIdcm_resize\fP resizes the number of rows and/or columns in a DICOM image. Differencs are printed to the standard output. .SH "OPTIONS" \fIdcm_resize\fP accepts the following options: .TP 16 .B \-b Input files are stored in big-endian byte order .TP 16 .B \-c New number of columns in image .TP 16 .B \-r New number of rows in image .TP 16 .B \-t Read file assuming DICOM Part 10 format .TP 16 .B \-v Place DCM facility in verbose mode .TP 16 .B input output Input and output files debian/man/dcm_add_fragments.10000644000000000000000000000113212214301032013425 0ustar .\" -*- NROFF -*- .TH "dcm_add_fragments" "1" .SH "NAME" dcm_add_fragments \- Dump element from DICOM file to another .SH "SYNOPSIS" .B dcm_add_fragments [-t] [-x xfer] filein fileout f1 [f2...] .SH "DESCRIPTION " \fIdcm_add_fragments\fP adds elements from one DICOM file into another .SH "OPTIONS" \fIdcm_add_fragments\fP accepts the following options: .TP 16 .B \-t Read file assuming DICOM Part 10 format .TP 16 .B \-x Specify transfer syntax for output .TP 16 .B filein Input file .TP 16 .B fileout Output file .TP 16 .B f1 First fragment to add .TP 16 .B f2 Zero or more fragments to add debian/man/dcm_make_object.10000644000000000000000000000120012214301032013066 0ustar .\" -*- NROFF -*- .TH "dcm_make_object" "1" .SH "NAME" dcm_make_object \- Make a DICOM information object from an ASCII description. .SH "SYNOPSIS" .B dcm_make_object [-p pixels] [-v] fileout .SH "DESCRIPTION " \fIdcm_make_object\fP creates a DICOM information object and stores it in a file. It reads a description of the data elements int the object from stdin and adds them to the information object. .SH "OPTIONS" \fIdcm_make_object\fP accepts the following options: .TP 16 .B \-p pixels Read raw pixel data from this file and add as 7FE0 0010 .TP 16 .B \-v Place DCM facility in verbose mode .B fileout Stores the DICOM object debian/man/dcm_dump_element.10000644000000000000000000000130212214301032013304 0ustar .\" -*- NROFF -*- .TH "dcm_dump_element" "1" .SH "NAME" dcm_dump_element \- Dump element from a DICOM file into to another .SH "SYNOPSIS" .B dcm_dump_element [-b] [-t] [-v] group element filein fileout .SH "DESCRIPTION " \fIdcm_dump_element\fP dumps element from DICOM file into another .SH "OPTIONS" \fIdcm_dump_element\fP accepts the following options: .TP 16 .B \-b Input files are stored in big-endian byte order .TP 16 .B \-t Read file assuming DICOM Part 10 format .TP 16 .B \-v Place DCM facility in verbose mode .TP 16 .B group element The tag of the element to be dumped .TP 16 .B filein fileout Input and output files .SH NOTES This is the method used to extract pixel data from images. debian/man/ctn_manpage.10000644000000000000000000000041712214301032012265 0ustar .\" -*- NROFF -*- .TH "ctn_manpage" "1" .SH "NAME" ctn_manpage \- Generic CTN manual page .SH "DESCRIPTION " This is a generic manual package for a CTN program. All CTN programs will give their brief usage synopsis when invoked with a "\-h" command-line parameter. debian/man/dcm_verify.10000644000000000000000000000074212214301032012141 0ustar .\" -*- NROFF -*- .TH "dcm_verify" "1" .SH "NAME" dcm_verify \- Verify DICOM File .SH "SYNOPSIS" .B dcm_verify [-b] [-t] [-v] file .SH "DESCRIPTION " \fIdcm_verify\fP verifies the contents of a DICOM file .SH "OPTIONS" \fIdcm_verify\fP accepts the following options: .TP 16 .B \-b Input files are stored in big-endian byte order .TP 16 .B \-t Read file with Part 10 format .TP 16 .B \-v Place DCM facility in verbose mode .TP 16 .B file The name of the file to be verified debian/man/dcm_ctnto10.10000644000000000000000000000101512214301032012117 0ustar .\" -*- NROFF -*- .TH "dcm_ctnto10" "1" .SH "NAME" dcm_ctnto10 \- Convert a CTN DICOM file to Part 10 conforming format. .SH "SYNOPSIS" .B dcm_ctnto10 [-bBL] [-v] filein fileout .SH "DESCRIPTION " \fIdcm_ctnto10\fP converts a DICOM file to Part 10 format .SH "OPTIONS" \fIdcm_ctnto10\fP accepts the following options: .TP 16 .B \-b Big endian output (non standard) .TP 16 .B \-B Big endian explicit transfer syntax .TP 16 .B \-L Little endian explicit transfer syntax .TP 16 .B filein fileout Input and output files debian/watch0000644000000000000000000000020212236714433010216 0ustar version=3 opts=dversionmangle=s/([~\+]dfsg)// \ http://sf.net/mirctn/mirctn-(\d[\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz))) debian/ctn.dirs0000644000000000000000000000016012214301032010616 0ustar usr/bin etc etc/ctn etc/ctn/runtime usr/share usr/share/doc usr/share/doc/ctn usr/share/ctn usr/share/ctn/mysql debian/upstream0000644000000000000000000000042512237112006010744 0ustar Reference: Author: S.M. Moore and S.A. Hoffman and D.E. Beecher Title: "DICOM Shareware: A Public Implementation of the DICOM Standard" Booktitle: "Medical Imaging 1994-PACS: Design and Evaluation" Year: 1994 Volume: 2165 Pages: 772–781 Editor: R. Gilbert Jost debian/copyright0000644000000000000000000000437512236716006011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: MIRctn Source: http://sourceforge.net/projects/mirctn/files/ Files-Excluded: apps/displays/x_utils.c Files: * Copyright: 1992-2008: Aniruddha S. Gokhale, Chander L. Sabharwal, John T. O'Neill, Nilesh R. Gohel, Pei Weng, Phillip DiCorpo, Sheldon Hoffman, Stephen M. Moore, Thomas R. Leith, Tze Khiong Lee, Mallinckrodt Institute of Radiology, RSNA and Washington University License: RSNA The software and supporting documentation for the Radiological Society of North America (RSNA) 1993, 1994 Digital Imaging and Communications in Medicine (DICOM) Demonstration were developed at the Electronic Radiology Laboratory Mallinckrodt Institute of Radiology Washington University School of Medicine 510 S. Kingshighway Blvd. St. Louis, MO 63110 as part of the 1993, 1994 DICOM Central Test Node project for, and under contract with, the Radiological Society of North America. . THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND NEITHER RSNA NOR WASHINGTON UNIVERSITY MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH THE USER. . Copyright of the software and supporting documentation is jointly owned by RSNA and Washington University, and free access is hereby granted as a license to use this software, copy this software and prepare derivative works based upon this software. However, any distribution of this software source code or supporting documentation or derivative works (source code and supporting documentation) must include the three paragraphs of the copyright notice. debian/test-sizes.c0000644000000000000000000000026712214301032011435 0ustar #include int main(){ printf("LONGSIZE=%d\n", 8*sizeof(long int)); printf("INTSIZE=%d\n", 8*sizeof(int)); printf("SHORTSIZE=%d\n", 8*sizeof(short)); return 0; } debian/ctnmake.debian.mysql.options0000644000000000000000000000162012237114560014612 0ustar # Global rules for compilation for sunos X11_INCLUDE = /usr/X11R6/include XM_INCLUDE = /usr/include/Xm LIBPATH_X11 = -L/usr/X11R6/lib LIBPATH_MOTIF = -L/usr/lib LIBPATH_UCB = LIBPATH_DATABASE =-L$(MYSQL_LIB) LIBS_X11 = -lXt -lX11 LIBS_MOTIF = -lXm LIBS_XAW = -lXaw -lXt -lm LIBS_OS = -lz LIBS_DATABASE = -ltbl_mysql -lmysqlclient LIBS_LEX = -lfl LIBS_CTN := $(LDFLAGS) -lctn $(LIBPATH_DATABASE) -lmysqlclient LIBS_CTN_NODB := $(LDFLAGS) -lctn TBL_DB = tbl_mysql.o TBLMB_DB = not_supported_with_this_software CFLAGS_X11 = -I$(X11_INCLUDE) CFLAGS_MOTIF = -I$(XM_INCLUDE) #DEBUG_LIBS = -lmalloc C_OPTS := -g -DDEBUG -D$(ARCHITECTURE) -D$(OS) -DSHARED_MEMORY \ -DSEMAPHORE -DX11 -DATHENA -DX11R4 -DUSLEEP -DMYSQLDB \ -I$(DICOM_INCLUDE) -I$(MYSQL_INCLUDE) \ $(CFLAGS_MOTIF) $(CFLAGS_X11) $(CFLAGS) \ -DLONGSIZE=$(LONGSIZE) -DINTSIZE=$(INTSIZE) -DSHORTSIZE=$(SHORTSIZE) \ -DTIMEOFDAYARGS=2 -DMOTIF -DUSEREGCOMP debian/source/0000755000000000000000000000000012214301032010452 5ustar debian/source/format0000644000000000000000000000001412214301032011660 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000202312214301032011210 0ustar The Debian Package CTN -------------------------- This is the CTN (Central Test Node) system packaged for Debian by Kevin M. Rosenberg , May 2002. Current maintainer is Debian-Med: http://www.debian.org/devel/debian-med/. CTN is an implementation of the DICOM standard. The home page for CTN is http://erl.wustl.edu/research/dicom/ctn.html There is extensive documentation for using CTN in the Debian package ctn-doc. Changes made to the Debian package compared to the upstream package are: 1. Source code changes to set the configuration directory to /etc/ctn rather than rely on an runtime environmental variable. Various tweaks to make it build in a Debian environment. 2. Rewrite SQL helper scripts to use bash shell rather than csh 3. CTN can be compiled to support a single SQL server. The Debian package supports only the MySQL database. The upstream version allows a choice of other SQL servers that could be used. 4. Support for MySQL server versions greater than 4.1. 5. Added man pages. debian/ctn.install0000644000000000000000000000023012236741606011344 0ustar bin usr runtime/ctn_cfg.txt etc/ctn/runtime runtime/fontmap etc/ctn/runtime runtime/queuemap etc/ctn/runtime cfg_scripts/mysql/* usr/share/ctn/mysql debian/changelog0000644000000000000000000001771112237114644011053 0ustar ctn (3.2.0~dfsg-1) unstable; urgency=low [ Charles Plessy ] * New upstream version available, on sf.net. * debian/watch, debian/copyright, debian/control: updated homepage. [ Thorsten Alteholz ] * debian/rules: target get-orig-source added [ Andreas Tille ] * debian/copyright: - DEP5 - Files-Excluded: apps/displays/x_utils.c Closes: #724935, #724936 * debian/source/format: 3.0 (quilt) * debian/control: - cme fix dpkg-control - debhelper 9 - canonical Vcs URLs - Priority: optional - s/lesstif2-dev/libmotif-dev/ in Build-Depends Closes: #714750, #714758 * debian/rules: rewritten to use dh and make things more transparent by using debian/*.{install,examples} files * debian/README.source removed * debian/upstream: bibliographic reference * debian/ctnmake.debian.mysql.options: drop some unneeded libraries -- Andreas Tille Thu, 07 Nov 2013 14:44:28 +0100 ctn (3.0.6-13) unstable; urgency=low [ Andreas Tille ] * Group maintenance by Debian-Med Packaging Team * Added myself to uploaders * DM-Upload-Allowed: yes * Fixed Vcs fields * Moved Homepage from long description to separate field (Closes: #466671). * Patch to make the ctn working properly with mysql server > 4.2. Thanks to Pablo Sau (Closes: #326916). [ Steve M. Robbins ] * Remove self from uploaders. [ Thijs Kinkhorst ] * Drop empty prerm/postinst scripts. * Replace obsolete x-dev with x11-proto-core-dev * Use quilt to manage patches, add proper dependencies and targets in debian/rules. All patches are still in one file, which needs to be split out over time. * Checked for policy version 3.8.0, add README.source. * Remove self from uploaders, but upload for one last time ;-) -- Thijs Kinkhorst Fri, 25 Jul 2008 18:03:57 +0200 ctn (3.0.6-12) unstable; urgency=low * Do not bail out if libsrc symlinks already exist, since this can cause problems in some build order. * Minor packaging cleanups. -- Thijs Kinkhorst Thu, 26 Jul 2007 14:15:04 +0200 ctn (3.0.6-11) unstable; urgency=low [ Charles Plessy ] * Fixed subversion repository declaration in debian/control. [ Thijs Kinkhorst ] * Replace deprecated ${Source-Version} with ${binary:Version}. -- Thijs Kinkhorst Mon, 18 Jun 2007 10:36:21 +0200 ctn (3.0.6-10) unstable; urgency=medium * Fixing build on 64bit platforms and providing *INT preprocessor definitions for the applications built using ctn-dev. Patch by Yaroslav Halchenko, thanks! (Closes: 387183) -- Thijs Kinkhorst Sat, 27 Jan 2007 19:23:09 +0100 ctn (3.0.6-9) unstable; urgency=low * Acknowledge NMU (Closes: #388612), thanks Steinar Gunderson! * Add Subversion repository URL to debian/control. * Add note to README.Debian about LONGSIZE on 64 bit platforms, courtesy Michael Hanke. -- Thijs Kinkhorst Sun, 24 Sep 2006 13:25:00 +0200 ctn (3.0.6-8.1) unstable; urgency=medium * Non-maintainer upload. * In the LONG_WORD structure, always use unsigned int since we want a 32-bit variable, and int is 32 bits on all platforms supported by Debian (it used to be unsigned long for all platforms except alpha, which broke on platforms such as ppc64 and amd64). (Closes: #387183) * Build-depend on lesstif2-dev instead of lesstif-dev, since the latter is obsolete. -- Steinar H. Gunderson Thu, 21 Sep 2006 15:40:02 +0200 ctn (3.0.6-8) unstable; urgency=low * Add Steve M. Robbins as a co-maintainer. * Clarify description. * Remove unneeded cruft from debian/rules. * Update maintainer address. * Checked for standards-version 3.7.2, no changes necessary. -- Thijs Kinkhorst Wed, 5 Jul 2006 15:11:40 +0200 ctn (3.0.6-7) unstable; urgency=low * Update to libmysqlclient15-dev (Closes: #343763). * Add README.mysql-versions with some explanation about ctn not working with MySQL 4.1+ yet. -- Thijs Kinkhorst Thu, 29 Dec 2005 16:05:16 +0100 ctn (3.0.6-6) unstable; urgency=low * Change build-dependency on xlibs-dev to libx11-dev, libxt-dev, x-dev since xlibs-dev is going away. * Upgrade debhelper compatibility to the recommended level 5. * Clean debian/rules of commented-out commands. -- Thijs Kinkhorst Tue, 13 Dec 2005 23:32:21 +0100 ctn (3.0.6-5) unstable; urgency=low * Fix test-endian.c for 64-bit big endian architectures, thanks Andreas Jochens (Closes: #319514). -- Thijs Kinkhorst Tue, 26 Jul 2005 00:01:41 +0200 ctn (3.0.6-4) unstable; urgency=high * Fix incorrect dependencies by using dh_shlibdeps. (RC, high urgency. Closes: #317985) * Add watch file. * Update Standards-Version to 3.6.2, no changes required. -- Thijs Kinkhorst Wed, 13 Jul 2005 19:11:33 +0200 ctn (3.0.6-3) unstable; urgency=low * New maintainer, deorphans package. (Closes: #297419) -- Thijs Kinkhorst Mon, 7 Mar 2005 21:52:54 +0100 ctn (3.0.6-2) unstable; urgency=low * Orphan as in bug #297419 * Update to libmysqlclient14 -- Kevin M. Rosenberg Sat, 5 Mar 2005 02:53:17 -0700 ctn (3.0.6-1) unstable; urgency=low * New upstream -- Kevin M. Rosenberg Fri, 29 Aug 2003 01:05:50 -0600 ctn (3.0.5-2) unstable; urgency=low * Change priority to extra -- Kevin M. Rosenberg Fri, 31 Jan 2003 13:30:53 -0700 ctn (3.0.5-1) unstable; urgency=low * New upstream * Compile with gcc-3.2 * Update standards-version to 3.5.8.0: move changes compared to upstream from copyright to README.Debian -- Kevin M. Rosenberg Fri, 24 Jan 2003 04:03:12 -0700 ctn (3.0.4-8) unstable; urgency=low * Add default manpage. -- Kevin M. Rosenberg Wed, 25 Sep 2002 11:01:54 -0600 ctn (3.0.4-7) unstable; urgency=low * Update e-mail address * Update Standards Version * Add man page for dcm_resize -- Kevin M. Rosenberg Sun, 11 Aug 2002 23:53:31 -0600 ctn (3.0.4-6) unstable; urgency=low * Fix bug in upstream Makefile * Reformat debian/copyright -- Kevin M. Rosenberg Sun, 7 Jul 2002 06:39:09 -0600 ctn (3.0.4-5) unstable; urgency=low * Added info to copyright file, README.Debian, and description * Added undocumented manpages for remaining CTN binaries so they can be included in the package. Removed notes about only a minority of the binary programs being installed. * Put shell scripts in /usr/share/ctn/examples/ directory -- Kevin M. Rosenberg Thu, 27 Jun 2002 00:36:27 -0600 ctn (3.0.4-4) unstable; urgency=low * Added zlib1g-dev as a build dependency (closes: 151067) * debhelper V4 * Added bison to build dependencies -- Kevin M. Rosenberg Wed, 26 Jun 2002 15:04:04 -0600 ctn (3.0.4-3) unstable; urgency=low * Update copyright file (closes: 150728) -- Kevin M. Rosenberg Mon, 24 Jun 2002 22:23:50 -0600 ctn (3.0.4-2) unstable; urgency=low * Moved the "csh | c-shell" dependency to correct line (closes: 150902) -- Kevin M. Rosenberg Mon, 24 Jun 2002 18:13:26 -0600 ctn (3.0.4-1) unstable; urgency=low * New upstream version * Added ctn-doc as a Suggest: control field for ctn and ctn-dev * Rewrite csh scripts to use bash * Changed build-dependencies in control file (closes: 149194) -- Kevin M. Rosenberg Thu, 20 Jun 2002 04:40:07 -0600 ctn (3.0.3-1) unstable; urgency=low * Patched upstream files for Debian: removed runtime dependencies on environment variable CTN_TARGET. Use default default, standard Debian directory if CTN_TARGET is not specified at run-time. * Started writing manual pages for the CTN binaries. * Initial upload. (closes: #145878) -- Kevin M. Rosenberg Sun, 5 May 2002 06:07:24 -0600 debian/patches/0000755000000000000000000000000012237112700010610 5ustar debian/patches/20_mysql_4.2.patch0000644000000000000000000000553712236720503013701 0ustar Author: Pablo Sau LastChanged: Wed, 28 May 2008 19:38:32 +0200 Description: make the ctn working properly with the mysql server > 4.2. --- a/cfg_scripts/mysql/CreateDIMTables.script +++ b/cfg_scripts/mysql/CreateDIMTables.script @@ -49,7 +49,7 @@ ALTER TABLE StudyLevel ADD INDEX SL_PatP \g CREATE TABLE SeriesLevel ( - Mod char(16) not null, + Modality char(16) not null, SerNum char(12) not null, SerInsUID char(64) not null, ProNam char(64), --- a/cfg_scripts/mysql/CreateFISTables.script +++ b/cfg_scripts/mysql/CreateFISTables.script @@ -62,7 +62,7 @@ ALTER TABLE InterpretationTable ADD UNIQ CREATE TABLE StudyCmpTable ( StuComUID char(64) not null, StuInsUID char(64) not null, - Mod char(16) not null, + Modality char(16) not null, ProCodVal char(16), ProCodSchDes char(16), ProCodMea char(64), --- a/cfg_scripts/mysql/FillDIMTables.script +++ b/cfg_scripts/mysql/FillDIMTables.script @@ -140,7 +140,7 @@ INSERT INTO StudyLevel( 'P0001') \g INSERT INTO SeriesLevel( - Mod, + Modality, SerNum, SerInsUID, ProNam, @@ -169,7 +169,7 @@ INSERT INTO SeriesLevel( 'STUDY1.1') \g INSERT INTO SeriesLevel( - Mod, + Modality, SerNum, SerInsUID, ProNam, @@ -198,7 +198,7 @@ INSERT INTO SeriesLevel( 'STUDY1.2') \g INSERT INTO SeriesLevel( - Mod, + Modality, SerNum, SerInsUID, ProNam, --- a/facilities/idb/idb.c +++ b/facilities/idb/idb.c @@ -319,7 +319,7 @@ static TBL_FIELD static TBL_FIELD GS_SERSEL_Field[] = { - "Mod", TBL_STRING, DICOM_CS_LENGTH + 1, DICOM_CS_LENGTH + 1, 0, GS_SERSEL_Mod, + "Modality", TBL_STRING, DICOM_CS_LENGTH + 1, DICOM_CS_LENGTH + 1, 0, GS_SERSEL_Mod, "SerNum", TBL_STRING, DICOM_IS_LENGTH + 1, DICOM_IS_LENGTH + 1, 0, GS_SERSEL_SerNum, "SerInsUID", TBL_STRING, DICOM_UI_LENGTH + 1, DICOM_UI_LENGTH + 1, 0, GS_SERSEL_SerInsUID, "ProNam", TBL_STRING, DICOM_LO_LENGTH + 1, DICOM_LO_LENGTH + 1, 0, GS_SERSEL_ProNam, @@ -3541,7 +3541,7 @@ CBSel_CollectSeries(TBL_FIELD * fp, int i = GS_NumSerNodes - 1; GS_NullSerFlag[i] = 0; while (fp->FieldName != 0) { - if (strcmp(fp->FieldName, "Mod") == 0) { + if (strcmp(fp->FieldName, "Modality") == 0) { if (fp->Value.IsNull) GS_NullSerFlag[i] |= QF_SER_Mod; else @@ -4682,7 +4682,7 @@ IDB_ConvertDicomQuerytoSQL(IDB_Query * p return (0); } op = likeOrEqualOperator(pssi->series.Mod); - TBL_CRITERIA_LOAD_BYTE(GS_sercl[i], "Mod", cs, TBL_STRING, op); + TBL_CRITERIA_LOAD_BYTE(GS_sercl[i], "Modality", cs, TBL_STRING, op); i++; } } @@ -5433,7 +5433,7 @@ IDB_InsertImage(IDB_HANDLE ** handle, ID } else { /* Need Series Insertion */ i = 0; - TBL_FIELD_LOAD_BYTE(serfld[i], "Mod", pssi->series.Mod, TBL_STRING); + TBL_FIELD_LOAD_BYTE(serfld[i], "Modality", pssi->series.Mod, TBL_STRING); i++; TBL_FIELD_LOAD_BYTE(serfld[i], "SerNum", pssi->series.SerNum, TBL_STRING); i++; debian/patches/30_hardening.patch0000644000000000000000000006606612237010757014121 0ustar Author: Andreas Tille LastChanged: Thu, 07 Nov 2013 14:44:28 +0100 Description: Fix format errors who fail to build with -Werror=format-security --- ctn-3.2.0+dfsg.orig.orig/facilities/database/database.c +++ ctn-3.2.0+dfsg.orig/facilities/database/database.c @@ -865,7 +865,7 @@ if (HF_SharedLock() != HF_NORMAL) return; - printf("DB Key: %s Number of Patients: %d Number of Additions/Deletions: %d\n\n", + printf("DB Key: %s Number of Patients: %d Number of Additions/Deletions: %ld\n\n", GS_root.dbkey, GS_root.num_patients, HF_ReadUpdateFlag()); for (i = 0; i < DB_MAXPATIENTS; i++) { @@ -947,7 +947,7 @@ printf("\t\t Modality: %s\n", snode->series.Modality); printf("\t\tSeries Number: %s\n", snode->series.SeriesNumber); printf("\t\t Series UID: %s\n", snode->series.SeriesUID); - printf("\t\t Series Time: %d\n", snode->time_stamp); + printf("\t\t Series Time: %ld\n", snode->time_stamp); } /* DB_PrintStudy ** @@ -981,7 +981,7 @@ printf("\t\t InterpretingPhysName: %s\n", snode->study.InterpretingPhysName); printf("\t\t ProcedureDescription: %s\n", snode->study.ProcedureDescription); printf("\t\t AdmittingDiagnosedDescription: %s\n", snode->study.AdmittingDiagnosedDescription); - printf("\t\tStudy Time: %d\n", snode->time_stamp); + printf("\t\tStudy Time: %ld\n", snode->time_stamp); } /* DB_PrintPatient ** @@ -1007,7 +1007,7 @@ printf("\tBirthdate: %s\n", pnode.pat.BirthDate); printf("\t Name: %s\n", pnode.pat.Name); printf("\t PatID: %s\n", pnode.pat.PatID); - printf("\t Pat Time: %d\n\n", pnode.time_stamp); + printf("\t Pat Time: %ld\n\n", pnode.time_stamp); } /* DB_PrintImage @@ -1035,7 +1035,7 @@ printf("\t ImageUID: %s\n", inode.image.ImageUID); printf("\t Class UID: %s\n", inode.image.ClassUID); printf("\t FileName: %s\n", inode.image.FileName); - printf("\tImage Time: %d\n\n", inode.time_stamp); + printf("\tImage Time: %ld\n\n", inode.time_stamp); } /* DB_AddSeries --- ctn-3.2.0+dfsg.orig.orig/facilities/objects/dcm.c +++ ctn-3.2.0+dfsg.orig/facilities/objects/dcm.c @@ -1649,7 +1649,7 @@ (void) LST_Position(&(*object)->groupList, groupItem); while (groupItem != NULL) { -#ifdef MACOS +#if defined(MACOS) || defined(LINUX) || defined(FREEBSD) printf("Group: %04x, Length: %8ld\n", groupItem->group, groupItem->baseLength); #else @@ -1660,7 +1660,7 @@ if (elementItem != NULL) (void) LST_Position(&groupItem->elementList, elementItem); while (elementItem != NULL) { -#ifdef MACOS +#if defined(MACOS) || defined(LINUX) || defined(FREEBSD) (void) printf("%04x %04x %8ld ", DCM_TAG_GROUP(elementItem->element.tag), DCM_TAG_ELEMENT(elementItem->element.tag), --- ctn-3.2.0+dfsg.orig.orig/facilities/services/find.c +++ ctn-3.2.0+dfsg.orig/facilities/services/find.c @@ -569,7 +569,7 @@ (findResponse->dataSetType == DCM_CMDDATANULL)) { if (PRVSRV_debug) - fprintf(DEBUG_DEVICE, pendingNullMsg); + fprintf(DEBUG_DEVICE, "%s", pendingNullMsg); rtnCond = COND_PushCondition(SRV_SUSPICIOUSRESPONSE, SRV_Message(SRV_SUSPICIOUSRESPONSE), "C-FIND", "pending", "null", "SRV_CFindResponse"); @@ -578,7 +578,7 @@ (findResponse->dataSetType != DCM_CMDDATANULL)) { if (PRVSRV_debug) - fprintf(DEBUG_DEVICE, notPendingnotNullMsg); + fprintf(DEBUG_DEVICE, "%s", notPendingnotNullMsg); rtnCond = COND_PushCondition(SRV_SUSPICIOUSRESPONSE, SRV_Message(SRV_SUSPICIOUSRESPONSE), "C-FIND", "not pending", "not null", "SRV_CFindResponse"); --- ctn-3.2.0+dfsg.orig.orig/facilities/services/get.c +++ ctn-3.2.0+dfsg.orig/facilities/services/get.c @@ -707,7 +707,7 @@ (getResponse->dataSetType != DCM_CMDDATANULL)) { if (PRVSRV_debug) - fprintf(DEBUG_DEVICE, pendingMsg); + fprintf(DEBUG_DEVICE, "%s", pendingMsg); rtnCond = COND_PushCondition(SRV_SUSPICIOUSRESPONSE, SRV_Message(SRV_SUSPICIOUSRESPONSE), "C-GET", "pending", "not null", "SRV_CGetResponse"); --- ctn-3.2.0+dfsg.orig.orig/facilities/services/move.c +++ ctn-3.2.0+dfsg.orig/facilities/services/move.c @@ -577,7 +577,7 @@ (moveResponse->dataSetType != DCM_CMDDATANULL)) { if (PRVSRV_debug) - fprintf(DEBUG_DEVICE, pendingMsg); + fprintf(DEBUG_DEVICE, "%s", pendingMsg); rtnCond = COND_PushCondition(SRV_SUSPICIOUSRESPONSE, SRV_Message(SRV_SUSPICIOUSRESPONSE), "C-MOVE", "pending", "not null", "SRV_CFindResponse"); --- ctn-3.2.0+dfsg.orig.orig/apps/clone_study/clone_study.c +++ ctn-3.2.0+dfsg.orig/apps/clone_study/clone_study.c @@ -340,7 +340,7 @@ -r Send study with accession number \n\ -u Send study with study instance UID \n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } @@ -416,7 +416,7 @@ if (cond != IDB_NORMAL) { COND_DumpConditions(); } - printf("%d\n", LST_Count(&imageList)); + printf("%ld\n", LST_Count(&imageList)); return imageList; } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_add_fragments/dcm_add_fragments.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_add_fragments/dcm_add_fragments.c @@ -86,7 +86,7 @@ f1 First fragment to add \n\ f2 Zero or more fragments to add \n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_create_object/dcm_create_object.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_create_object/dcm_create_object.c @@ -209,7 +209,7 @@ \n\ fileout Name the output file \n"; - fprintf(stdout, msg); + fprintf(stdout, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_ctnto10/dcm_ctnto10.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_ctnto10/dcm_ctnto10.c @@ -188,6 +188,6 @@ -B Big endian explicit transfer syntax\n\ -L Little endian explicit transfer syntax\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/image_server/test_storage.c +++ ctn-3.2.0+dfsg.orig/apps/image_server/test_storage.c @@ -117,6 +117,6 @@ \n\ file File containing DICOM image\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/image_server/image_server.c +++ ctn-3.2.0+dfsg.orig/apps/image_server/image_server.c @@ -331,7 +331,7 @@ \n\ port TCP/IP port address\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(5); } --- ctn-3.2.0+dfsg.orig.orig/apps/image_server/fillImageDB.c +++ ctn-3.2.0+dfsg.orig/apps/image_server/fillImageDB.c @@ -157,7 +157,7 @@ database The image database to be used\n\ file A list of one or more image files to be inserted\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/wlma_ui/wlma_ui.c +++ ctn-3.2.0+dfsg.orig/apps/wlma_ui/wlma_ui.c @@ -263,6 +263,6 @@ -v Place all facilities in verbose mode\n\ -x Place in verbose mode (DCM, DUL, FIS, SRV, TBL)\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/wlma_ui/wlma_ui.prj +++ ctn-3.2.0+dfsg.orig/apps/wlma_ui/wlma_ui.prj @@ -314,7 +314,7 @@ -v Place all facilities in verbose mode\n\\ -x Place in verbose mode (DCM, DUL, FIS, SRV, TBL)\n";\ \ - fprintf(stderr, msg);\ + fprintf(stderr, "%s", msg);\ exit(1);\ }\ --- ctn-3.2.0+dfsg.orig.orig/apps/storage_commit/commit_agent.c +++ ctn-3.2.0+dfsg.orig/apps/storage_commit/commit_agent.c @@ -310,7 +310,7 @@ \n\ port TCP/IP port address\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(5); } --- ctn-3.2.0+dfsg.orig.orig/apps/storage_commit/storage_commit.c +++ ctn-3.2.0+dfsg.orig/apps/storage_commit/storage_commit.c @@ -241,7 +241,7 @@ \n\ destinationAETitle An AE title found in the control database\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/pdu_examples/ex3_initiator.c +++ ctn-3.2.0+dfsg.orig/apps/pdu_examples/ex3_initiator.c @@ -266,7 +266,7 @@ node Node name for network connection\n\ port TCP / IP port number of server application\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/pdu_examples/ex3_acceptor.c +++ ctn-3.2.0+dfsg.orig/apps/pdu_examples/ex3_acceptor.c @@ -335,7 +335,7 @@ -p Dump Association RQ parameters\n\ -v Place DCM, DUL and SRV facilities in verbose mode\n"; - (void) fprintf(stderr, msg); + (void) fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/pdu_examples/ex1_initiator.c +++ ctn-3.2.0+dfsg.orig/apps/pdu_examples/ex1_initiator.c @@ -268,7 +268,7 @@ node Node name for network connection\n\ port TCP / IP port number of server application\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/pdu_examples/ex4_initiator.c +++ ctn-3.2.0+dfsg.orig/apps/pdu_examples/ex4_initiator.c @@ -267,7 +267,7 @@ node Node name for network connection\n\ port TCP / IP port number of server application\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/pdu_examples/ex2_initiator.c +++ ctn-3.2.0+dfsg.orig/apps/pdu_examples/ex2_initiator.c @@ -263,7 +263,7 @@ node Node name for network connection\n\ port TCP / IP port number of server application\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_replace_element/dcm_replace_element.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_replace_element/dcm_replace_element.c @@ -225,6 +225,6 @@ File containing data to replace element\n\ filein fileout Input and output files\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_verify/dcm_verify.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_verify/dcm_verify.c @@ -822,6 +822,6 @@ \n\ filename Of the image to be verified\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/query_client/patient_query.c +++ ctn-3.2.0+dfsg.orig/apps/query_client/patient_query.c @@ -317,7 +317,7 @@ port IP port number of server\n\ query File containing a DICOM object with the query\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/cfg_ctn_tables/cfg_ctn_tables.c +++ ctn-3.2.0+dfsg.orig/apps/cfg_ctn_tables/cfg_ctn_tables.c @@ -237,6 +237,6 @@ -h Give help page\n\ -x Place facility fac in verbose mode (TBL)\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/cfg_ctn_tables/cfg_ctn_tables.prj +++ ctn-3.2.0+dfsg.orig/apps/cfg_ctn_tables/cfg_ctn_tables.prj @@ -355,7 +355,7 @@ -h Give help page\n\\ -x Place facility fac in verbose mode (TBL)\n";\ \ - fprintf(stderr, msg);\ + fprintf(stderr, "%s", msg);\ exit(1);\ }\ --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_to_xml/dcm_to_xml.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_to_xml/dcm_to_xml.c @@ -315,6 +315,6 @@ \n\ file The information object to be converted to XML\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/send_image/send_image.c +++ ctn-3.2.0+dfsg.orig/apps/send_image/send_image.c @@ -735,7 +735,7 @@ port TCP / IP port number of server application\n\ image A list of one or more images to send\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/pmgr_motif/pmgr_motif.prj +++ ctn-3.2.0+dfsg.orig/apps/pmgr_motif/pmgr_motif.prj @@ -434,7 +434,7 @@ printerGroup The group name which identifies the set of printers\n\\ which will be targets for this invocation\n";\ \ - fprintf(stderr, msg);\ + fprintf(stderr, "%s", msg);\ exit(1);\ }\ --- ctn-3.2.0+dfsg.orig.orig/apps/pmgr_motif/pgmr_motif.prj +++ ctn-3.2.0+dfsg.orig/apps/pmgr_motif/pgmr_motif.prj @@ -333,7 +333,7 @@ printerGroup The group name which identifies the set of printers\n\\ which will be targets for this invocation\n";\ \ - fprintf(stderr, msg);\ + fprintf(stderr, "%s", msg);\ exit(1);\ }\ --- ctn-3.2.0+dfsg.orig.orig/apps/pmgr_motif/pmgr_motif.c +++ ctn-3.2.0+dfsg.orig/apps/pmgr_motif/pmgr_motif.c @@ -293,6 +293,6 @@ printerGroup The group name which identifies the set of printers\n\ which will be targets for this invocation\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/fillRSA/fillRSA.c +++ ctn-3.2.0+dfsg.orig/apps/fillRSA/fillRSA.c @@ -157,6 +157,6 @@ -r title Enter title as retrieve AE title at series level\n\ -x fac Place fac in verbose mode (TBL)\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/fillRSA/fillRSAImpInterp.c +++ ctn-3.2.0+dfsg.orig/apps/fillRSA/fillRSAImpInterp.c @@ -146,6 +146,6 @@ \n\ -x fac Place fac in verbose mode (TBL)\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/mb_xlate_test/mb_xlate_test.c +++ ctn-3.2.0+dfsg.orig/apps/mb_xlate_test/mb_xlate_test.c @@ -83,7 +83,7 @@ \n\ file One or more information objects to be dumped\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/load_control/load_control.c +++ ctn-3.2.0+dfsg.orig/apps/load_control/load_control.c @@ -84,7 +84,7 @@ \n\ -f Use db as control database instead of default (CTNControl)\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dicom_echo/dicom_echo.c +++ ctn-3.2.0+dfsg.orig/apps/dicom_echo/dicom_echo.c @@ -345,7 +345,7 @@ node Node name of server\n\ port Port number of server\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_rm_element/dcm_rm_element.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_rm_element/dcm_rm_element.c @@ -173,6 +173,6 @@ group element Tag of the element to remove\n\ filein fileout Input and output files\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_pixel_bits/dcm_pixel_bits.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_pixel_bits/dcm_pixel_bits.c @@ -335,6 +335,6 @@ output Output file\n\ operator AND, OR \n\ mask Hexadecimal mask\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_vr_patterns/dcm_vr_patterns.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_vr_patterns/dcm_vr_patterns.c @@ -98,7 +98,7 @@ test 0 -> 8 bit data, 1-> 16 bit data\n\ output file Binary DICOM file\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/mb_query/mb_query.c +++ ctn-3.2.0+dfsg.orig/apps/mb_query/mb_query.c @@ -625,7 +625,7 @@ node Node name of server\n\ port Port number of server\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_resize/dcm_resize.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_resize/dcm_resize.c @@ -296,6 +296,6 @@ -t Read file with DICOM Part 10 file format\n\ -v Place DCM facility in verbose mode\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/ctn_validate_mb/ctn_validate_mb.c +++ ctn-3.2.0+dfsg.orig/apps/ctn_validate_mb/ctn_validate_mb.c @@ -84,7 +84,7 @@ \n\ file One or more information objects to be dumped\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_to_text/dcm_to_text.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_to_text/dcm_to_text.c @@ -313,6 +313,6 @@ \n\ file The information object to be converted to text\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/ctn_cutil/ctn_cutil.c +++ ctn-3.2.0+dfsg.orig/apps/ctn_cutil/ctn_cutil.c @@ -83,7 +83,7 @@ ISO2022KR\n\ EUCKR\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/spray_image/spray_image.c +++ ctn-3.2.0+dfsg.orig/apps/spray_image/spray_image.c @@ -957,7 +957,7 @@ port TCP / IP port number of server application\n\ image A list of one or more images to send\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/idb_viewer/idb_viewer.prj +++ ctn-3.2.0+dfsg.orig/apps/idb_viewer/idb_viewer.prj @@ -261,7 +261,7 @@ \n\\ database is the name of the image database to be viewed\n";\ \ - fprintf(stderr, msg);\ + fprintf(stderr, "%s", msg);\ exit(1);\ }\ --- ctn-3.2.0+dfsg.orig.orig/apps/idb_viewer/idb_viewer.c +++ ctn-3.2.0+dfsg.orig/apps/idb_viewer/idb_viewer.c @@ -230,6 +230,6 @@ \n\ database is the name of the image database to be viewed\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/fis_server/fis_server.c +++ ctn-3.2.0+dfsg.orig/apps/fis_server/fis_server.c @@ -241,7 +241,7 @@ \n\ port TCP/IP port address\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/fis_server/wlma_server.c +++ ctn-3.2.0+dfsg.orig/apps/fis_server/wlma_server.c @@ -187,7 +187,7 @@ \n\ port TCP/IP port address\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_dump_element/dcm_dump_element.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_dump_element/dcm_dump_element.c @@ -397,7 +397,7 @@ group element The tag of the element to be dumped\n\ filein fileout Input and output files\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_make_object/dcm_make_object.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_make_object/dcm_make_object.c @@ -182,7 +182,7 @@ \n\ file The file created\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_diff/dcm_diff.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_diff/dcm_diff.c @@ -491,6 +491,6 @@ \n\ file1 file2 \n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_rm_group/dcm_rm_group.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_rm_group/dcm_rm_group.c @@ -182,6 +182,6 @@ filein fileout Input and output files\n\ group [group ..] One or more groups to be removed from filein\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/print_server/print_server.c +++ ctn-3.2.0+dfsg.orig/apps/print_server/print_server.c @@ -435,7 +435,7 @@ \n\ port TCP/IP port address\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_to_html/dcm_to_html.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_to_html/dcm_to_html.c @@ -541,6 +541,6 @@ \n\ file1 file2 \n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/storage_classes/storage_classes.c +++ ctn-3.2.0+dfsg.orig/apps/storage_classes/storage_classes.c @@ -233,7 +233,7 @@ char msg[] = "Usage: storage_classes [-a calling Title] [-c calledTitle] node port\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/send_results/send_results.c +++ ctn-3.2.0+dfsg.orig/apps/send_results/send_results.c @@ -381,7 +381,7 @@ \n\ destinationAETitle An AE title found in the control database\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/idb_dump/idb_dump.c +++ ctn-3.2.0+dfsg.orig/apps/idb_dump/idb_dump.c @@ -112,7 +112,7 @@ \n\ is PATIENT, STUDY, SERIES, INSTANCE\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(5); } --- ctn-3.2.0+dfsg.orig.orig/apps/send_study/send_study.c +++ ctn-3.2.0+dfsg.orig/apps/send_study/send_study.c @@ -426,7 +426,7 @@ \n\ destinationAETitle An AE title found in the control database\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_mb_to_euc/dcm_mb_to_euc.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_mb_to_euc/dcm_mb_to_euc.c @@ -82,7 +82,7 @@ \n\ file One or more information objects to be dumped\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_dump_file/dcm_dump_file.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_dump_file/dcm_dump_file.c @@ -262,6 +262,6 @@ \n\ file One or more information objects to be dumped\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/image_archive/archive_agent.c +++ ctn-3.2.0+dfsg.orig/apps/image_archive/archive_agent.c @@ -159,7 +159,7 @@ -h Print help message and exit\n\ -i Set FIS database name (default LTA_FIS)\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/image_archive/dump_commit_requests.c +++ ctn-3.2.0+dfsg.orig/apps/image_archive/dump_commit_requests.c @@ -128,7 +128,7 @@ \n\ fis database Name of the database to query\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/image_archive/archive_server.c +++ ctn-3.2.0+dfsg.orig/apps/image_archive/archive_server.c @@ -160,7 +160,7 @@ \n\ port TCP/IP port address\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(5); } --- ctn-3.2.0+dfsg.orig.orig/apps/image_archive/archive_cleaner.c +++ ctn-3.2.0+dfsg.orig/apps/image_archive/archive_cleaner.c @@ -364,7 +364,7 @@ -h Print help message and exit\n\ -n Do not actually perform the delete\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } @@ -384,7 +384,7 @@ -n Do not actually perform the delete\n\ -v Place in verbose mode\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_iterator/dcm_iterator.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_iterator/dcm_iterator.c @@ -286,6 +286,6 @@ \n\ file One or more information objects to be dumped\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/ris_gateway/ris_gateway.c +++ ctn-3.2.0+dfsg.orig/apps/ris_gateway/ris_gateway.c @@ -234,7 +234,7 @@ \n\ port TCP/IP port address\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/mwlQuery/mwlQuery.c +++ ctn-3.2.0+dfsg.orig/apps/mwlQuery/mwlQuery.c @@ -327,7 +327,7 @@ node Node name of server\n\ port Port number of server\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/new_uids/new_uids.c +++ ctn-3.2.0+dfsg.orig/apps/new_uids/new_uids.c @@ -101,7 +101,7 @@ \n\ filein fileout Input and output files\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_dump_compressed/dcm_dump_compressed.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_dump_compressed/dcm_dump_compressed.c @@ -220,7 +220,7 @@ group element The tag of the element to be dumped\n\ filein fileout Input and output files\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/rsa_ui/rsa_ui.c +++ ctn-3.2.0+dfsg.orig/apps/rsa_ui/rsa_ui.c @@ -254,6 +254,6 @@ -h Display help page\n\ -x Place in verbose mode (TBL)\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/rsa_ui/rsa_ui.prj +++ ctn-3.2.0+dfsg.orig/apps/rsa_ui/rsa_ui.prj @@ -283,7 +283,7 @@ -h Display help page\n\\ -x Place in verbose mode (TBL)\n";\ \ - fprintf(stderr, msg);\ + fprintf(stderr, "%s", msg);\ exit(1);\ }\ --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_mask_image/dcm_mask_image.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_mask_image/dcm_mask_image.c @@ -82,7 +82,7 @@ -p Pattern is one of left, right, top, bottom\n\ -x Set the value to replace pixels; default is 0 \n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/print_clients/print_client.c +++ ctn-3.2.0+dfsg.orig/apps/print_clients/print_client.c @@ -625,7 +625,7 @@ port TCP/IP port number of print server\n\ file One or more files that contain preformatted images for printing\n"; - fprintf(stderr, msg); + fprintf(stderr, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_modify_elements/dcm_modify_elements.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_modify_elements/dcm_modify_elements.c @@ -211,7 +211,7 @@ filein File that contains original DICOM object \n\ fileout File that stores the modified DICOM object \n"; - fprintf(stdout, msg); + fprintf(stdout, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_modify_object/dcm_modify_object.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_modify_object/dcm_modify_object.c @@ -257,7 +257,7 @@ filein File that contains original DICOM object \n\ fileout FIle that stores the modified DICOM object \n"; - fprintf(stdout, msg); + fprintf(stdout, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/dcm_strip_odd_groups/dcm_strip_odd_groups.c +++ ctn-3.2.0+dfsg.orig/apps/dcm_strip_odd_groups/dcm_strip_odd_groups.c @@ -112,7 +112,7 @@ filein File that contains original DICOM object \n\ fileout File that stores the modified DICOM object \n"; - fprintf(stdout, msg); + fprintf(stdout, "%s", msg); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/pdu_examples/ex4_acceptor.c +++ ctn-3.2.0+dfsg.orig/apps/pdu_examples/ex4_acceptor.c @@ -388,7 +388,7 @@ \n\ port The TCP/IP port number to use\n"; - (void) fprintf(stderr, usage); + (void) fprintf(stderr, "%s", usage); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/simple_pacs/simple_pacs.c +++ ctn-3.2.0+dfsg.orig/apps/simple_pacs/simple_pacs.c @@ -377,7 +377,7 @@ char usage[] = "Usage: simple_storage [-a] [-d FAC] [-p] [-t trips] [-v] port\n"; - (void) fprintf(stderr, usage); + (void) fprintf(stderr, "%s", usage); exit(1); } --- ctn-3.2.0+dfsg.orig.orig/apps/simple_storage/simple_storage.c +++ ctn-3.2.0+dfsg.orig/apps/simple_storage/simple_storage.c @@ -901,7 +901,7 @@ \n\ port The TCP/IP port number to use\n"; - (void) fprintf(stderr, usage); + (void) fprintf(stderr, "%s", usage); exit(1); } debian/patches/40_spelling.patch0000644000000000000000000000446712237112700013764 0ustar Author: Andreas Tille LastChanged: Thu, 07 Nov 2013 14:44:28 +0100 Description: Simple spelling fix that affects a lot of binaries --- a/facilities/objects/dcmdict.c +++ b/facilities/objects/dcmdict.c @@ -1351,7 +1351,7 @@ static DCMDICT PRC_dictionary[] = { {DCM_PRCREPORTINGPRIORITY, DCM_SH, "PRC Reporting Priority"}, {DCM_PRCNAMESINTENDEDRECIPIENTSRESULTS, DCM_PN, "PRC Names of Intended Recipients of Results"}, {DCM_PRCREQUESTEDPROCCOMMENTS, DCM_LT, "PRC Requested Procedure Comments"}, - {DCM_PRCREASONFORIMAGINGSERVICEREQ, DCM_LO, "PRC Reason for teh Imaging Service Request"}, + {DCM_PRCREASONFORIMAGINGSERVICEREQ, DCM_LO, "PRC Reason for the Imaging Service Request"}, {DCM_PRCISSUEDATEIMAGINGSERVICEREQ, DCM_DA, "PRC Issue Date of Imaging Service Request"}, {DCM_PRCISSUETIMEIMAGINGSERVICEREQ, DCM_TM, "PRC Issue Time of Imaging Service Request"}, {DCM_PRCPLACERORDERNUMBERIMAGINGSRVREQ, DCM_SH, "PRC Placer Order Number/Imaging Service Request"}, --- a/apps/storage_commit/nevent.c +++ b/apps/storage_commit/nevent.c @@ -167,7 +167,7 @@ storageCommitmentRequest(MSG_N_EVENT_REP response->status = MSG_K_PROCESSINGFAILURE; goto ExitPoint; } - printf("Transaction UID: %s\n SOP Instances commited: %d\n", + printf("Transaction UID: %s\n SOP Instances committed: %d\n", storageCommit.TraUID, LST_Count(&l)); --- a/apps/ctnnetwork/ctnnetwork.c +++ b/apps/ctnnetwork/ctnnetwork.c @@ -212,7 +212,7 @@ main(int argc, char **argv) if (GQ_GetQueue(image_Q_id, QueueElementSize) != GQ_NORMAL) { if ((GQ_InitQueue(image_Q_id, QUEUE_SIZE, QueueElementSize)) != GQ_NORMAL) { COND_PushCondition(CTNNETWORK_NOGQ, - "CTNNETWORK: Not able to acess Image Queue."); + "CTNNETWORK: Not able to access Image Queue."); COND_DumpConditions(); exit(-1); } --- a/apps/displays/ctndisp.c +++ b/apps/displays/ctndisp.c @@ -238,7 +238,7 @@ main(int argc, char **argv) */ if (GQ_GetQueue(image_Q_id, QueueElementSize) != GQ_NORMAL) { if ((GQ_InitQueue(image_Q_id, QUEUE_SIZE, QueueElementSize)) != GQ_NORMAL) { - COND_PushCondition(CTNDISP_NOGQ, "CTNDISP: Not able to acess Image Queue."); + COND_PushCondition(CTNDISP_NOGQ, "CTNDISP: Not able to access Image Queue."); COND_DumpConditions(); exit(-1); } debian/patches/11_csh-to-bash.patch0000644000000000000000000000754212236720441014260 0ustar Author: Kevin M. Rosenberg Description: Change csh scripts to bash scripts --- a/cfg_scripts/mysql/PrintTables +++ b/cfg_scripts/mysql/PrintTables @@ -1,11 +1,12 @@ -#!/bin/csh +#!/bin/bash # # PrintTables # -if ($1 == "" || $2 == "" ) then +if [ -z $1 -o -z $2 ]; then echo " " echo Usage: "$0 " echo " " exit -endif -mysql -uctn -pctn $2 < Print$1Tables.script +fi + +mysql -uctn -pctn $2 < Print${1}Tables.script --- a/cfg_scripts/mysql/ListTables +++ b/cfg_scripts/mysql/ListTables @@ -1,16 +1,16 @@ -#!/bin/csh +#!/bin/bash # # ListTables # -if ($1 == "" || $2 == "" ) then +if [ -z $1 -o -z $2 ]; then echo " " echo Usage: "$0 " echo " " exit -endif +fi # # -if( $1 == "Control" )then +if [ "$1" = "Control" ]; then mysqlshow -pctn -uctn $2 ApplicationEntity mysqlshow -pctn -uctn $2 GroupNames mysqlshow -pctn -uctn $2 StorageAccess @@ -19,15 +19,15 @@ mysqlshow -pctn -uctn $2 InstanceTable mysqlshow -pctn -uctn $2 FISAccess mysqlshow -pctn -uctn $2 PrintServerCFG mysqlshow -pctn -uctn $2 VideoImageDest -endif +fi # # # -if( $1 == "DIM" )then +if [ "$1" = "DIM" ]; then mysqlshow -pctn -uctn $2 ApplicationEntity mysqlshow -pctn -uctn $2 PatientLevel mysqlshow -pctn -uctn $2 StudyLevel mysqlshow -pctn -uctn $2 SeriesLevel mysqlshow -pctn -uctn $2 ImageLevel mysqlshow -pctn -uctn $2 InstanceTable -endif +fi --- a/cfg_scripts/mysql/ClearTables +++ b/cfg_scripts/mysql/ClearTables @@ -1,11 +1,12 @@ -#!/bin/csh +#!/bin/bash # # ClearTables # -if ( $1 == "" || $2 == "" ) then +if [ -z $1 -o -z $2 ]; then echo " " echo Usage: "$0 " echo " " exit -endif -mysql $2 < Clear$1Tables.script +fi + +mysql $2 < Clear${1}Tables.script --- a/cfg_scripts/mysql/FillTables +++ b/cfg_scripts/mysql/FillTables @@ -1,15 +1,17 @@ -#!/bin/csh +#!/bin/bash # # FillTables # -if ($1 == "" || $2 == "" ) then +if [ -z $1 -o $2 ]; then echo " " echo Usage: "$0 " echo " " exit -endif -mysql -uctn -pctn $2 < Fill$1Tables.script -if ($status != 0) then +fi + +mysql -uctn -pctn $2 < Fill${1}Tables.script + +if [ $? != 0 ]; then echo Could not drop database: $1 exit 1 -endif +fi --- a/cfg_scripts/mysql/CreateTables +++ b/cfg_scripts/mysql/CreateTables @@ -1,11 +1,12 @@ -#!/bin/csh +#!/bin/bash # # CreateTables # -if ($1 == "" || $2 == "" ) then +if [ -z $1 -o -z $2 ]; then echo " " echo Usage: "$0 " echo " " exit -endif -mysql -uctn -pctn $2 < Create$1Tables.script +fi + +mysql -uctn -pctn $2 < Create${1}Tables.script --- a/cfg_scripts/mysql/DropTables +++ b/cfg_scripts/mysql/DropTables @@ -1,15 +1,16 @@ -#!/bin/csh +#!/bin/bash # # DropTables # -if ( $1 == "" || $2 == "" ) then +if [ -z $1 -o -z $2 ]; then echo " " echo Usage: "$0 " echo " " exit -endif -mysql -uctn -pctn $2 < Drop$1Tables.script -if ($status != 0) then +fi + +mysql -uctn -pctn $2 < Drop${1}Tables.script +if [ $? != 0 ]; then echo Could not drop database: $1 exit 1 -endif +fi --- a/cfg_scripts/mysql/DropDB +++ b/cfg_scripts/mysql/DropDB @@ -1,15 +1,16 @@ -#!/bin/csh +#!/bin/bash # # DropDB # -if ($1 == "") then +if [ -z $1 ]; then echo " " echo Usage: "$0 " echo " " exit -endif +fi + mysqladmin -uctn -pctn drop $1 -if ($status != 0) then +if [ $? != 0 ]; then echo Could not drop database: $1 exit 1 -endif +fi --- a/cfg_scripts/mysql/CreateDB +++ b/cfg_scripts/mysql/CreateDB @@ -1,15 +1,16 @@ -#!/bin/csh +#!/bin/bash # # CreateDB # -if ($1 == "") then +if [ -z "$1" ]; then echo " " echo Usage: "$0 " echo " " exit -endif +fi + mysqladmin -uctn -pctn create $1 -if ($status != 0) then +if [ $? != 0 ]; then echo Could not create database: $1 exit 1 -endif +fi debian/patches/20_prevent_installing_examples.patch0000644000000000000000000000351212236733653017757 0ustar Author: Andreas Tille LastChanged: Thu, 07 Nov 2013 14:44:28 +0100 Description: Do not install scripts which are only needed as examples --- a/apps/scripts/Makefile +++ b/apps/scripts/Makefile @@ -12,28 +12,29 @@ include $(DICOM_MAKE) application: $(SCRIPTS) install: - chmod 775 $(SCRIPTS) - cp add-accession-numbers $(DICOM_BIN) - cp create_common $(DICOM_BIN) - cp create_icons $(DICOM_BIN) - cp create_icons.94 $(DICOM_BIN) - cp createdirectory $(DICOM_BIN) - cp fillImageDBScript $(DICOM_BIN) - cp his_layout $(DICOM_BIN) - cp icon_script $(DICOM_BIN) - cp img_layout $(DICOM_BIN) - cp pacs_layout $(DICOM_BIN) - cp print_layout $(DICOM_BIN) - cp start_clients $(DICOM_BIN) - cp start_his_client $(DICOM_BIN) - cp start_his_server $(DICOM_BIN) - cp start_img_client $(DICOM_BIN) - cp start_img_displays $(DICOM_BIN) - cp start_img_server $(DICOM_BIN) - cp start_pacs_client $(DICOM_BIN) - cp start_pacs_server $(DICOM_BIN) - cp start_print_client $(DICOM_BIN) - cp stop_img_displays $(DICOM_BIN) + #chmod 775 $(SCRIPTS) + #cp add-accession-numbers $(DICOM_BIN) + #cp create_common $(DICOM_BIN) + #cp create_icons $(DICOM_BIN) + #cp create_icons.94 $(DICOM_BIN) + #cp createdirectory $(DICOM_BIN) + #cp fillImageDBScript $(DICOM_BIN) + #cp his_layout $(DICOM_BIN) + #cp icon_script $(DICOM_BIN) + #cp img_layout $(DICOM_BIN) + #cp pacs_layout $(DICOM_BIN) + #cp print_layout $(DICOM_BIN) + #cp start_clients $(DICOM_BIN) + #cp start_his_client $(DICOM_BIN) + #cp start_his_server $(DICOM_BIN) + #cp start_img_client $(DICOM_BIN) + #cp start_img_displays $(DICOM_BIN) + #cp start_img_server $(DICOM_BIN) + #cp start_pacs_client $(DICOM_BIN) + #cp start_pacs_server $(DICOM_BIN) + #cp start_print_client $(DICOM_BIN) + #cp stop_img_displays $(DICOM_BIN) + echo 'scripts will be installed as examples' install-clean: install make clean debian/patches/10_all_patches.patch0000644000000000000000000001643512236720415014430 0ustar Description: Misc patches inherited from the monolithic .diff.gz. This includes: - changes to the bison parser; - detection of intsizes by Steinar Gundersson - various changes to make it build or work with Debian could be split out into separate patches. --- a/apps/dcm_modify_object/gram.h +++ b/apps/dcm_modify_object/gram.h @@ -1,22 +1,73 @@ -#ifndef BISON_Y_TAB_H -# define BISON_Y_TAB_H +/* A Bison parser, made by GNU Bison 2.3. */ -#ifndef YYSTYPE -typedef union{ +/* Skeleton interface for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. + + 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 2, 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + +/* Tokens. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype { + NUMBER = 258, + VALUE = 259 + }; +#endif +/* Tokens. */ +#define NUMBER 258 +#define VALUE 259 + + + + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE +#line 25 "gram.y" +{ unsigned long num; char str[DICOM_LO_LENGTH+1]; char *s; DCM_ELEMENT *e; LST_HEAD *l; void *v; -} yystype; -# define YYSTYPE yystype +} +/* Line 1489 of yacc.c. */ +#line 66 "y.tab.h" + YYSTYPE; +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ +# define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif -# define NUMBER 257 -# define VALUE 258 - extern YYSTYPE yylval; -#endif /* not BISON_Y_TAB_H */ --- a/facilities/objects/dcmprivate.h +++ b/facilities/objects/dcmprivate.h @@ -117,11 +117,7 @@ typedef union { } SHORT_WORD; typedef union { -#ifdef __alpha unsigned int l; -#else - unsigned long l; -#endif unsigned char u[4]; } LONG_WORD; --- a/facilities/utility/utility.c +++ b/facilities/utility/utility.c @@ -912,7 +912,9 @@ CONDITION UTL_SetConfigFile(const char* if (configFile == 0 || configFile[0] == '\0') { char* p = getenv("CTN_TARGET"); if (p == NULL) { - return UTL_NO_CTN_TARGET; + /* Debian patch: Can not make operation dependent on Env var */ + /* return UTL_NO_CTN_TARGET; */ + p = "/etc/ctn"; } UTL_configFile = (char*) malloc(strlen(p) + strlen("/runtime/ctn_cfg.txt") + 1); strcpy(UTL_configFile, p); --- a/facilities/xutl/xutl.c +++ b/facilities/xutl/xutl.c @@ -31,7 +31,9 @@ findRuntime(XUTL_STRUCT* s) c = getenv("CTN_TARGET"); if (c == NULL) - c = "/opt/ctn"; + /* Debian patch: conform to debian directory policy */ + /* c = "/opt/ctn"; */ + c = "/etc/ctn"; sprintf(s->runtime, "%s/runtime/fontmap", c); } --- a/facilities/dicom/dicom.h +++ b/facilities/dicom/dicom.h @@ -57,6 +57,8 @@ #ifdef _MSC_VER #include "dicom_platform.h" +#else +#include "intsizes.h" #endif #ifdef __cplusplus @@ -85,14 +87,13 @@ extern "C" { typedef unsigned short U16; /* unsigned, 16 bit */ typedef short S16; /* signed, 16 bit */ -#if LONGSIZE == 64 && INTSIZE == 32 /* Such as an Alpha */ +#if LONGSIZE == 64 && INTSIZE == 32 /* Such as an Alpha */ typedef unsigned int U32; typedef int S32; #elif LONGSIZE == 32 /* Most 32 bit workstations */ typedef unsigned long U32; typedef long S32; - #else /* Something we do not support */ /* The writers of this code assume that we can find a 32 bit integer --- a/facilities/dicom/Makefile +++ b/facilities/dicom/Makefile @@ -8,6 +8,7 @@ library: install: $(INSTALLINCLUDE) ctn_os.h $(DICOM_INCLUDE) $(INSTALLINCLUDE) dicom.h $(DICOM_INCLUDE) + $(INSTALLINCLUDE) intsizes.h $(DICOM_INCLUDE) $(INSTALLINCLUDE) dicom_platform.h $(DICOM_INCLUDE) export: @@ -19,9 +20,10 @@ headerexport: $(INSTALLINCLUDE) dicom_platform.h $(DICOM_INCLUDE) links: rm -f $(DICOM_LIBSRC)/dicom.h $(DICOM_LIBSRC)/dicom_platform.h $(DICOM_LIBSRC)/ctn_os.h - ln -s ../facilities/dicom/ctn_os.h $(DICOM_LIBSRC) - ln -s ../facilities/dicom/dicom.h $(DICOM_LIBSRC) - ln -s ../facilities/dicom/dicom_platform.h $(DICOM_LIBSRC) + ln -sf ../facilities/dicom/ctn_os.h $(DICOM_LIBSRC) + ln -sf ../facilities/dicom/dicom.h $(DICOM_LIBSRC) + ln -sf ../facilities/dicom/intsizes.h $(DICOM_LIBSRC) + ln -sf ../facilities/dicom/dicom_platform.h $(DICOM_LIBSRC) clean: rm -f *.a *.o *.BAK *% core --- a/libsrc/Makefile +++ b/libsrc/Makefile @@ -25,7 +25,7 @@ BASE_OBJS = \ OBJS = $(BASE_OBJS) $(TBL_DB) tblcond.o idb.o idbcond.o OBJS_MBCTN = $(BASE_OBJS) dicom_chr.o $(TBLMB_DB) tblmbcond.o idbmb.o idbmbcond.o xutl_mb.o -BASE_HEADER_FILES = cfg.h condition.h ctn_os.h ctnthread.h dbquery.h decode.h dicom.h \ +BASE_HEADER_FILES = cfg.h condition.h ctn_os.h ctnthread.h dbquery.h decode.h dicom.h intsizes.h \ dicom_ddr.h dicom_ie.h dicom_irs.h dicom_messages.h \ dicom_objects.h dicom_platform.h dicom_print.h dicom_services.h \ dicom_sq.h dicom_uids.h dulfsm.h dulprotocol.h dulsnoop.h \ @@ -34,8 +34,9 @@ icon.h idb.h lst.h manage.h mut.h snp.h tbl_msql.h tbl_psql.h tbl_sqlserver.h tbl_sybase.h tbl_ufs.h \ utility.h xutl.h -HEADER_FILES = $(BASE_HEADER_FILES) tbl.h tbl_msql.h tbl_psql.h tbl_sqlserver.h\ -tbl_sybase.h tbl_ufs.h +HEADER_FILES = $(BASE_HEADER_FILES) +# KMR -- removed these files since BASE_HEADER_FILES has them in their +# tbl.h tbl_msql.h tbl_psql.h tbl_sqlserver.h tbl_sybase.h tbl_ufs.h HEADER_FILES_MBCTN = $(BASE_HEADER_FILES) dicom_chr.h idbmb.h tblmb.h tblmb_psql.h --- a/libsrc/Makefile.psql +++ b/libsrc/Makefile.psql @@ -24,7 +24,7 @@ BASE_OBJS = \ OBJS = $(BASE_OBJS) tbl_psql.o tblcond.o idb.o idbcond.o OBJS_MBCTN = $(BASE_OBJS) dicom_chr.o tblmb_psql.o tblmbcond.o idbmb.o idbmbcond.o xutl_mb.o -BASE_HEADER_FILES = cfg.h condition.h ctn_os.h ctnthread.h dbquery.h decode.h dicom.h \ +BASE_HEADER_FILES = cfg.h condition.h ctn_os.h ctnthread.h dbquery.h decode.h dicom.h intsizes.h \ dicom_ddr.h dicom_ie.h dicom_irs.h dicom_messages.h \ dicom_objects.h dicom_platform.h dicom_print.h dicom_services.h \ dicom_sq.h dicom_uids.h dulfsm.h dulprotocol.h dulsnoop.h \ debian/patches/series0000644000000000000000000000020712237111010012015 0ustar 10_all_patches.patch 11_csh-to-bash.patch 20_mysql_4.2.patch 20_prevent_installing_examples.patch 30_hardening.patch 40_spelling.patch debian/ctn-dev.dirs0000644000000000000000000000006412214301032011375 0ustar usr usr/lib usr/lib/ctn usr/include usr/include/ctn debian/compat0000644000000000000000000000000212236716501010367 0ustar 9 debian/docs0000644000000000000000000000000712214301032010022 0ustar README debian/intsizes_h.sh0000644000000000000000000000312112214301032011662 0ustar #!/bin/bash #-------------------------- =+- Shell script -+= -------------------------- # # @file intsizes_h.sh # @date Fri Jan 26 15:18:19 2007 # @brief # # # Yaroslav Halchenko CS@UNM, CS@NJIT # web: http://www.onerussian.com & PSYCH@RUTGERS # e-mail: yoh@onerussian.com ICQ#: 60653192 # # DESCRIPTION (NOTES): # # COPYRIGHT: Yaroslav Halchenko 2007 # # LICENSE: # # 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 2 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1301, USA. # # On Debian system see /usr/share/common-licenses/GPL for the full license. # #-----------------\____________________________________/------------------ export `debian/test-sizes` cat > debian/intsizes.h <