--- exiftags-1.01.orig/debian/docs
+++ exiftags-1.01/debian/docs
@@ -0,0 +1 @@
+README
--- exiftags-1.01.orig/debian/watch
+++ exiftags-1.01/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://johnst.org/sw/exiftags/exiftags-([\.\d]*)\.tar\.gz
--- exiftags-1.01.orig/debian/compat
+++ exiftags-1.01/debian/compat
@@ -0,0 +1 @@
+9
--- exiftags-1.01.orig/debian/README.source
+++ exiftags-1.01/debian/README.source
@@ -0,0 +1,58 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
+
+    for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+        if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+                export QUILT_PATCHES=debian/patches
+                break
+        fi
+    done
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+    quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+    quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches.  Then, for every file that will be modified by this patch,
+run:
+
+    quilt add <file>
+
+before editing those files.  You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly.  After editing the files, run:
+
+    quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+    quilt import -P <patch> /path/to/patch
+    quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches.  The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+    quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.
--- exiftags-1.01.orig/debian/dirs
+++ exiftags-1.01/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/man/man1
--- exiftags-1.01.orig/debian/copyright
+++ exiftags-1.01/debian/copyright
@@ -0,0 +1,15 @@
+This package was debianized by Mike Mattice <mattice@debian.org> on
+Sat, 28 Sep 2002 21:30:35 -0500.
+
+It was downloaded from http://johnst.org/sw/exiftags/
+
+Upstream Authors: Eric M. Johnston, emj@postal.net
+
+Copyright:
+
+2002 Eric M. Johnston
+
+Feel free to use the source within the confines of its BSD license.
+
+On Debian GNU/Linux systems, the complete text of the BSD License 
+can be found in `/usr/share/common-licenses/BSD'.
--- exiftags-1.01.orig/debian/changelog
+++ exiftags-1.01/debian/changelog
@@ -0,0 +1,109 @@
+exiftags (1.01-5.4.201403221605) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Sat, 22 Mar 2014 16:05:03 +0100
+
+exiftags (1.01-5) unstable; urgency=low
+
+  * debian/control:
+    - Bumped debhelper compat level to 9 for automatic importing of
+      dpkg-buildflags-provided compiler flags.
+    - Bumped Standards-Version to 3.9.2, no changes needed.
+  * debian/patches:
+    - New patch 060-Makefile-harden.patch to make upstream Makefile honor
+      CPPFLAGS. Provided by Moritz Muehlenhoff. (Closes: #654804)
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org>  Fri, 06 Jan 2012 20:08:09 +0200
+
+exiftags (1.01-4) unstable; urgency=low
+
+  * debian/control:
+    - Make short description do not start with uppercase.
+    - Updated my mail address.
+    - Bumped Standards-Version to 3.9.1, no changes needed.
+  * debian/README.source:
+    - Added with standard instructions how to use quilt.
+
+ -- Eugene V. Lyubimkin <jackyf@debian.org>  Fri, 11 Feb 2011 20:55:40 +0200
+
+exiftags (1.01-3) unstable; urgency=low
+
+  * debian/rules:
+    - Removed '.PHONY' entry for binary-arch and binary-indep.
+      (Closes: #496032) 
+    - Added explicit 'build-arch' rule depending on 'build' rule. Thanks to
+      George Danchev for pointing this issue.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com>  Sat, 23 Aug 2008 12:04:23 +0300
+
+exiftags (1.01-2) unstable; urgency=low
+
+  * New maintainer. Mike Mattice, Nico Golde, Anibal Monsalve Salazar, thanks
+    for work! (Closes: #494593)
+  * debian/rules:
+    - Some cleanup.
+    - Converted to debhelper v7 style.
+    - Removed manual processing of 'nostrip' option, it now handled
+      automatically by debhelper.
+  * debian/patches:
+    - 00-Makefile.diff renamed to 001-makefile.patch.
+    - 01-492566-exifgps.c.diff renamed to 010-492566-exifgps.c.diff.
+    - Added 050-hyphens-to-minuses-in-man.patch. It substitutes hyphens with
+      minuses in exiftime.1.
+    - Extended 001-makefile.patch by removing 'CFLAGS' assign from Makefile.
+      This allows to build with dpkg-buildpackage-provided CFLAGS. Package now
+      builds with -O2 instead of -O0 by default.
+
+ -- Eugene V. Lyubimkin <jackyf.devel@gmail.com>  Fri, 15 Aug 2008 20:44:07 +0300
+
+exiftags (1.01-1) unstable; urgency=low
+
+  * QA upload.
+  * Maintainer is Debian QA Group <packages@qa.debian.org> 
+  * Build depends on debhelper (>= 7)
+  * Standards-Version is 3.8.0
+  * Add homepage control header
+  * Depends on ${misc:Depends}
+  * Add debian/watch
+  * Add patch 01-492566-exifgps.c.diff 
+    by Frank Heckenbach <f.heckenbach@fh-soft.de>
+    to fix wrong string length after index and sub; closes: #492566
+  * Add 00-Makefile.diff to not patch Makefile directly
+  * Fix the following lintian issues:
+    W: debian-rules-sets-DH_COMPAT line 9
+    W: debian-rules-ignores-make-clean-error line 45
+    W: copyright-lists-upstream-authors-with-dh_make-boilerplate
+
+ -- Anibal Monsalve Salazar <anibal@debian.org>  Wed, 13 Aug 2008 19:26:28 +1000
+
+exiftags (1.01-0.1) unstable; urgency=high
+
+  * Non-maintainer upload by security team.
+  * New upstream release (Closes: #457062):
+    - CVE-2007-6356: exiftags before 1.01 allows attackers to cause a denial
+      of service (infinite loop) via recursive IFD references in the EXIF data
+      in a JPEG image.
+    - CVE-2007-6355: Unspecified vulnerability in exiftags before 1.01 has
+      unknown impact and attack vectors, resulting from a "field
+      offset overflow,"
+
+ -- Nico Golde <nion@debian.org>  Thu, 03 Jan 2008 20:10:57 +0100
+
+exiftags (1.00-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mike Mattice <mattice@debian.org>  Tue, 26 Dec 2006 09:20:00 -0600
+
+exiftags (0.98-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mike Mattice <mattice@debian.org>  Sat, 14 Feb 2004 19:29:53 -0600
+
+exiftags (0.94-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Mike Mattice <mattice@debian.org>  Sat, 28 Sep 2002 21:30:35 -0500
--- exiftags-1.01.orig/debian/control
+++ exiftags-1.01/debian/control
@@ -0,0 +1,18 @@
+Source: exiftags
+Section: graphics
+Priority: optional
+Maintainer: Eugene V. Lyubimkin <jackyf@debian.org>
+Build-Depends: debhelper (>= 7), quilt
+Standards-Version: 3.9.2
+Homepage: http://johnst.org/sw/exiftags/
+
+Package: exiftags
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: utility to read Exif tags from a digital camera JPEG file
+ The exiftags utility parses a specified JPEG file or, by default, its 
+ standard input, looking for a JPEG APP1 section containing Exif 
+ (Exchangeable Image File) data. The properties contained in these 
+ data are then printed to the standard output. Digital cameras typically 
+ add Exif data to the image files they produce, containing information 
+ about the camera and digitized image.
--- exiftags-1.01.orig/debian/rules
+++ exiftags-1.01/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+#export DH_VERBOSE=1
+
+include /usr/share/quilt/quilt.make
+
+%:
+	dh $@
+
+clean: unpatch
+	dh clean
+
+build: build-stamp
+build-stamp: patch
+	dh build
+
+install: build
+	dh install --before dh_auto_install
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/exiftags
+	dh install --after dh_auto_install
+
+binary-arch: build
+
+binary: binary-indep binary-arch
+.PHONY: clean install
--- exiftags-1.01.orig/debian/patches/series
+++ exiftags-1.01/debian/patches/series
@@ -0,0 +1,4 @@
+001-makefile.patch
+010-492566-exifpgs.c.patch
+050-hyphens-to-minuses-in-man.patch
+060-Makefile-harden.patch
--- exiftags-1.01.orig/debian/patches/060-Makefile-harden.patch
+++ exiftags-1.01/debian/patches/060-Makefile-harden.patch
@@ -0,0 +1,27 @@
+diff -aur exiftags-1.01.orig/Makefile exiftags-1.01/Makefile
+--- exiftags-1.01.orig/Makefile	2012-01-05 22:09:03.000000000 +0100
++++ exiftags-1.01/Makefile	2012-01-05 22:10:21.000000000 +0100
+@@ -27,19 +27,19 @@
+ 
+ .SUFFIXES: .o .c
+ .c.o:
+-	$(CC) $(CFLAGS) -o $@ -c $<
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
+ 
+ 
+ all: exiftags exifcom exiftime
+ 
+ exiftags: exiftags.o $(OBJS) $(MKRS) $(HDRS)
+-	$(CC) $(CFLAGS) -o $@ exiftags.o $(OBJS) $(MKRS) -lm
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exiftags.o $(OBJS) $(MKRS) -lm $(LDFLAGS)
+ 
+ exifcom: exifcom.o $(OBJS) $(NOMKRS) $(HDRS)
+-	$(CC) $(CFLAGS) -o $@ exifcom.o $(OBJS) $(NOMKRS) -lm
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exifcom.o $(OBJS) $(NOMKRS) -lm $(LDFLAGS)
+ 
+ exiftime: exiftime.o timevary.o $(OBJS) $(NOMKRS) $(HDRS)
+-	$(CC) $(CFLAGS) -o $@ exiftime.o timevary.o $(OBJS) $(NOMKRS) -lm
++	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ exiftime.o timevary.o $(OBJS) $(NOMKRS) -lm $(LDFLAGS)
+ 
+ clean:
+ 	@rm -f $(OBJS) $(MKRS) $(NOMKRS) exiftags.o exifcom.o exiftime.o \
--- exiftags-1.01.orig/debian/patches/050-hyphens-to-minuses-in-man.patch
+++ exiftags-1.01/debian/patches/050-hyphens-to-minuses-in-man.patch
@@ -0,0 +1,40 @@
+Index: exiftags-1.01/exiftime.1
+===================================================================
+--- exiftags-1.01.orig/exiftime.1	2008-08-15 21:05:13.742174773 +0300
++++ exiftags-1.01/exiftime.1	2008-08-15 21:06:29.309225125 +0300
+@@ -200,7 +200,7 @@
+ The command
+ .IP
+ .nf
+-exiftime -tcd example1.jpg
++exiftime \-tcd example1.jpg
+ .fi
+ .PP
+ will display:
+@@ -213,7 +213,7 @@
+ The command
+ .IP
+ .nf
+-exiftime -v+3H example1.jpg
++exiftime \-v+3H example1.jpg
+ .fi
+ .PP
+ will adjust each time forward by three hours and display:
+@@ -227,7 +227,7 @@
+ The command
+ .IP
+ .nf
+-exiftime -v+5d -v-7M -fw -tg *.jpg
++exiftime \-v+5d \-v\-7M \-fw \-tg *.jpg
+ .fi
+ .PP
+ will adjust the date ahead five days and the time back seven minutes and
+@@ -245,7 +245,7 @@
+ The command
+ .IP
+ .nf
+-exiftime -l -tdg *.jpg
++exiftime \-l \-tdg *.jpg
+ .fi
+ .PP
+ will list all files that match "*.jpg", one per line, in ascending timestamp
--- exiftags-1.01.orig/debian/patches/010-492566-exifpgs.c.patch
+++ exiftags-1.01/debian/patches/010-492566-exifpgs.c.patch
@@ -0,0 +1,65 @@
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492566
+
+From: Frank Heckenbach <f.heckenbach@fh-soft.de>
+To: submit@bugs.debian.org
+Subject: gawk: wrong string length after index and sub
+Date: Sun, 27 Jul 2008 12:18:03 +0200
+
+Package: exiftags
+Version: 0.98-1.1+etch1
+Severity: normal
+Tags: patch
+
+The number of decimal digits used to display GPS values is computed
+wrongly. The base-10 logarithm needs to be rounded up to get the
+correct number.
+
+E.g., in an example I had n=297, d=5. Since log10(d)=0.69..., it's
+rounded to 0, i.e. the fraction is displayed with no decimals (59).
+Rounding up the logarithm to 1 will correctly display 1 decimal
+(59.4).
+
+Index: exiftags-1.01/exifgps.c
+===================================================================
+--- exiftags-1.01.orig/exifgps.c	2008-08-15 21:07:22.188558952 +0300
++++ exiftags-1.01/exifgps.c	2008-08-15 21:07:23.456543290 +0300
+@@ -287,7 +287,7 @@
+ 			deg = (double)n / (double)d;
+ 			if (d != 1)
+ 				sprintf(fmt, "%%s %%.%df%%s ",
+-				    (int)log10((double)d));
++				    (int)ceil(log10((double)d)));
+ 		}
+ 
+ 		/* Minutes. */
+@@ -302,7 +302,7 @@
+ 		} else {
+ 			min = (double)n / (double)d;
+ 			if (d != 1) {
+-				sprintf(buf, "%%.%df'", (int)log10((double)d));
++				sprintf(buf, "%%.%df'", (int)ceil(log10((double)d)));
+ 				strcat(fmt, buf);
+ 			} else
+ 				strcat(fmt, "%.f'");
+@@ -324,7 +324,7 @@
+ 		} else {
+ 			sec = (double)n / (double)d;
+ 			if (d != 1) {
+-				sprintf(buf, " %%.%df", (int)log10((double)d));
++				sprintf(buf, " %%.%df", (int)ceil(log10((double)d)));
+ 				strcat(fmt, buf);
+ 			} else
+ 				strcat(fmt, " %.f");
+@@ -369,10 +369,10 @@
+ 			if (!d) break;
+ 
+ 			if (!i)
+-				sprintf(fmt, "%%02.%df", (int)log10((double)d));
++				sprintf(fmt, "%%02.%df", (int)ceil(log10((double)d)));
+ 			else
+ 				sprintf(fmt, ":%%02.%df",
+-				    (int)log10((double)d));
++				    (int)ceil(log10((double)d)));
+ 
+ 			snprintf(buf, 8, fmt, (double)n / (double)d);
+ 			strcat(prop->str, buf);
--- exiftags-1.01.orig/debian/patches/001-makefile.patch
+++ exiftags-1.01/debian/patches/001-makefile.patch
@@ -0,0 +1,32 @@
+Index: exiftags-1.01/Makefile
+===================================================================
+--- exiftags-1.01.orig/Makefile	2008-08-15 21:07:22.288556298 +0300
++++ exiftags-1.01/Makefile	2008-08-15 21:25:39.810763310 +0300
+@@ -15,14 +15,11 @@
+ # A few parameters...
+ #
+ CC=cc
+-DEBUG=
+-CFLAGS=$(DEBUG)
+-DESTDIR=
+ 
+-prefix=/usr/local
+-datadir=$(DESTDIR)$(prefix)
++prefix=/usr/
++datadir=$(DESTDIR)$(prefix)/share
+ bindir=$(DESTDIR)$(prefix)/bin
+-mandir=$(datadir)/man
++mandir=$(datadir)/man/man1
+ 
+ OBJS=exif.o tagdefs.o exifutil.o exifgps.o jpeg.o
+ HDRS=exif.h exifint.h jpeg.h makers.h
+@@ -51,6 +48,6 @@
+ install: all
+ 	cp exiftags exifcom exiftime $(bindir)
+ 	chmod 0755 $(bindir)/exiftags $(bindir)/exifcom $(bindir)/exiftime
+-	cp exiftags.1 exifcom.1 exiftime.1 $(mandir)/man1
+-	chmod 0644 $(mandir)/man1/exiftags.1 $(mandir)/man1/exifcom.1 \
+-	$(mandir)/man1/exiftime.1
++	mkdir -p $(mandir)
++	cp exiftags.1 exifcom.1 exiftime.1 $(mandir)
++	chmod 0644 $(mandir)/exiftags.1 $(mandir)/exifcom.1 $(mandir)/exiftime.1
