debian/0000755000000000000000000000000012162532073007167 5ustar debian/pngcheck.1.pod0000644000000000000000000000711112162532073011614 0ustar # Copyright # # Copyright (C) 2009-2013 Jari Aalto # # 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, see . # # Description # # To learn what TOP LEVEL section to use in manual pages, # see POSIX/Susv standard and "tility Description Defaults" at # http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_11 # # This is manual page in Perl POD format. Read more at # http://perldoc.perl.org/perlpod.html or run command: # # perldoc perlpod | less # # To check the syntax: # # podchecker *.pod # # Create manual page with command: # # pod2man PAGE.N.pod > PAGE.N =pod =head1 NAME pngcheck - Test PNG image files for corruption, display size, type, compression info =head1 SYNOPSIS pngcheck [-vqt7f] file.png [file.png [...]] pngcheck [-vqt7f] file.mng [file.mng [...]] pngcheck -{sx}[vqt7f] file-containing-PNGs... Can be used in pipe: ... | pngcheck [-sx][vqt7f] =head1 OPTIONS =over 4 =item B<-7> Print contents of text chunks, escape chars >=128 (for 7-bit terminals). =item B<-f> Force continuation even after major errors. =item B<-p> Display contents of PLTE, tRNS, hIST, sPLT and PPLT (can be used with B<-q>). =item B<-q> Test quietly (only output errors). =item B<-s> Search for PNGs within another file. =item B<-t> Display contents of tEXt chunks (can be used with B<-q>). =item B<-v> test verbosely (print most chunk data). =item B<-x> Search for PNGs and extract them when found. =back =head1 DESCRIPTION pngcheck is the official PNG tester and debugger. Originally designed simply to test the CRCs within a PNG image file (e.g., to check for ASCII rather than binary transfer), it has been extended to check and optionally print almost all the information about a PNG image and to verify that it conforms to the PNG specification. It also includes partial support for MNG animations. It can dump the chunk-level information in the image in human-readable form. For example, it can be used to print the basic stats about an image (dimensions, bit depth, etc.); to list the color and transparency info in its palette; or to extract the embedded text annotations. All PNG and JNG chunks are supported, plus almost all MNG chunks (everything but PAST, DISC, tERm, DROP, DBYK, and ORDR). This is a command-line program with batch capabilities (e.g., pngcheck *.png). =head1 ENVIRONMENT None. =head1 FILES None. =head1 SEE ALSO pngchunkdesc(1) pngchunks(1) pngcomp(1) pngcp(1) pngcrush(1) pnginfo(1) pngmeta(1) pngnq(1) pngquant(1) pngsplit(1) =head1 AUTHORS Program was written by Greg Roelofs , . This manual page was written by Kevin M. Rosenberg for the Debian GNU system (but may be used by others). Updated and converted to Perl POD source format by Jari Aalto . Released under license GNU GPL v2 or (at your option) any later version. For more information about license, visit . =cut debian/control0000644000000000000000000000227412162532073010577 0ustar Source: pngcheck Section: graphics Priority: optional Maintainer: Jari Aalto Build-Depends: debhelper (>= 9), zlib1g-dev Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/pngcheck.git Vcs-Git: git://anonscm.debian.org/collab-maint/pngcheck.git Homepage: http://freshmeat.net/projects/pngcheck Package: pngcheck Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: print info and check PNG, JNG and MNG files pngcheck verifies the integrity of PNG, JNG and MNG files (by checking the internal 32-bit CRCs or checksums) and optionally dumps almost all of the chunk-level information in the image in human-readable form. For example, it can be used to print the basic stats about an image (dimensions, bit depth, etc.); to list the color and transparency info in its palette; or to extract the embedded text annotations. All PNG and JNG chunks are supported, plus almost all MNG chunks (everything but PAST, DISC, tERm, DROP, DBYK, and ORDR). This is a command-line program with batch capabilities (e.g., pngcheck *.png). . Also includes pngsplit which can split a PNG, MNG or JNG file into individual, numbered chunks. debian/watch0000644000000000000000000000006712162532073010223 0ustar version=3 http://sf.net/png-mng/pngcheck-(.*)\.tar\.gz debian/install0000644000000000000000000000004612162532073010560 0ustar pngcheck usr/bin gpl/pngsplit usr/bin debian/source/0000755000000000000000000000000012162532073010467 5ustar debian/source/format0000644000000000000000000000001412162532073011675 0ustar 3.0 (quilt) debian/pngsplit.1.pod0000644000000000000000000000421112162532073011670 0ustar # Copyright # # Copyright (C) 2013 Jari Aalto # # 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, see . # # Description # # To learn what TOP LEVEL section to use in manual pages, # see POSIX/Susv standard and "tility Description Defaults" at # http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_11 # # This is manual page in Perl POD format. Read more at # http://perldoc.perl.org/perlpod.html or run command: # # perldoc perlpod | less # # To check the syntax: # # podchecker *.pod # # Create manual page with command: # # pod2man PAGE.N.pod > PAGE.N =pod =head1 NAME pngsplit - split a PNG file into individual chunk-files (and check CRCs) =head1 SYNOPSIS [options] pngfile ... =head1 OPTIONS =over 4 =item B<--force> Overwrite existing output files =item B<--quiet> Be quiet. =item B<--verbose> Display more status messages =back =head1 DESCRIPTION Split a PNG, MNG or JNG file into individual, numbered chunks like foo.png.0000.sig, foo.png.0001.IHDR, etc. =head1 ENVIRONMENT None. =head1 FILES None. =head1 SEE ALSO pngcheck(1) pngchunkdesc(1) pngchunks(1) pngcomp(1) pngcp(1) pngcrush(1) pnginfo(1) pngmeta(1) pngnq(1) pngquant(1) =head1 AUTHORS Program was written by Greg Roelofs , . This manual page was written by Jari Aalto . Released under license GNU GPL v2 or (at your option) any later version. For more information about license, visit . =cut debian/clean0000644000000000000000000000004112162532073010167 0ustar pngcheck gpl/pngsplit debian/*.1 debian/copyright0000644000000000000000000000473412162532073011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: pngcheck Upstream-Contact: Greg Roelofs , Source: http://freshmeat.net/projects/pngcheck X-Source: http://sourceforge.net/projects/png-mng http://www.libpng.org/pub/png/apps/pngcheck.html X-Upstream-Vcs: None at sourceforge X-Upstream-Bugs: No bug tracker. The Devel lists exist, but posts are allowed only from subscribers: http://dir.gmane.org/gmane.comp.graphics.png.devel https://lists.sourceforge.net/mailman/listinfo/png-mng-implement Comment: Upstream's personal homepage is at http://www.gregroelofs.com Files: * Copyright: 1995-2005 Greg Roelofs , 1995-2005 Alexander Lehmann 1995-2005 Andreas Dilger 1995-2005 Glenn Randers-Pehrson 1995-2005 John Bowler 1995-2005 Tom Lane License: Custom-MIT-like [File: pngcheck.c] . Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty. Files: gpl/png-fix-IDAT-windowsize.c gpl/pngsplit.c Copyright: 2005-2006 Greg Roelofs , License: GPL-2+ Files: debian/* Copyright: 2009-2013 Jari Aalto 2008 Marco Rodrigues 2006 Lucas Wall 2004 Kevin M. Rosenberg License: GPL-2+ License: GPL-2+ This package 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 package 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, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-2". debian/rules0000755000000000000000000000113412162532073010246 0ustar #!/usr/bin/make -f PACKAGE = pngcheck PACKAGE2 = pngsplit export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CXXFLAGS_MAINT_APPEND = -Wall -pedantic -DUSE_ZLIB export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed LIBS = -lz man: $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE2) makeman override_dh_auto_build: man $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \ -o $(PACKAGE) $(PACKAGE).c $(LIBS) cd gpl && \ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) \ -o $(PACKAGE2) $(PACKAGE2).c $(LIBS) %: dh $@ .PHONY: man # End of file debian/patches/0000755000000000000000000000000012162532073010616 5ustar debian/patches/10-pngsplit-format-strings.patch0000644000000000000000000000215112162532073016671 0ustar From: Jari Aalto Subject: Correct fomat strings fro hardened build flags --- gpl/pngsplit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/gpl/pngsplit.c +++ b/gpl/pngsplit.c @@ -141,8 +141,8 @@ 0 == strncmp( argv[argn], "-quiet", 2 ) ) verbose = 0; else { - fprintf(stderr, pngsplit_hdr); - fprintf(stderr, pngsplit_usage); + fprintf(stderr, "%s", pngsplit_hdr); + fprintf(stderr, "%s", pngsplit_usage); fflush(stderr); return 1; } @@ -150,8 +150,8 @@ } if ( argn == argc ) { - fprintf(stderr, pngsplit_hdr); - fprintf(stderr, pngsplit_usage); + fprintf(stderr, "%s", pngsplit_hdr); + fprintf(stderr, "%s", pngsplit_usage); fflush(stderr); return 5; } else { @@ -162,7 +162,7 @@ /*============================= MAIN LOOP =============================*/ - fprintf(stdout, pngsplit_hdr); + fprintf(stdout, "%s", pngsplit_hdr); fflush(stdout); while (argn <= argc) { debian/patches/series0000644000000000000000000000010012162532073012022 0ustar 10-pngsplit-format-strings.patch 20-pngsplit-long-options.patch debian/patches/20-pngsplit-long-options.patch0000644000000000000000000000331012162532073016341 0ustar From: Jari Aalto Subject: Use GNU --long option syntax --- gpl/pngsplit.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) --- a/gpl/pngsplit.c +++ b/gpl/pngsplit.c @@ -86,8 +86,9 @@ static const char *pngsplit_usage = "\ usage: pngsplit [options] pngfile [pngfile [...]]\n\ options:\n\ - -force overwrite existing output files\n\ - -verbose print more status messages (synonym: -noquiet)\n\n\ + --force Overwrite existing output files\n\ + --quiet Be quiet\n\ + --verbose Display more status messages\n\n\ Split a PNG, MNG or JNG file into individual, numbered chunks (filenames\n\ \"foo.png.0000.sig\", \"foo.png.0001.IHDR\", etc.).\n"; @@ -132,13 +133,13 @@ while ( argn < argc && argv[argn][0] == '-' && argv[argn][1] != '\0' ) { if ( 0 == strncmp( argv[argn], "-force", 2 ) ) force = TRUE; - else if ( 0 == strncmp( argv[argn], "-noforce", 4 ) ) + else if ( 0 == strncmp( argv[argn], "--noforce", 4 ) ) force = FALSE; - else if ( 0 == strncmp( argv[argn], "-verbose", 2 ) || - 0 == strncmp( argv[argn], "-noquiet", 4 ) ) + else if ( 0 == strncmp( argv[argn], "--verbose", 2 ) || + 0 == strncmp( argv[argn], "--noquiet", 4 ) ) ++verbose; - else if ( 0 == strncmp( argv[argn], "-noverbose", 4 ) || - 0 == strncmp( argv[argn], "-quiet", 2 ) ) + else if ( 0 == strncmp( argv[argn], "--noverbose", 4 ) || + 0 == strncmp( argv[argn], "--quiet", 2 ) ) verbose = 0; else { fprintf(stderr, "%s", pngsplit_hdr); debian/manpages0000644000000000000000000000001312162532073010677 0ustar debian/*.1 debian/pod2man.mk0000644000000000000000000000332112162532073011057 0ustar # pod2man.mk -- Makefile portion to convert *.pod files to manual pages # # Copyright information # # Copyright (C) 2008-2013 Jari Aalto # # 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, see . # # Description # # Convert *.pod files to manual pages. Write this to 'install' # target: # # install: build $(MANPAGE) ifneq (,) This makefile requires GNU Make. endif # This variable *must* be set when calling PACKAGE ?= package RELEASE ?= $(PACKAGE) # Optional variables to set MANSECT ?= 1 PODCENTER ?= $$(date "+%Y-%m-%d") # Directories MANSRC = MANDEST = $(MANSRC) MANPOD = $(MANSRC)$(PACKAGE).$(MANSECT).pod MANPAGE = $(MANDEST)$(PACKAGE).$(MANSECT) POD2MAN = pod2man POD2MAN_FLAGS = --utf8 makeman: $(MANPAGE) $(MANPAGE): $(MANPOD) # make target - create manual page from a *.pod page podchecker $(MANPOD) LC_ALL=C $(POD2MAN) $(POD2MAN_FLAGS) \ --center="$(PODCENTER)" \ --name="$(PACKAGE)" \ --section="$(MANSECT)" \ --release="$(RELEASE)" \ $(MANPOD) \ > $(MANPAGE) && \ rm -f pod*.tmp # End of of Makefile part debian/compat0000644000000000000000000000000212162532073010365 0ustar 9 debian/changelog0000644000000000000000000001272412162532073011047 0ustar pngcheck (2.3.0-7) unstable; urgency=low * debian/control - (pngcheck::Depends): Remove unused libpng12-0 (Closes: #709354). Thanks to Jakub Wilk . - (Vcs-*): Update to anonscm.debian.org. -- Jari Aalto Sat, 01 Jun 2013 22:48:29 +0300 pngcheck (2.3.0-6) unstable; urgency=low * debian/clean - Add gpl/pngsplit. * debian/control - (Build-Depends): Add zlib1g-dev (Closes: #709353). Remove unused libpng-dev (Closes: #709354). Thanks to Jakub Wilk . - (Standards-Version): Update to 3.9.4. * debian/copyright - Update year. - Change X-Comment to standard Comment header. - Update licence name from MIT to more descriptive Custom-MIT-like. - Add years to pngsplit.c - Update upstream homepage. * debian/install - Rename from pngcheck.install. Install pngsplit. * debian/manpages - Rename from pngcheck.manpages. * debian/patches - (10): New. Correct format string in pngsplit. - (20): New. Use GNU --long options in pngsplit. * debian/pngcheck.1.pod - (AUTHORS): Replace template with program author (Closes: #709349). - (DESCRIPTION): Fix typo (Closes: #709350). - (OPTIONS): Order alphabetically. * debian/pngsplit.1.pod - New. * debian/pod2man.mk - Remove sed, use --release. Thanks to Jakub Wilk . * debian/rules - (override_dh_auto_build): Change gcc to $(CC) variable. Build new utility pngsplit. -- Jari Aalto Thu, 23 May 2013 09:03:35 +0300 pngcheck (2.3.0-5) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. * debian/debian-compile.mk - Delete. Not used. * debian/rules - Enable all hardening flags. - Change to DEB_CXXFLAGS_* flags and improve build target to include CPPFLAGS (Closes: #662803). Patch thanks to Simon Ruderich . -- Jari Aalto Wed, 07 Mar 2012 00:46:04 -0500 pngcheck (2.3.0-4) unstable; urgency=low * debian/compat - Update to 9 * debian/control - (Build-Depends): update to debhelper 9, dpkg-dev 1.16.1. Change libpng12-dev to libpng-dev; libpng 1.5 transition . - (Standards-Version): Update to 3.9.3. * debian/copyright - Update to format 1.0. * debian/rules - Delete unnecessary targets. - Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Mon, 05 Mar 2012 04:00:59 -0500 pngcheck (2.3.0-3) unstable; urgency=medium * debian/control - (Build-Depends): use debhelper 7.1 due to override in debian/rules (lintian). - (binary-arch): Add target needed for 'debuild -B'. * debian/rules - Factor away more rules handled by dh(1). - (override_dh_auto_build): move CFLAGS after gcc(1) call. - (binary-arch): Add dh_install to make sure main binary is installed (grave; Closes: #564629). -- Jari Aalto Thu, 14 Jan 2010 18:00:11 +0200 pngcheck (2.3.0-2) unstable; urgency=low * Move to format: 3.0 (quilt). * debian/clean - Move content from debian/rules for dh(1). * debian/control - (Depends): add ${misc:Depends} for debhelper. * debian/copyright - Minor layout updates. * debian/debian-compile.mk - Rename from debian/debian-vars.mk. * debian/pngcheck.{install,manpages} - Move content from debian/rules for dh(1). * debian/pngcheck.1.pod - Add copyright. * debian/rules - Remove dpatch. - Remove rules obsoleted by dh(1). * debian/source/format - New file. -- Jari Aalto Sat, 19 Dec 2009 17:03:49 +0200 pngcheck (2.3.0-1) unstable; urgency=low * New upstream release (Closes: #391523). * debian/control: - (Build-Depends): remove unused dpatch. - (Standards-Version): update to 3.8.3. -- Jari Aalto Wed, 02 Dec 2009 14:02:15 +0000 pngcheck (2.0.0-2) unstable; urgency=low * New maintainer (Closes: #540920). * debian/compat: - update to 7. * debian/control - (Build-Depends): update debhelper 7. - (Description): new first line. - (Homepage): point to Freshmeat. - (Section): move from devel to graphics (Closes: #358132). - (Standards-Version): update to 3.8.2. - (Vcs-*): new fields. * debian/copyright - Update to latest template. - Update contact addresses and source code URLs. * debian/rules - (install): use dh_prep (lintian). * debian/*.mk - new helper macros. * debian/*.pod - Convert old *.1 page into maintainable POD. - (DESCRIPTION): Add one more paragraph. - (SEE ALSO): add new section. -- Jari Aalto Tue, 11 Aug 2009 20:21:20 +0000 pngcheck (2.0.0-1.1) unstable; urgency=low * Non-maintainer upload. * debian/rules: + Fix bashism (Closes: #477614). * debian/control: + Add Homepage field. -- Marco Rodrigues Sun, 15 Jun 2008 21:04:57 +0100 pngcheck (2.0.0-1) unstable; urgency=low * New upstream release. (closes: #355222) -- Lucas Wall Sat, 4 Mar 2006 10:26:04 -0300 pngcheck (1.99.3-2) unstable; urgency=low * New maintainer. (closes: #297442) -- Lucas Wall Tue, 1 Mar 2005 13:28:18 -0300 pngcheck (1.99.3-1) unstable; urgency=low * Initial upload -- Kevin M. Rosenberg Wed, 18 Aug 2004 07:20:10 -0600 debian/dirs0000644000000000000000000000001012162532073010042 0ustar usr/bin