--- dans-gdal-scripts-0.16.orig/debian/dirs
+++ dans-gdal-scripts-0.16/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- dans-gdal-scripts-0.16.orig/debian/control
+++ dans-gdal-scripts-0.16/debian/control
@@ -0,0 +1,22 @@
+Source: dans-gdal-scripts
+Section: science
+Priority: extra
+Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
+Uploaders: Francesco Paolo Lovergine <frankie@debian.org>
+Build-Depends: debhelper (>= 7), autotools-dev, libgdal1-dev, libproj-dev, libboost1.42-dev, dpatch
+Standards-Version: 3.8.4
+Homepage: http://www.gina.alaska.edu/projects/gina-tools
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-grass/packages/dans-gdal-scripts/
+Vcs-Svn: svn://svn.debian.org/pkg-grass/packages/dans-gdal-scripts/
+
+Package: dans-gdal-scripts
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Provides: gdal-contrib
+Recommends: gdal-bin
+Description: GDAL contributed tools by Geographic Information Network of Alaska
+ Dan Stahlke's GDAL contributed tools are a collection of useful programs to
+ perform common raster operations. The included tools are:
+ gdal_contrast_stretch, gdal_dem2rgb, gdal_get_projected_bounds,
+ gdal_landsat_pansharpi, gdal_list_corners, gdal_merge_simple, gdal_merge_vrt 	
+ gdal_raw2geotiff, gdal_trace_outline, gdal_wkt_to_mask, gdal_make_ndv_mask.
--- dans-gdal-scripts-0.16.orig/debian/rules
+++ dans-gdal-scripts-0.16/debian/rules
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
+include /usr/share/dpatch/dpatch.make
+
+config.status: patch configure
+	dh_testdir
+	# Add here commands to configure the package.
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	dh_auto_configure
+
+build: build-stamp
+
+build-stamp:  config.status 
+	dh_testdir
+	
+	# Add here commands to compile the package.
+	dh_auto_build
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	
+	# Add here commands to clean up after the build process.
+	dh_auto_clean	
+	rm -f config.sub config.guess
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep  
+	dh_installdirs
+	
+	# Add here commands to install the package into debian/dans-gdal-scripts.
+	dh_auto_install
+	
+# Build architecture-independent files here.
+binary-indep: install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+	dh_installman debian/dans-gdal-scripts.1
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install patch unpatch
--- dans-gdal-scripts-0.16.orig/debian/watch
+++ dans-gdal-scripts-0.16/debian/watch
@@ -0,0 +1,4 @@
+# See uscan(1) for format
+# Compulsory line, this is a version 3 file
+version=3
+http://www.gina.alaska.edu/projects/gina-tools/ \/documents\/dans-gdal-scripts-([\d\.]+)\.tar\.gz
--- dans-gdal-scripts-0.16.orig/debian/README.source
+++ dans-gdal-scripts-0.16/debian/README.source
@@ -0,0 +1,15 @@
+GDAL source for Debian
+----------------------
+
+This package uses dpatch 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 get detailed instructions on how to apply the series of patches
+and modify them, please read /usr/share/doc/dpatch/README.source.
+
+Note that the package depends on boost, but its use is very lightweight,
+so no breakages are expected at every new release.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 01 Sep 2009 22:45:56 +0200
+
--- dans-gdal-scripts-0.16.orig/debian/changelog
+++ dans-gdal-scripts-0.16/debian/changelog
@@ -0,0 +1,31 @@
+dans-gdal-scripts (0.16-3) unstable; urgency=low
+
+  * Now build-deps on libboost1.42-dev.
+  * Added debian/README.source file.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 04 May 2010 13:13:05 +0200
+
+dans-gdal-scripts (0.16-2) unstable; urgency=medium
+
+  * Added support for dpatch.
+  * Added a patch werror.dpatch to relax -Werror at compile time. 
+    That prevented building on some archs.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 09 Mar 2010 12:40:37 +0100
+
+dans-gdal-scripts (0.16-1) unstable; urgency=low
+
+  * New upstream release, with a new gdal_make_ndv_mask program.
+  * Policy bumped to 3.8.4, no changes.
+  * Removed debconf template in debian/copyright.
+  * Added Vcs-* fields to debian/rules.
+  * Now build-deps on libboost1.40-dev.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Wed, 17 Feb 2010 15:48:16 +0100
+
+dans-gdal-scripts (0.14-1) unstable; urgency=low
+
+  * Initial release.
+    (closes: #521182)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sat, 28 Mar 2009 23:27:21 +0100
--- dans-gdal-scripts-0.16.orig/debian/compat
+++ dans-gdal-scripts-0.16/debian/compat
@@ -0,0 +1 @@
+7
--- dans-gdal-scripts-0.16.orig/debian/copyright
+++ dans-gdal-scripts-0.16/debian/copyright
@@ -0,0 +1,53 @@
+This package was debianized by Francesco Paolo Lovergine <frankie@debian.org> on
+Wed, 25 Mar 2009 10:55:18 +0100.
+
+It was downloaded from http://www.gina.alaska.edu/projects/gina-tools
+
+Upstream Author:
+
+    Dan Stalke <dan@gina.alaska.edu>
+
+Copyright:
+
+    Copyright (c) 2009, Regents of the University of Alaska
+
+License:
+
+Redistribution  and use  in source  and  binary forms,  with or  without
+modification, are  permitted provided that the  following conditions are
+met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+    * Neither the name of the Geographic Information Network of Alaska
+      nor the names of its contributors may be used to endorse or promote
+      products derived from this software without specific prior written
+      permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+This code was developed by Dan Stahlke for the Geographic Information Network of Alaska.
+
+On Debian systems, the complete text of the BSD License can be
+found in `/usr/share/common-licenses/BSD'.
+
+The Debian packaging is:
+
+    Copyright (C) 2009 Francesco Paolo Lovergine <frankie@debian.org>
+
+and is licensed under the GPL version 3, 
+see `/usr/share/common-licenses/GPL-3'.
+
--- dans-gdal-scripts-0.16.orig/debian/dans-gdal-scripts.1
+++ dans-gdal-scripts-0.16/debian/dans-gdal-scripts.1
@@ -0,0 +1,72 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH DANS-GDAL-SCRIPTS 1 "March 25, 2009"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+dans-gdal-scripts \- A GDAL add-on set of utilities
+.PP
+.PD 0
+.IP "\(bu" 2
+\fBgdal_contrast_stretch\fP - Contrast stretch and conversion from 16-bit to 8-bit
+.IP "\(bu" 2
+\fBgdal_dem2rgb\fP - Generate hillshaded images from DEMs
+.IP "\(bu" 2
+\fBgdal_raw2geotiff\fP - Convert raw binary files into GeoTIFFs
+.IP "\(bu" 2
+\fBgdal_get_projected_bounds\fP - Project a polygon and return its bounding rectangle
+.IP "\(bu" 2
+\fBgdal_trace_outline\fP - Trace the outline of an image and generate WKT or Shapefile 
+.IP "\(bu" 2
+\fBgdal_merge_vrt\fP - Merge individual bands into a single VRT image
+.IP "\(bu" 2
+\fBgdal_merge_simple\fP - Merge individual bands into a single GeoTIFF image (8-bit only)
+.IP "\(bu" 2
+\fBgdal_landsat_pansharp\fP - Pansharpening - works best for Landsat 7 images
+.IP "\(bu" 2
+\fBgdal_wkt_to_mask\fP - Generate a bitmap of the area covered by a polygon
+.IP "\(bu" 2
+\fBgdal_list_corners\fP - Prints raster geocode information in YAML format (similar to gdalinfo but gives YAML)
+.IP "\(bu" 2
+.PP
+.SH DESCRIPTION
+This manual page documents briefly the Dan's GDAL Scripts set of commands. 
+You can get a synthetic description of accepted options and 
+command line arguments by using \fB-h\fP option with every command.
+This set of tools is based on the GDAL/OGR library 
+and provides some useful simple manipulation of geo rasters and satellite data.
+Do not buggy GDAL team for possible issues with this software, this is a contributed
+set of programs.
+.PP
+.SH SEE ALSO
+.BR gdalinfo (1),
+.BR gdal_translate (1),
+.BR gdal_contour (1),
+.BR gdaladdo (1),
+.BR gdal_grid (1),
+.BR gdaltransform (1),
+.BR gdalmanage (1),
+.BR gdal_rasterize (1),
+.BR gdaltindex (1),
+.BR gdalenhance (1),
+.BR gdalwarp (1).
+.BR
+.SH AUTHOR
+The dans-gdal-scripts tools were written by Dan Stalke for GINA,
+the Geographic Information Network of Alaska, a working group of the University
+of Alaska.
+.PP
+This manual page was written by Francesco Paolo Lovergine <frankie@debian.org>,
+for the Debian project (and may be used by others).
--- dans-gdal-scripts-0.16.orig/debian/patches/werror.dpatch
+++ dans-gdal-scripts-0.16/debian/patches/werror.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## werror.dpatch by Francesco Paolo Lovergine <frankie@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' dans-gdal-scripts-0.16~/src/Makefile.in dans-gdal-scripts-0.16/src/Makefile.in
+--- dans-gdal-scripts-0.16~/src/Makefile.in	2009-09-03 22:10:43.000000000 +0200
++++ dans-gdal-scripts-0.16/src/Makefile.in	2010-03-09 12:45:27.000000000 +0100
+@@ -248,7 +248,7 @@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ with_gdal = @with_gdal@
+-AM_CPPFLAGS = @GDALCFLAGS@ -Wall -Wextra -Werror -O2
++AM_CPPFLAGS = @GDALCFLAGS@ -Wall -Wextra -O2
+ gdal_raw2geotiff_SOURCES = gdal_raw2geotiff.cc common.cc
+ gdal_dem2rgb_SOURCES = gdal_dem2rgb.cc common.cc georef.cc ndv.cc
+ gdal_list_corners_SOURCES = gdal_list_corners.cc common.cc polygon.cc polygon-rasterizer.cc debugplot.cc georef.cc mask.cc rectangle_finder.cc ndv.cc
--- dans-gdal-scripts-0.16.orig/debian/patches/00list
+++ dans-gdal-scripts-0.16/debian/patches/00list
@@ -0,0 +1 @@
+werror
