--- grass-6.4.0~rc4.orig/config.guess
+++ grass-6.4.0~rc4/config.guess
@@ -4,7 +4,7 @@
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 #   Free Software Foundation, Inc.
 
-timestamp='2008-04-14'
+timestamp='2008-01-23'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -985,6 +985,9 @@
 	  a.out-i386-linux)
 		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
 		exit ;;
+	  coff-i386)
+		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
+		exit ;;
 	  "")
 		# Either a pre-BFD a.out linker (linux-gnuoldld) or
 		# one that does not give us useful --help.
@@ -1213,9 +1216,6 @@
     BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
 	echo i586-pc-beos
 	exit ;;
-    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
-	echo i586-pc-haiku
-	exit ;;
     SX-4:SUPER-UX:*:*)
 	echo sx4-nec-superux${UNAME_RELEASE}
 	exit ;;
--- grass-6.4.0~rc4.orig/config.sub
+++ grass-6.4.0~rc4/config.sub
@@ -4,7 +4,7 @@
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 #   Free Software Foundation, Inc.
 
-timestamp='2008-04-14'
+timestamp='2008-01-16'
 
 # This file is (in principle) common to ALL GNU software.
 # The presence of a machine in this file suggests that SOME GNU software
@@ -250,14 +250,12 @@
 	| i370 | i860 | i960 | ia64 \
 	| ip2k | iq2000 \
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
-	| maxq | mb | microblaze | mcore | mep | metag \
+	| maxq | mb | microblaze | mcore | mep \
 	| mips | mipsbe | mipseb | mipsel | mipsle \
 	| mips16 \
 	| mips64 | mips64el \
-	| mips64octeon | mips64octeonel \
-	| mips64orion | mips64orionel \
-	| mips64r5900 | mips64r5900el \
 	| mips64vr | mips64vrel \
+	| mips64orion | mips64orionel \
 	| mips64vr4100 | mips64vr4100el \
 	| mips64vr4300 | mips64vr4300el \
 	| mips64vr5000 | mips64vr5000el \
@@ -333,14 +331,12 @@
 	| ip2k-* | iq2000-* \
 	| m32c-* | m32r-* | m32rle-* \
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
+	| m88110-* | m88k-* | maxq-* | mcore-* \
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
 	| mips16-* \
 	| mips64-* | mips64el-* \
-	| mips64octeon-* | mips64octeonel-* \
-	| mips64orion-* | mips64orionel-* \
-	| mips64r5900-* | mips64r5900el-* \
 	| mips64vr-* | mips64vrel-* \
+	| mips64orion-* | mips64orionel-* \
 	| mips64vr4100-* | mips64vr4100el-* \
 	| mips64vr4300-* | mips64vr4300el-* \
 	| mips64vr5000-* | mips64vr5000el-* \
@@ -368,7 +364,7 @@
 	| sparclite-* \
 	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
 	| tahoe-* | thumb-* \
-	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
+	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
 	| tron-* \
 	| v850-* | v850e-* | vax-* \
 	| we32k-* \
@@ -530,10 +526,6 @@
 		basic_machine=m88k-motorola
 		os=-sysv3
 		;;
-	dicos)
-		basic_machine=i686-pc
-		os=-dicos
-		;;
 	djgpp)
 		basic_machine=i586-pc
 		os=-msdosdjgpp
@@ -1396,9 +1388,6 @@
 	-zvmoe)
 		os=-zvmoe
 		;;
-	-dicos*)
-		os=-dicos
-		;;
 	-none)
 		;;
 	*)
--- grass-6.4.0~rc4.orig/debian/TODO
+++ grass-6.4.0~rc4/debian/TODO
@@ -0,0 +1,7 @@
+Maintainers TODO list
+---------------------
+
+The grass 'etc' directory contains a mixed arch/non-arch depending mess of files. They should
+be automatically classified in the install target and moved to /var/lib/grass or /usr/lib/grass, 
+leaving symlinks to do not break things.
+
--- grass-6.4.0~rc4.orig/debian/control
+++ grass-6.4.0~rc4/debian/control
@@ -0,0 +1,65 @@
+Source: grass
+Section: science
+Priority: optional
+Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
+Uploaders: Francesco Paolo Lovergine <frankie@debian.org>
+Build-depends: flex, bison, libreadline5-dev, libncurses5-dev, lesstif2-dev, debhelper (>= 7), dpatch, 
+ libtiff4-dev, tcl-dev (>= 8.4), tk-dev (>= 8.4), libfftw3-dev, libxmu-dev, libglu1-mesa-dev | libglu1-xorg-dev, 
+ libfreetype6-dev, autoconf2.13, autotools-dev, libgdal1-dev (>= 1.5.0), libproj-dev, proj-bin, libjpeg62-dev, 
+ libpng12-dev, libpq-dev, unixodbc-dev, doxygen, fakeroot, libmysqlclient15-dev, graphviz, libsqlite3-dev, python-wxgtk2.8,
+ libcairo2-dev, libwxgtk2.8-dev, python-dev (>= 2.5), swig
+Standards-Version: 3.8.1
+Build-Conflicts: wx2.6-headers
+Homepage: http://grass.osgeo.org/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-grass/packages/grass/
+Vcs-Svn: svn://svn.debian.org/pkg-grass/packages/grass/
+
+Package: grass
+Section: science
+Architecture: any
+Depends: ${shlibs:Depends}, xterm | x-terminal-emulator
+Suggests: grass-doc, gdal-bin, proj-bin, e00compr, avce00, gpsbabel, gpstrans,
+ gnuplot, grass-doc, xml2, wget | curl, python-opengl, python-wxgtk2.8
+Recommends: python (>= 2.5), python-numpy, ghostscript
+Provides: grass64
+Description: Geographic Resources Analysis Support System 
+ Commonly referred to as GRASS, this is a Geographic Information
+ System (GIS) used for geospatial data management and analysis,
+ image processing, graphics/map production, spatial modeling, and
+ visualization. GRASS is currently used in academic and commercial
+ settings around the world, as well as by many government agencies
+ and environmental consulting companies.
+
+Package: grass-doc
+Section: doc
+Architecture: all
+Conflicts: grass-doc
+Replaces: grass-doc
+Provides: grass-doc
+Description: Geographic Resources Analysis Support System documentation
+ Commonly referred to as GRASS, this is a Geographic Information
+ System (GIS) used for geospatial data management and analysis,
+ image processing, graphics/map production, spatial modeling, and
+ visualization. GRASS is currently used in academic and commercial
+ settings around the world, as well as by many government agencies
+ and environmental consulting companies.
+ .
+ This package contains HTML documentation for the GRASS system.
+
+Package: grass-dev
+Section: devel
+Architecture: any
+Depends: grass (= ${binary:Version}), libproj-dev
+Suggests: pkg-config
+Provides: grass64-dev
+Description: GRASS GIS development files
+ Commonly referred to as GRASS, this is a Geographic Information
+ System (GIS) used for geospatial data management and analysis,
+ image processing, graphics/map production, spatial modeling, and
+ visualization. GRASS is currently used in academic and commercial
+ settings around the world, as well as by many government agencies
+ and environmental consulting companies.
+ .
+ This package contains the header files for developing with GRASS.
+ Install this package if you wish to develop software that manipulates
+ GRASS data sets.
--- grass-6.4.0~rc4.orig/debian/grass-dev.dirs.in
+++ grass-6.4.0~rc4/debian/grass-dev.dirs.in
@@ -0,0 +1,3 @@
+usr/lib/grass@VERSION@/include
+usr/lib/grass@VERSION@/include/Make
+usr/share/pkgconfig
--- grass-6.4.0~rc4.orig/debian/grass-doc.dirs
+++ grass-6.4.0~rc4/debian/grass-doc.dirs
@@ -0,0 +1,4 @@
+usr/share/doc/grass-doc
+usr/share/doc/grass-doc/programming-manual
+usr/share/doc/grass-doc/programming-manual/html
+usr/share/man
--- grass-6.4.0~rc4.orig/debian/rules
+++ grass-6.4.0~rc4/debian/rules
@@ -0,0 +1,217 @@
+#!/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)
+
+VERSION=$(shell echo `head -2 $(CURDIR)/include/VERSION`|sed -e 's/ //')
+BASE_NAME=grass$(VERSION)
+PKG_NAME=grass
+
+CFLAGS=-Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	STRIP = 
+else
+	STRIP = strip
+endif
+
+TCLINC = /usr/include/tcl
+
+include /usr/share/dpatch/dpatch.make
+
+templates: $(patsubst %.in,%,$(wildcard debian/*.in))
+
+debian/% :: debian/%.in
+	sed -e 's/@VERSION@/$(VERSION)/' $< >$@
+
+configure: patch config.status
+config.status: 
+	dh_testdir
+	# Add here commands to configure the package.
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+                    --prefix=/usr/lib \
+                    --sysconfdir=/etc \
+                    --sharedstatedir=/var \
+                    --enable-socket \
+                    --enable-shared \
+                    --with-postgres \
+                    --with-mysql \
+                    --with-cxx \
+                    --with-x \
+                    --with-gdal \
+                    --with-freetype \
+                    --with-motif \
+                    --with-readline \
+                    --with-nls \
+                    --with-odbc \
+		    --with-sqlite \
+		    --enable-largefile \
+                    --with-freetype-includes=/usr/include/freetype2 \
+                    --with-tcltk-includes=$(TCLINC) \
+                    --with-postgres-includes=$(shell pg_config --includedir) \
+                    --with-mysql-includes=$(shell mysql_config --include|sed -e 's/-I//') \
+		    --with-proj-share=/usr/share/proj \
+		    --with-wxwidgets=/usr/lib/wx/config/gtk2-unicode-release-2.8 \
+		    --with-python=/usr/bin/python-config \
+		    --with-cairo
+
+	touch $@
+
+# This target generates arch-dep stuff, unfortunately most doc requires working bins to 
+# be properly generated...
+build: configure build-stamp
+build-stamp:  
+	dh_testdir
+
+	$(MAKE) 
+	chmod 755 debian/fixpaths.sh debian/fixscripts.sh
+
+	touch $@
+
+# This target generates truly arch-indep stuff
+build-indep: configure build-indep-stamp
+build-indep-stamp: 
+	dh_testdir
+
+	$(MAKE) htmldocs
+
+	touch $@
+
+clean: templates clean-patched unpatch 
+clean-patched:
+	dh_testdir
+	dh_testroot
+
+	# Add here commands to clean up after the build process.
+	[ ! -f $(CURDIR)/include/Make/Platform.make ] || $(MAKE) distclean
+
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	[ ! -f $(CURDIR)/configure.in ] || cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	[ ! -f $(CURDIR)/configure.in ] || cp -f /usr/share/misc/config.guess config.guess
+endif
+	dh_clean 
+
+	rm -f lib/proj/nad2bin
+	rm -f tools/timer/main.o
+	rm -f raster/r.le/r.le.setup/polytocell/*.o
+	rm -f raster/r.terraflow/IOStream/lib/src/libiostream.a
+	rm -f debian/$(BASE_NAME).1
+	rm -f error.log
+	# clean doxygen documentation (programming man)
+	rm -rf doxygenhtml lib/vector/html lib/db/html lib/gis/html \
+		lib/vector/latex lib/db/latex lib/gis/latex \
+		lib/g3d/html \
+		lib/ogsf/html \
+		lib/proj/html \
+		lib/gmath/html \
+		lib/segment/html \
+		lib/vector/dglib/html \
+		rfc/html \
+		swig/html \
+		lib/g3d/latex \
+		lib/ogsf/latex \
+		lib/proj/latex \
+		lib/gmath/latex \
+		lib/segment/latex \
+		lib/vector/dglib/latex \
+		rfc/latex \
+		swig/latex
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+
+	# install grass core into debian/tmp
+	$(MAKE) $(STRIP)
+	$(MAKE) install INST_DIR=$(CURDIR)/debian/tmp/usr/lib/$(BASE_NAME) \
+		PREFIX=$(CURDIR)/debian/tmp/usr/lib/$(BASE_NAME) \
+		BINDIR=$(CURDIR)/debian/tmp/usr/bin
+
+	# fix all the braindead scripts
+	debian/fixscripts.sh
+
+	# fix links
+	debian/fixpaths.sh $(CURDIR)/debian/tmp debian/tmp
+	
+	# delete extra license files
+	rm -f debian/tmp/usr/lib/$(BASE_NAME)/bwidget/LICENSE.txt
+    
+	# change section from 1 to .1grass 
+	mv debian/tmp/usr/lib/$(BASE_NAME)/man/man1/grass6.1 debian/$(BASE_NAME).1
+	for m in debian/tmp/usr/lib/$(BASE_NAME)/man/man1/*.1; do n=`basename $$m .1`; mv $$m debian/tmp/usr/lib/$(BASE_NAME)/man/man1/$$n.1grass; done
+	for m in debian/tmp/usr/lib/$(BASE_NAME)/man/man1/*.1grass; do sed -i -e 's/^.TH \(.*\) 1/.TH \1 1grass/' $$m; done
+
+	# install module makefile	
+	install -m 644 include/Make/Module.make debian/$(PKG_NAME)-dev/usr/lib/$(BASE_NAME)/include/Make/Module.make
+
+	# install pkg-config file
+	install -m 644 grass.pc debian/$(PKG_NAME)-dev/usr/share/pkgconfig/$(BASE_NAME).pc
+
+	ln -fs /usr/lib/$(shell objdump -p /usr/lib/`gdal-config --libs|cut -d' ' -f2|sed -e 's/-l/lib/'`.so|grep SONAME|cut -d' ' -f18) \
+		debian/tmp/usr/lib/$(BASE_NAME)/lib/libgdal.so
+
+install-indep: build-indep
+	dh_testdir -i
+	dh_testroot -i
+	install -m 644  -d debian/tmp
+	install -m 644  -d debian/tmp/programming-manual/vector/html \
+			   debian/tmp/programming-manual/db/html \
+			   debian/tmp/programming-manual/gis/html
+			   
+	install -m 644 lib/vector/html/* debian/tmp/programming-manual/vector/html
+	install -m 644 lib/db/html/* debian/tmp/programming-manual/db/html
+	install -m 644 lib/gis/html/* debian/tmp/programming-manual/gis/html
+
+# Build architecture-independent files here.
+binary-indep: install install-indep 
+	dh_testdir -i
+	dh_testroot -i
+	dh_installchangelogs -i CHANGES
+	dh_installdocs -i
+	dh_install -i
+	dh_link -i
+	dh_strip -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: install
+	dh_testdir -a
+	dh_testroot  -a
+	dh_installchangelogs -a CHANGES
+	dh_installdocs  -a
+	dh_installexamples  -a
+	dh_install -a
+	dh_installman -p$(PKG_NAME) debian/$(BASE_NAME).1 -a
+	dh_link -a
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_makeshlibs -a -a
+	dh_installdeb -a
+	dh_shlibdeps -a -l$(CURDIR)/debian/$(PKG_NAME)/usr/lib/$(BASE_NAME)/lib
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install patch unpatch configure clean-patched
--- grass-6.4.0~rc4.orig/debian/watch
+++ grass-6.4.0~rc4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://grass.osgeo.org/grass64/source/grass-([\d\.]*(?:RC\d){0,1}).tar.gz
--- grass-6.4.0~rc4.orig/debian/fixpaths.sh
+++ grass-6.4.0~rc4/debian/fixpaths.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# this script try to locate all the GRASS script than got hardcoded
+# the building path $HOME/... (given as an argument) and to replace it
+# with the default /usr/lib/grass5
+
+ZOTPATH="$1"
+TMPPATH="$2"
+echo Mumble mumble... trying to zot:
+echo "    $ZOTPATH"
+echo " in $TMPPATH"
+
+for i in `grep -r $ZOTPATH $TMPPATH | cut -d : -f 1 | sort -u` ; do
+    echo -n "Grr. Zotting $i ... "
+    cp $i $i.old
+    sed -e s,$ZOTPATH,,g $i.old >$i
+    rm -f $i.old
+    echo done
+done
--- grass-6.4.0~rc4.orig/debian/changelog
+++ grass-6.4.0~rc4/debian/changelog
@@ -0,0 +1,561 @@
+grass (6.4.0~rc4-3~bpo50+1) lenny-backports; urgency=low
+
+  * Backported to lenny.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Thu, 16 Jul 2009 14:55:29 +0200
+
+grass (6.4.0~rc4-3) unstable; urgency=medium
+
+  * Added a build-conflicts against wx2.6-headers in debian/control.in
+    (closes: #526200)
+  * [PATCH] gcc44.dpatch: added a missing std header for gcc 4.4.
+    (closes: #526204)
+  * Added ghostscript among Recommends in debian/control.in.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 12 May 2009 20:50:40 +0200
+
+grass (6.4.0~rc4-2) unstable; urgency=high
+
+  * Removed superfluous /usr/share/doc/grass<version> empty directory.
+  * Added libproj-dev to grass-dev reqs.
+    (closes: #527655)
+  * Added proj-bin as build-dep for nad2bin at configuration time.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sun, 10 May 2009 11:16:47 +0200
+
+grass (6.4.0~rc4-1) unstable; urgency=low
+
+  * New upstream release candidate.
+  * Added Suggests: python-opengl and python-wxgtk2.8 for the new wx interface.
+  * Changed again debian/watch file.
+  * Moved to versioned defaults (build-)deps for python.
+  * Added Suggests: gpsbabel for v.in.gpsbabel and v.out.gpsbabel.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Wed, 15 Apr 2009 16:25:53 +0200
+
+grass (6.4.0~rc3-3) unstable; urgency=low
+
+  * Fixed debian/watch to see also RC versions. Not perfect but it works.
+  * Added xml2 and other r.in.wms related among Suggests in debian/control.
+  * Added proj-bin among Suggests in debian/control.
+  * Moved build-dep from proj to libproj-dev.
+  * Grass-doc section set to doc instead of science.
+  * Added a libgdal.so link to the system GDAL shlib, to allow external raster/vector
+    support to work.
+  * Policy bumped to 3.8.1, without changes.
+  * Introduced grassVERSION and grassVERSION-dev Provides and debian/control.in 
+    templates to get grass major.minor versions automagically. 
+    The new field is useful to introduce per-version dependency in external 
+    plugins: mixing fluxes^Wversions is evil, and currently gdal-grass could 
+    be installed with the wrong grass release.
+  * Now fixscripts.sh get automagically grass version for its paths.
+  * Added new files to fixscripts.sh to avoid a bounce of lintian warnings.
+  * Now all debian/ files are templated against grass version, to avoid
+    changing paths all around for every new major release.
+  * Now recommended python and python-numpy.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sun, 29 Mar 2009 16:31:34 +0200
+
+grass (6.4.0~rc3-2) unstable; urgency=low
+
+  * Removed obsolete etc/ld.so.conf.d directory in debian/grass.dirs.
+  * Fixed instdir.dpatch for the right include directory in the pkg-config file.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 03 Mar 2009 18:11:23 +0100
+
+grass (6.4.0~rc3-1) unstable; urgency=low
+
+  * New upstream pre-release for next stable. 
+    From now on all grass-related directories are versionend to allow people installing
+    packaged unofficial/testing versions.
+  * Removing Tcl Lenny related code in debian/rules. 
+  * Some minor clean-ups in debian/rules.
+  * Obsolete NEWS file removed.
+  * Removed pre-lenny compatibility build-deps.
+  * Debhelper level moved to 7, now using dh_prep.
+  * Removed ld.so file installation. Grass programs must be called under Grass environment,
+    so it is pointless and can be dangerous when different versions are installed. This
+    is also true for Qgis and its Grass plugin. As consequence postinst and postrm files 
+    have been removed as obsolete.
+  * Fixed htmlgen-fakeroot.dpatch, incredibly broken without notice. 
+  * Cleaned debian/control.
+
+  * Merging relevant changes in the stable 6.2.3 tree with the experimental DebianGis series:
+
+  	From 6.2.3-3:
+        o Fixated patch rule.
+
+        From 6.2.3-2:
+        o Added libfftw3-dev build-dep to reflect current library name.
+          (it closed: #458232)
+        o Upstream already fixed v.db.update as suggested.
+          (it closed: #434897)
+
+        From: 6.2.3-1:
+  	o Updated obsolete ${Source-Version} to ${binary:Version}.
+  	o Fixed lintian error: : debian-rules-ignores-make-clean-error
+  	o Now using mysql_config to get MySQL includes path.
+  	o Added private library path at dh_shlibdeps call.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 17 Feb 2009 12:00:13 +0100
+
+grass-preview (6.4~20081031-1) experimental; urgency=low
+
+  [ Hamish Bowman ]
+  -- THIS IS A NOT FOR RELEASE BRANCH OF THE MAIN DEVELOPMENT TREE --
+
+  * Update patches and names from 6.3 to 6.4svn
+  * Update project URL and home address
+  * Enable Cairo rendering support
+  * Python support for new wx vdigit module (still need build-deps??)
+
+  [ Francesco Paolo Lovergine ]
+
+  Merged with changes in 6.3 preview tree:
+
+  * Added libwxgtk2.8-dev build dep.
+  * Changed configuration for successful building with wxwidget 2.8
+  * Policy bumped to 3.8.0
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Wed, 05 Nov 2008 15:46:32 +0100
+
+grass-preview (6.3.0-1) experimental; urgency=low
+
+  * Changing source package name to grass-preview.
+    Starting from this release the package is tought to co-exist with the
+    stable 6.2 branch (6.2.3).
+  * Merged changes from stable branches:
+  	- Vcs-* fields in debian/control.
+        - Current list of build-deps.
+        - Tcl policy changes.
+  * Revised current patchset to reflect changes in source code.
+  * Removed obsolete NEWS file.
+  * Added wxpython support for the new GUI.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Thu, 10 Jul 2008 13:08:59 +0200
+
+grass (6.3~20070922-1) NOT-FOR-RELEASE; urgency=low
+
+  -- THIS IS A NOT FOR RELEASE BRANCH OF THE MAIN DEVELOPMENT TREE --
+
+  * Added Homepage field in debian/control.
+  * Revised 6.2.2 patches as needed.
+  * Merges from 6.2.2 tree:
+  	* Removed libgl1-mesa-swx11-dev in debian/control
+        * Removed --with-glx in debian/rules
+        * libglu1-mesa-dev replaces libglu1-xorg-dev which replaced xlibmesa-glu-dev.
+          Kept libglu1-xorg-dev around for sarge backports.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Thu, 18 Oct 2007 20:43:08 +0200
+
+grass (6.3~20070922-1) NOT-FOR-RELEASE; urgency=low
+
+  -- THIS IS A NOT FOR RELEASE BRANCH OF THE MAIN DEVELOPMENT TREE --
+
+  * Branching for 6.3 (development series).
+  * Revised all 6.2.2 patches.
+  * This version is usable in both lenny and sid currently.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Wed, 26 Sep 2007 12:43:12 +0200
+
+grass (6.2.2-2) unstable; urgency=medium
+
+  * Moved priority to optional. Thanks Ganneff.
+  * Removed --with-glw in debian/rules because GLw is not used.
+    (closes: #439506)
+  * Obsolete postgresql-dev build-dep has been removed.
+    (closes: #429969)
+  * Fixed handling of nostrip option in DEB_BUILD_OPTIONS
+    (closes: #437105)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon, 10 Sep 2007 13:06:08 +0200
+
+grass (6.2.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Patchset updated.
+  * Added --enable-largefiles for LFS support.
+  * Added sqlite3 support.
+  * Moved to debhelper version 5 compatibility.
+  * Set explicitly proj data dir at configuration time.
+  * Removed too strict versioning in build-dep from gdal (useful for backports).
+  * Fixed priority in debian/control.
+  * Merge from 6.2.1-4:
+  	- New patch xterm.dpatch
+        - Added /etc/ld.so.conf.d/grass.conf file instead of adding lib path
+          in-line into /etc/ld.so.conf.  
+        - Removed obsolete postgresql-dev build-dep 
+        - Added a new grass.dirs file.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sat, 26 May 2007 19:21:00 +0200
+
+grass (6.2.1-3) unstable; urgency=low
+
+  * Sigh, fixed www-browser: s/elif/else/  
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Wed, 11 Apr 2007 10:14:32 +0200
+
+grass (6.2.1-2) unstable; urgency=low
+
+  * Fixed watch and grass.links files for grass62
+  * Install grass.pc file for pkg-config
+  * New patches:
+       www-browser -- Use www-browser as default browser
+       pager -- User pager as default text pager
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon,  2 Apr 2007 23:42:03 +0200
+
+grass (6.2.1-1) experimental; urgency=low
+
+  * New upstream release
+  * Added a new versioned build-dep on libgdal1-dev for 1.4.0.
+    Old build-dep is retained for etch compatibility.
+  * Removed obsolete libmysqlclient14-dev build-dep.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue,  6 Mar 2007 10:13:25 +0100
+
+grass (6.2.0-1) experimental; urgency=low
+
+  * New upstream release.
+    (closes: #287589)
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Wed,  8 Nov 2006 22:36:45 +0100
+
+grass (6.2~beta1-1) UNRELEASED; urgency=low
+
+  * Development branch 6.2, branching from 6.1
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon, 28 Aug 2006 22:10:06 +0200
+
+grass (6.1.0-1) UNRELEASED; urgency=low
+
+  * Starting development tree for 6.1 version.
+  * Removed patches merged upstream: nviz and fftw3.
+  * Revised patches:
+        htmlgen-fakeroot.dpatch
+        xterm-fix.dpatch
+  * Merged changes from 6.0.2-[4..6] branch.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue, 22 Aug 2006 00:10:11 +0200
+
+grass (6.0.2-4) unstable; urgency=low
+
+  * Moved to libgdal1-1.3.2-dev build-dep, now available.
+  * Removed libgrass bin-package and introduced required conflicts/provides/replaces items to manage upgrades.
+    Removed all related files in debian/
+    (closes: #361962)
+  * Removed another extra license file.
+  * Watch file revised.
+  * Moved libgrass-dev to grass-dev package and changed section.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Tue,  8 Aug 2006 18:24:19 +0200
+
+grass (6.0.2-3) unstable; urgency=low
+
+  * Change build-dependency on xlibmesa-gl-dev to libgl1-mesa-swx11-dev;
+    fixes FTBFS, patch from Andreas Jochens. Ack NMU.
+    (Closes: #373569)
+  * Policy bumped to 3.7.2, no changes.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sat, 24 Jun 2006 21:50:19 +0200
+
+grass (6.0.2-2) unstable; urgency=low
+
+  [ Francesco Paolo Lovergine ]
+
+  * Sigh, FFTW3 patch revised to integrate three more changes.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Mon, 27 Mar 2006 23:45:58 +0200
+
+grass (6.0.2-1) unstable; urgency=low
+
+  [ Francesco Paolo Lovergine ]
+
+  * New upstream release
+    (closes: #328519)
+  * Removed configure.in.dpatch, merged upstream.
+  * Now generates programming manual by doxygen and dot.
+    Added graphviz build-dep in debian/control.
+    Resulting files belongs to grass-doc.
+  * Rules file revised to clean doxygen doc properly.
+  * Targets revised in rules to adopt a more clean schema of dependencies.
+  * Added a group of suggested packages (Thanks Hamish).
+  * New patches added:
+  	fftw3.dpatch: supports FFTW3
+                (cfr.  http://grass.itc.it/pipermail/grass-commit/2006-March/021112.html-021114.html)
+        nviz.dpatch: solves old NVIZ issue with multi-threaded Tcl 8.4.
+                (cfr. http://grass.itc.it/pipermail/grass-commit/2006-March/021104.html)
+  * Moved to tcl8.4-dev and tk8.4 build-deps. Changed tcl path in debian/rules.
+    (closes: #206844)
+  * Moved to fftw3-dev build-dep
+
+  [ Paul Wise ]
+  * Suggest some packages useful for v.in.e00, v.in.garmin and i.spectral
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Fri, 24 Mar 2006 14:12:32 +0100
+
+grass (6.0.1-4) unstable; urgency=low
+
+  [ Steve Halasz ]
+  
+  * Make libgrass depend on current version of grass.
+    libgrass requires files in the main package and doesn't
+    yet stand alone. 
+
+ -- Steve Halasz <debian@adkgis.org>  Thu, 23 Feb 2006 11:09:59 -0500
+
+grass (6.0.1-3) unstable; urgency=low
+
+  [ Francesco Paolo Lovergine ]
+
+  * Added NVIZ html help pages to -doc package, previously missing. Thanks Stephan Holl.
+  * Re-introduced missing build-indep target in rules for the -doc package.
+    This is still sub-optimal...
+  * Added missing libxmu-dev
+    (closes: #350010, #352451)
+  * Added Module.make among -dev files.
+    (closes: #315073)
+  * Added configure.in.dpatch for FTBS on GNU/FreeBSD. Merged correction for configure(1333).
+    (closes: #336498)
+
+  [ Paul Wise ]
+  * Fix homepages in package descriptions
+  * Add a watch file
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Fri, 17 Feb 2006 13:03:03 +0100
+
+grass (6.0.1-2) unstable; urgency=low
+
+  [ Paul Wise ]
+
+  * Add homepage to package descriptions
+
+  [ Francesco Paolo Lovergine ]
+
+  * Transitioned to libmysqlclient15-dev in control (but retained old lib-dev pkg for backports )
+    (closes: #343817)
+  * Transitioned to libgdal1-1.3.1 for new gdal packaging scheme due to C++ ABI/API instability.
+  * Typo with a exceeding ` at configure(1333) corrected (upstream cvs is ok).
+    Issue definitively depends on shell version.
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Sun, 22 Jan 2006 23:28:18 +0100
+
+grass (6.0.1-1) unstable; urgency=low
+
+  [ Steve Halasz ]
+
+  * New upstream release
+    (closes: #314059, #314063,#317470,#312583)
+  * Bump Standards-Version to 3.6.2 without any changes. There
+      are architecture independent files in /usr/lib/grass. Still
+      need to fix that sometime.
+  * C++ ABI transition. No explicit changes made.
+  * debian/control
+    - postgresql-dev -> libpq-dev
+    - xlibmesa-glu-dev -> libglu1-xorg-dev
+    - build-dep on libmysqlclient12-dev
+  * debian/rules
+    - use pg_config to locate includes
+    - --with-mysql
+
+  [ Francesco Paolo Lovergine ]
+
+  * Added versioned dependency for grass vs libgrass and grass-dev
+    (closes: #306497)
+  * Set libpq-dev | postgresql-dev build-dep to retain sarge compatibility.
+    Changed a bit rules file to manage pg_config by $shell feature.
+    (closes: #326044)
+  * Set libglu1-xorg-dev | xlibmesa-glu-dev build-dep to retain sarge compatibility
+  * Ack mysql 4.0+ support
+    (closes: #317497)
+  * Cleaned commented dhelper methods and other inappropriate
+    comments in rules
+  * libreadline-dev dependency updated
+    (closes: #326350)
+  * Changed changelog release number because of 6.0.1 release on 8/22.
+  * Added upstream man pages to grass-doc, in section 1grass. Removed Steve's
+    manual and used upstream one for grass main script.
+  * Added xterm-fix.dpatch to use x-terminal-emulator instead of xterm in all
+    scripts. Changed dependency in xterm | x-terminal-emulator as consequence
+    (closes: #315186)
+  * Fixed fixscripts.sh
+  * Removed a --without-cxx in rules which prevented r.terraflow build
+
+ -- Francesco Paolo Lovergine <frankie@debian.org>  Wed, 14 Sep 2005 16:16:57 +0200
+
+grass (6.0.0+6.0.1RC1-0.dgis.unstable.1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Steve Halasz <debian@adkgis.org>  Wed,  3 Aug 2005 14:28:24 -0400
+
+grass (6.0.0-1) unstable; urgency=low
+
+  * New upstream release
+  * priority optional -> extra
+
+ -- Steve Halasz <debian@adkgis.org>  Thu, 10 Mar 2005 10:01:07 -0500
+
+grass (5.7.0+6.0.0beta2-2) unstable; urgency=high
+
+  * Apply patch from cvs to prevent accidental deletion of files
+      in the present working directory (Closes: #297731)
+  * Use fakeroot while generating html docs.
+      This fixes a permission problem that prevented
+      most docs and man pages from being created when
+      building with pbuilder. (Closes: #281742, #229086, #242436)
+  * build-depend on fakeroot
+  * make libgrass depend on grass
+  * Remove fog@debian.org from Uploaders. Thanks Federico!
+  * silence erroneous lintian warnings:
+    - postrm-unsafe-ldconfig
+    - maintainer-script-lacks-debhelper-token
+    - postinst-has-useless-call-to-ldconfig
+    - postrm-has-useless-call-to-ldconfig
+
+ -- Steve Halasz <debian@adkgis.org>  Mon, 21 Feb 2005 20:49:22 -0500
+
+grass (5.7.0+6.0.0beta2-1) unstable; urgency=high
+
+  * New upstream release (Closes: #264566)
+    - Safe tmpdir creation (Closes: #287651)
+    - tcltkgrass replaced by d.m (Closes: #282567)
+    - r.in.gdal segfault fixed (Closes: #234275)
+    - r.in.bin segfault fixed (Closes: #259655)
+    - r.lags.1grass.gz: "name" section too long (removed) (Closes: #261726)
+    - raster.html: non explained commands (removed) (Closes: #287590)
+    - i.rectify.html: links to i.vpoints.html work (Closes: #287764)
+    - i.points.html: imagery.ps link fixed (Closes: #287763:)
+  * Help button doc path fixed (Closes: #287591)
+  * Change libgrass0 -> libgrass
+
+ -- Steve Halasz <debian@adkgis.org>  Fri,  4 Feb 2005 15:13:26 -0500
+
+grass (5.7.0+6.0.0beta1+cvs20050203-0.dgis.unstable.1) unstable; urgency=low
+
+  * New upstream version from CVS
+  * Safe tmpdir creation (Closes: #287651)
+  * Build without r.terraflow until it gets tmpdir fixes
+  * Change libgrass5.7 -> libgrass6.0.0beta1
+  * Change maintainer 
+      pkg-grass-general -> pkg-grass-devel@lists.alioth.debian.org
+
+ -- Steve Halasz <debian@adkgis.org>  Thu,  3 Feb 2005 09:28:43 -0500
+
+grass (5.7.0+6.0.0beta1-0.dgis.unstable.2) unstable; urgency=low
+
+  * updates to grass60 man page - grass57 -> grass60
+  * link usr/lib/grass/docs/html to usr/share/doc/grass-doc/html
+  * patch to look for epsg codes in /usr/share/proj/epsg
+  * put man pages in grass-doc
+  * debian/control
+    - depend on xterm
+    - remove dependency on csh
+
+ -- Steve Halasz <debian@adkgis.org>  Wed, 19 Jan 2005 09:06:51 -0500
+
+grass (5.7.0+6.0.0beta1-0.dgis.unstable.1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Steve Halasz <debian@adkgis.org>  Wed, 12 Jan 2005 16:46:24 -0500
+
+grass (5.7.0-6.dgis.unstable.1) unstable; urgency=low
+
+  * link usr/share/man/man1/grass.1.gz to usr/share/man/man1/grass57.1.gz
+  * debian/control
+    - edits to description courtesy of hmitaso@unity.ncsu.edu
+    - don't suggest proj. it is already required via ${shlibs:Depends}
+    - put grass-doc in 'science' section rather than 'Science'
+
+ -- Steve Halasz <debian@adkgis.org>  Mon, 27 Dec 2004 18:16:41 -0500
+
+grass (5.7.0-6) unstable; urgency=low
+
+  * link /usr/bin/grass to /usr/bin/grass57
+  * debian/control
+    - edits to description
+    - create grass-doc package
+    - don't have libgrass depend on grass
+  * debian/rules
+    - install to /usr/lib/grass instead of /usr/lib/grass57
+    - run dh_shlibdeps
+
+ -- Steve Halasz <debian@adkgis.org>  Wed,  1 Dec 2004 18:39:04 -0500
+
+grass (5.7.0-5) unstable; urgency=low
+
+  * debian/control
+    - change package name back to 'grass'
+    - convert to team maintenance with pkg-grass-general@lists.alioth.debian.org
+      as maintainer
+    - add build-deps:
+      + dpatch
+      + libjpeg62-dev
+      + libpng12-dev
+      + lesstif2-dev
+    - remove build-deps:
+      + extra second build-dep on postgresql-dev
+      + libgd2-xpm-dev
+      + postgresql-client
+  * debian/rules:
+    - clean raster/r.terraflow/IOStream/lib/src/libiostream.a
+    - add --with-odbc
+    - add --with-cxx
+    - add --with-glw
+    - add --with-motif
+    - remove --with-dbm and --without-dbm
+    - remove --with-blas and --with-lapack
+
+ -- Steve Halasz <debian@adkgis.org>  Mon, 29 Nov 2004 18:17:46 -0500
+
+grass5.7 (5.7.0-4) unstable; urgency=low
+
+  * Add grass57 man page
+  * Make etc/water/seg executable
+
+ -- Steve Halasz <debian@adkgis.org>  Tue, 12 Oct 2004 11:18:55 -0400
+
+grass5.7 (5.7.0-3) unstable; urgency=low
+
+  * Split out separate libgrass5.7 and libgrass5.7-dev packages
+  * Add grass libs dir to ld.so.conf. Make sure it is removed too.
+
+ -- Steve Halasz <debian@adkgis.org>  Wed, 22 Sep 2004 00:36:12 -0400
+
+grass5.7 (5.7.0-2) unstable; urgency=low
+
+  * silence executable-not-elf-or-script lintian warning by making most tcl 
+    scripts not executable
+  * silence interpreter-not-absolute lintian warning by inserting absolute path in 
+    shebang
+  * make tcltkgrass/main/tksys.tcl executable
+
+ -- Steve Halasz <debian@adkgis.org>  Fri,  3 Sep 2004 11:38:18 -0400
+
+grass5.7 (5.7.0-1) unstable; urgency=low
+
+  * install files to locations prescribed by debian policy
+  * fix paths hardcoded during build using script from 5.0.3 package
+  * change package name to enable concurrent install with stable grass package
+  * patch configure.in and d.text.freetype to deal with freetype.h weirdness
+  * build as non-native package
+  * clean binary files not removed by 'make clean'
+
+ -- Steve Halasz <debian@adkgis.org>  Wed,  1 Sep 2004 10:39:27 -0400
+
+grass (57-2) unstable; urgency=low
+
+  * fixes for rules file by Giuseppe Dia <giusedia@libero.it>
+
+  * fixes for Debian built. Joint work with Paolo Brunetti <brunetti@itc.it> 
+    and Donato Minati <minati@itc.it>
+
+ -- Markus Neteler <neteler@itc.it>  Tue, 11 Nov 2003 17:59:04 +0100 
+
+grass (57-1) unstable; urgency=low
+
+  * Initial Release. Control file based on GRASS 5.0.2 deb from 
+    Giuseppe Dia <giusedia@libero.it>
+
+ -- Markus Neteler <neteler@itc.it>  Mon, 10 Nov 2003 17:59:04 +0100
--- grass-6.4.0~rc4.orig/debian/grass-dev.links
+++ grass-6.4.0~rc4/debian/grass-dev.links
@@ -0,0 +1 @@
+usr/share/pkgconfig/grass64.pc usr/share/pkgconfig/grass.pc
--- grass-6.4.0~rc4.orig/debian/grass.install.in
+++ grass-6.4.0~rc4/debian/grass.install.in
@@ -0,0 +1,8 @@
+usr/bin/grass@VERSION@
+usr/lib/grass@VERSION@/bin
+usr/lib/grass@VERSION@/bwidget
+usr/lib/grass@VERSION@/driver
+usr/lib/grass@VERSION@/etc
+usr/lib/grass@VERSION@/fonts
+usr/lib/grass@VERSION@/scripts
+usr/lib/grass@VERSION@/lib
--- grass-6.4.0~rc4.orig/debian/grass.dirs
+++ grass-6.4.0~rc4/debian/grass.dirs
@@ -0,0 +1,5 @@
+usr/lib/grass64
+/usr/bin
+/usr/lib/grass64
+/usr/share/doc/grass
+/usr/share/man
--- grass-6.4.0~rc4.orig/debian/grass-doc.links.in
+++ grass-6.4.0~rc4/debian/grass-doc.links.in
@@ -0,0 +1 @@
+usr/share/doc/grass-doc/html usr/lib/grass@VERSION@/docs/html
--- grass-6.4.0~rc4.orig/debian/compat
+++ grass-6.4.0~rc4/debian/compat
@@ -0,0 +1 @@
+7
--- grass-6.4.0~rc4.orig/debian/grass-doc.links
+++ grass-6.4.0~rc4/debian/grass-doc.links
@@ -0,0 +1 @@
+usr/share/doc/grass-doc/html usr/lib/grass64/docs/html
--- grass-6.4.0~rc4.orig/debian/grass-doc.install
+++ grass-6.4.0~rc4/debian/grass-doc.install
@@ -0,0 +1,5 @@
+usr/lib/grass64/docs/html usr/share/doc/grass-doc
+usr/lib/grass64/man/man1 usr/share/man
+programming-manual/db usr/share/doc/grass-doc/programming-manual/html
+programming-manual/gis usr/share/doc/grass-doc/programming-manual/html
+programming-manual/vector usr/share/doc/grass-doc/programming-manual/html
--- grass-6.4.0~rc4.orig/debian/grass.install
+++ grass-6.4.0~rc4/debian/grass.install
@@ -0,0 +1,8 @@
+usr/bin/grass64
+usr/lib/grass64/bin
+usr/lib/grass64/bwidget
+usr/lib/grass64/driver
+usr/lib/grass64/etc
+usr/lib/grass64/fonts
+usr/lib/grass64/scripts
+usr/lib/grass64/lib
--- grass-6.4.0~rc4.orig/debian/fixscripts.sh
+++ grass-6.4.0~rc4/debian/fixscripts.sh
@@ -0,0 +1,112 @@
+#!/bin/sh
+
+# this script tries to locate all the GRASS scripts than have something
+# that makes lintian complain and fix them.
+
+CURDIR=$(pwd)
+VERSION=$(echo $(head -2 $CURDIR/include/VERSION)|sed -e 's/ //') 
+
+# make these scripts executable
+for x in etc/water/seg
+do
+    chmod +x $CURDIR/debian/tmp/usr/lib/grass$VERSION/$x
+done
+
+# silence bogus lintian complaint about interpreter-not-absolute
+for x in script_get_line \
+    script_play \
+    script_tools \
+    script_file_tools \
+    nviz2.2_script
+do
+  f=$CURDIR/debian/tmp/usr/lib/grass$VERSION/etc/nviz2.2/scripts/$x
+  sed -e "s.!nviz.!/usr/lib/grass$VERSION/bin/nviz." $f >foo && cat foo >$f
+done
+
+for x in panel_label.tcl \
+    panel_scale.tcl
+do
+  f=$CURDIR/debian/tmp/usr/lib/grass$VERSION/etc/nviz2.2/scripts/$x
+  sed -e "s%!../glnviz.new/nvwish%!/usr/lib/grass$VERSION/etc/nviz2.2/glnviz/nvwish%" $f >foo && cat foo >$f
+done
+rm foo
+
+# silence lintian warning executable-not-elf-or-script
+# add shebang to scripts that need it
+#for x in etc/copy
+#do
+#  f=$CURDIR/debian/tmp/usr/lib/grass$VERSION/$x
+#  cp $f foo; echo "#!/bin/sh" >$f; cat foo >>$f
+#done
+#rm foo
+
+# silence lintian warning script-not-executable
+for x in etc/dm/tksys.tcl \
+    etc/gem/skeleton/post \
+    etc/gem/skeleton/uninstall \
+    etc/gm/animate.tcl
+do 
+    chmod +x $CURDIR/debian/tmp/usr/lib/grass$VERSION/$x
+done
+
+# silence executable-not-elf-or-script lintian warning
+# most tcl scripts don't need to be executable
+for x in etc/nviz2.2/scripts/panel_kanimator.tcl \
+    etc/nviz2.2/scripts/panel_scale.tcl \
+    etc/nviz2.2/scripts/structlib.tcl \
+    etc/nviz2.2/scripts/panel_label.tcl \
+    etc/nviz2.2/scripts/attPopup.tcl \
+    etc/nviz2.2/scripts/attIsosurfPopup.tcl \
+    etc/nviz2.2/scripts/panel_pos.tcl \
+    etc/nviz2.2/scripts/panel_vol.tcl \
+    etc/nviz2.2/scripts/panelIndex \
+    etc/dm/labels.tcl \
+    etc/dm/cmd.tcl \
+    etc/dm/menu.tcl \
+    etc/nviz2.2/scripts/colorPopup.tcl \
+    etc/nviz2.2/scripts/multimapBrowser.tcl \
+    etc/nviz2.2/scripts/panel_animation.tcl \
+    etc/nviz2.2/scripts/script_support.tcl \
+    etc/nviz2.2/scripts/panel_vect.tcl \
+    etc/nviz2.2/scripts/panel_sdiff.tcl \
+    etc/nviz2.2/scripts/assoc.tcl \
+    etc/nviz2.2/scripts/unique.tcl \
+    etc/nviz2.2/scripts/panel_main.tcl \
+    etc/dm/grassabout.tcl \
+    etc/nviz2.2/scripts/position_procs.tcl \
+    etc/nviz2.2/scripts/panel_lights.tcl \
+    etc/dm/d.m.tcl \
+    etc/nviz2.2/scripts/panel_query.tcl \
+    etc/v.digit/cats.tcl \
+    etc/epsg_option.tcl \
+    etc/nviz2.2/scripts/panel_query_orig.tcl \
+    etc/nviz2.2/scripts/nviz_init.tcl \
+    etc/dm/vector.tcl \
+    etc/nviz2.2/scripts/cutplane_channels.tcl \
+    etc/gis_set.tcl \
+    etc/nviz2.2/scripts/panel_tst.tcl \
+    etc/nviz2.2/scripts/tclIndex \
+    etc/nviz2.2/scripts/send_support.tcl \
+    etc/nviz2.2/scripts/panel_surf.tcl \
+    etc/nviz2.2/scripts/widgets.tcl \
+    etc/dm/group.tcl \
+    etc/dm/tool.tcl \
+    etc/nviz2.2/scripts/panel_color.tcl \
+    etc/v.digit/toolbox.tcl \
+    etc/nviz2.2/scripts/extra_bindings.tcl \
+    etc/nviz2.2/scripts/panel_query_pg.tcl \
+    etc/dm/print.tcl \
+    etc/nviz2.2/scripts/panel_cutplane.tcl \
+    etc/nviz2.2/scripts/panel_site.tcl \
+    etc/nviz2.2/scripts/config.tcl \
+    etc/nviz2.2/scripts/filemapBrowser.tcl \
+    etc/dm/tree.tcl \
+    etc/nviz2.2/scripts/mapBrowser.tcl \
+    etc/nviz2.2/scripts/queue.tcl \
+    etc/dm/raster.tcl \
+    etc/v.digit/settings.tcl \
+    etc/nviz2.2/scripts/wirecolorPopup.tcl \
+    etc/nviz2.2/scripts/fileBrowser.tcl
+do
+    chmod -x $CURDIR/debian/tmp/usr/lib/grass$VERSION/$x
+done
--- grass-6.4.0~rc4.orig/debian/control.in
+++ grass-6.4.0~rc4/debian/control.in
@@ -0,0 +1,65 @@
+Source: grass
+Section: science
+Priority: optional
+Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
+Uploaders: Francesco Paolo Lovergine <frankie@debian.org>
+Build-depends: flex, bison, libreadline5-dev, libncurses5-dev, lesstif2-dev, debhelper (>= 7), dpatch, 
+ libtiff4-dev, tcl-dev (>= 8.4), tk-dev (>= 8.4), libfftw3-dev, libxmu-dev, libglu1-mesa-dev | libglu1-xorg-dev, 
+ libfreetype6-dev, autoconf2.13, autotools-dev, libgdal1-dev (>= 1.5.0), libproj-dev, proj-bin, libjpeg62-dev, 
+ libpng12-dev, libpq-dev, unixodbc-dev, doxygen, fakeroot, libmysqlclient15-dev, graphviz, libsqlite3-dev, python-wxgtk2.8,
+ libcairo2-dev, libwxgtk2.8-dev, python-dev (>= 2.5), swig
+Standards-Version: 3.8.1
+Build-Conflicts: wx2.6-headers
+Homepage: http://grass.osgeo.org/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-grass/packages/grass/
+Vcs-Svn: svn://svn.debian.org/pkg-grass/packages/grass/
+
+Package: grass
+Section: science
+Architecture: any
+Depends: ${shlibs:Depends}, xterm | x-terminal-emulator
+Suggests: grass-doc, gdal-bin, proj-bin, e00compr, avce00, gpsbabel, gpstrans,
+ gnuplot, grass-doc, xml2, wget | curl, python-opengl, python-wxgtk2.8
+Recommends: python (>= 2.5), python-numpy, ghostscript
+Provides: grass@VERSION@
+Description: Geographic Resources Analysis Support System 
+ Commonly referred to as GRASS, this is a Geographic Information
+ System (GIS) used for geospatial data management and analysis,
+ image processing, graphics/map production, spatial modeling, and
+ visualization. GRASS is currently used in academic and commercial
+ settings around the world, as well as by many government agencies
+ and environmental consulting companies.
+
+Package: grass-doc
+Section: doc
+Architecture: all
+Conflicts: grass-doc
+Replaces: grass-doc
+Provides: grass-doc
+Description: Geographic Resources Analysis Support System documentation
+ Commonly referred to as GRASS, this is a Geographic Information
+ System (GIS) used for geospatial data management and analysis,
+ image processing, graphics/map production, spatial modeling, and
+ visualization. GRASS is currently used in academic and commercial
+ settings around the world, as well as by many government agencies
+ and environmental consulting companies.
+ .
+ This package contains HTML documentation for the GRASS system.
+
+Package: grass-dev
+Section: devel
+Architecture: any
+Depends: grass (= ${binary:Version}), libproj-dev
+Suggests: pkg-config
+Provides: grass@VERSION@-dev
+Description: GRASS GIS development files
+ Commonly referred to as GRASS, this is a Geographic Information
+ System (GIS) used for geospatial data management and analysis,
+ image processing, graphics/map production, spatial modeling, and
+ visualization. GRASS is currently used in academic and commercial
+ settings around the world, as well as by many government agencies
+ and environmental consulting companies.
+ .
+ This package contains the header files for developing with GRASS.
+ Install this package if you wish to develop software that manipulates
+ GRASS data sets.
--- grass-6.4.0~rc4.orig/debian/grass.links
+++ grass-6.4.0~rc4/debian/grass.links
@@ -0,0 +1 @@
+usr/bin/grass64 usr/bin/grass
--- grass-6.4.0~rc4.orig/debian/grass.dirs.in
+++ grass-6.4.0~rc4/debian/grass.dirs.in
@@ -0,0 +1,5 @@
+usr/lib/grass@VERSION@
+/usr/bin
+/usr/lib/grass@VERSION@
+/usr/share/doc/grass
+/usr/share/man
--- grass-6.4.0~rc4.orig/debian/copyright
+++ grass-6.4.0~rc4/debian/copyright
@@ -0,0 +1,42 @@
+This package was debianized by Markus Neteler <neteler@itc.it> on
+Mon, 10 Nov 2003 17:59:04 +0100.
+
+It was downloaded from http://grass.osgeo.org
+
+The upstream contributors are listed in the AUTHORS file.
+
+The Geographic Resources Analysis and Support System (GRASS)
+Geographic Information System (GIS) is Copyright by members
+of the GRASS Development Team.
+
+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.
+
+Parts of GRASS are not copyright by the GRASS development team.
+The original authors hold the copyrights and you have to abide
+to their licensing terms where noted.
+(Keep in mind that code linking into GRASS can only be distributed
+if compatible with the GPL.)
+
+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 (GPL) for more details.
+
+On Debian systems, the complete text of the GNU General Public
+License can be found in the /usr/share/common-licenses/GPL file.
+
+Questions regarding GRASS GIS should be directed to the
+GRASS Development Team at the following address:
+
+ GRASS Development Team
+ c/o M. Neteler
+ Fondazione Mach - Centre for Alpine Ecology
+ 38100 Viote del Monte Bondone (Trento)
+ Italy
+ neteler AT cealp.it
+
+Internet:  http://grass.osgeo.org
+           http://www.grass-gis.org
--- grass-6.4.0~rc4.orig/debian/grass.links.in
+++ grass-6.4.0~rc4/debian/grass.links.in
@@ -0,0 +1 @@
+usr/bin/grass@VERSION@ usr/bin/grass
--- grass-6.4.0~rc4.orig/debian/grass-dev.links.in
+++ grass-6.4.0~rc4/debian/grass-dev.links.in
@@ -0,0 +1 @@
+usr/share/pkgconfig/grass@VERSION@.pc usr/share/pkgconfig/grass.pc
--- grass-6.4.0~rc4.orig/debian/grass-doc.install.in
+++ grass-6.4.0~rc4/debian/grass-doc.install.in
@@ -0,0 +1,5 @@
+usr/lib/grass@VERSION@/docs/html usr/share/doc/grass-doc
+usr/lib/grass@VERSION@/man/man1 usr/share/man
+programming-manual/db usr/share/doc/grass-doc/programming-manual/html
+programming-manual/gis usr/share/doc/grass-doc/programming-manual/html
+programming-manual/vector usr/share/doc/grass-doc/programming-manual/html
--- grass-6.4.0~rc4.orig/debian/grass-dev.install
+++ grass-6.4.0~rc4/debian/grass-dev.install
@@ -0,0 +1 @@
+usr/lib/grass64/include
--- grass-6.4.0~rc4.orig/debian/grass-dev.dirs
+++ grass-6.4.0~rc4/debian/grass-dev.dirs
@@ -0,0 +1,3 @@
+usr/lib/grass64/include
+usr/lib/grass64/include/Make
+usr/share/pkgconfig
--- grass-6.4.0~rc4.orig/debian/grass-dev.install.in
+++ grass-6.4.0~rc4/debian/grass-dev.install.in
@@ -0,0 +1 @@
+usr/lib/grass@VERSION@/include
--- grass-6.4.0~rc4.orig/debian/patches/htmlgen-fakeroot.dpatch
+++ grass-6.4.0~rc4/debian/patches/htmlgen-fakeroot.dpatch
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## htmlgen-fakeroot.dpatch by  <debian@adkgis.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: use fakeroot to avoid weird stat/permission problem when
+## DP: building under pbuilder. This was preventing most man
+## DP: pages from being built.
+
+@DPATCH@
+diff -urNad grass-6.3~20070922~/include/Make/Html.make grass-6.3~20070922/include/Make/Html.make
+--- grass-6.3~20071013~/include/Make/Html.make	2007-10-16 09:51:23.000000000 +0200
++++ grass-6.3~20071013/include/Make/Html.make	2007-10-16 10:05:27.000000000 +0200
+@@ -34,7 +34,7 @@
+ 	GISBASE=$(RUN_GISBASE) \
+ 	PATH="$(BIN):$$PATH" \
+ 	$(LD_LIBRARY_PATH_VAR)="$(BIN):$(ARCH_LIBDIR):$($(LD_LIBRARY_PATH_VAR))" \
+-	LC_ALL=C $(1) --html-description < /dev/null | grep -v '</body>\|</html>' > $(PGM).tmp.html ; true
++	LC_ALL=C fakeroot $(1) --html-description < /dev/null | grep -v '</body>\|</html>' > $(PGM).tmp.html ; true
+ 
+ $(HTMLDIR)/$(PGM).html: $(HTMLSRC)
+ 	if [ "$(HTMLSRC)" != "" ] ; then $(call htmldesc,$<) ; fi
--- grass-6.4.0~rc4.orig/debian/patches/xterm.dpatch
+++ grass-6.4.0~rc4/debian/patches/xterm.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## xterm.dpatch by Francesco Paolo Lovergine <frankie@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: prefer to let alternatives chose the xterm used
+
+@DPATCH@
+diff -urNad grass-preview-6.3.0~/lib/init/grass-xterm-wrapper grass-preview-6.3.0/lib/init/grass-xterm-wrapper
+--- grass-preview-6.3.0~/lib/init/grass-xterm-wrapper	2008-04-12 01:26:58.000000000 +0200
++++ grass-preview-6.3.0/lib/init/grass-xterm-wrapper	2008-04-21 14:09:45.000000000 +0200
+@@ -3,7 +3,7 @@
+ 
+ if [ -z "$GRASS_XTERM" ] ; then
+    # find a working xterm or xterm compatible executable
+-   TERM_TRY="xterm rxvt x-terminal-emulator"
++   TERM_TRY="x-terminal-emulator rxvt xterm"
+    for TERM_PROG in $TERM_TRY ; do
+       if [ -x "`which $TERM_PROG`" ] ; then
+          GRASS_XTERM="$TERM_PROG"
--- grass-6.4.0~rc4.orig/debian/patches/pager.dpatch
+++ grass-6.4.0~rc4/debian/patches/pager.dpatch
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## pager.dpatch by Francesco Paolo Lovergine <frankie@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: As per debian wishes, choose the pager based on what 'pager' is
+## DP: set to rather than the default of 'more'.
+## DP: Problem with this patch: the default pager is usually 'less', which
+## DP: is rather inappropriate for use with g.list where output is usally
+## DP: less than 25 lines and it is useful to have the text remain on the
+## DP: terminal after the pager is finished. IMO (HB) this is a diservice
+## DP: to the user, who would be better served keeping the default as
+## DP: 'more', or if that is unacceptable to debian, then use 'cat' and
+## DP: have no pager turned on by default.
+## DP: Note this in README.Debian??
+
+@DPATCH@
+diff -urNad grass-6.3~20070922~/lib/init/init.sh grass-6.3~20070922/lib/init/init.sh
+--- grass-6.3~20070922~/lib/init/init.sh	2007-09-26 11:30:17.000000000 +0200
++++ grass-6.3~20070922/lib/init/init.sh	2007-09-26 11:32:48.000000000 +0200
+@@ -229,10 +229,12 @@
+ 
+ # Set some environment variables if they are not set
+ if [ ! "$GRASS_PAGER" ] ; then
+-    if [ -x /bin/more ] || [ -x /usr/bin/more ] ; then
+-        GRASS_PAGER=more
++    if [ -x /usr/bin/pager ] ; then
++      	GRASS_PAGER=pager
+     elif [ -x /bin/less ] || [ -x /usr/bin/less ] ; then
+         GRASS_PAGER=less
++    elif [ -x /bin/more ] || [ -x /usr/bin/more ] ; then
++         GRASS_PAGER=more
+     elif [ "$MINGW" ] ; then
+         GRASS_PAGER=more
+     else
--- grass-6.4.0~rc4.orig/debian/patches/instdir.dpatch
+++ grass-6.4.0~rc4/debian/patches/instdir.dpatch
@@ -0,0 +1,41 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## instdir.dpatch by Francesco Paolo Lovergine <frankie@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Modifies destination directory to use the grass<major><minor> simplified schema.
+
+@DPATCH@
+diff -urNad grass-6.4.0~rc3~/configure grass-6.4.0~rc3/configure
+--- grass-6.4.0~rc3~/configure	2009-03-02 17:41:55.000000000 +0100
++++ grass-6.4.0~rc3/configure	2009-03-02 17:42:36.000000000 +0100
+@@ -1298,7 +1298,7 @@
+ if test -n "$MACOSX_APP" ; then
+     INSTDIR='${prefix}'"/GRASS-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.app/Contents/MacOS"
+ else
+-    INSTDIR='${prefix}'"/grass-${GRASS_VERSION_MAJOR}.${GRASS_VERSION_MINOR}.${GRASS_VERSION_RELEASE}"
++    INSTDIR='${prefix}'"/grass${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR}"
+ fi
+ 
+ 
+diff -urNad grass-6.4.0~rc3~/grass.pc.in grass-6.4.0~rc3/grass.pc.in
+--- grass-6.4.0~rc3~/grass.pc.in	2009-03-02 17:41:55.000000000 +0100
++++ grass-6.4.0~rc3/grass.pc.in	2009-03-02 17:44:06.000000000 +0100
+@@ -1,12 +1,12 @@
+ # Package Information for pkg-config
+ 
+-prefix=@prefix@/grass-@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@
+-exec_prefix=@prefix@/grass-@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@
+-libdir=@prefix@/grass-@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@/lib
+-includedir=@prefix@/grass-@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@/include
++prefix=@prefix@/grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@
++exec_prefix=@prefix@/grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@
++libdir=@prefix@/grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@/lib
++includedir=@prefix@/grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@/include
+ 
+ Name: GRASS
+ Description: GRASS GIS
+ Version: @GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@
+-Libs: -L@prefix@/grass-@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@/lib -lgrass_I -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vect -lgrass_dbmibase -lgrass_dbmiclient
+-Cflags: -I@prefix@/grass-@GRASS_VERSION_MAJOR@.@GRASS_VERSION_MINOR@.@GRASS_VERSION_RELEASE@/include
++Libs: -L@prefix@/grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@/lib -lgrass_I -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vect -lgrass_dbmibase -lgrass_dbmiclient
++Cflags: -I@prefix@/grass@GRASS_VERSION_MAJOR@@GRASS_VERSION_MINOR@/include
--- grass-6.4.0~rc4.orig/debian/patches/00list
+++ grass-6.4.0~rc4/debian/patches/00list
@@ -0,0 +1,6 @@
+htmlgen-fakeroot
+www-browser
+pager
+xterm
+instdir
+gcc44
--- grass-6.4.0~rc4.orig/debian/patches/www-browser.dpatch
+++ grass-6.4.0~rc4/debian/patches/www-browser.dpatch
@@ -0,0 +1,68 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## www-browser.dpatch by Hamish Bowman <hamish-guest alioth.debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use www-browser as HTML browser, the Debian way
+
+@DPATCH@
+diff -urNad grass6_devel/lib/init/init.sh.6.4svn grass6_devel/lib/init/init.sh
+--- grass6_devel/lib/init/init.sh.ORIG	2008-10-31 02:26:25.000000000 +1300
++++ grass6_devel/lib/init/init.sh	2008-10-31 02:16:53.000000000 +1300
+@@ -315,53 +315,11 @@
+ 
+ # try and find a web browser if one isn't already specified
+ if [ ! "$GRASS_HTML_BROWSER" ] ; then
+-
+-    if [ "$MACOSX" ] ; then
+-        # OSX doesn't execute browsers from the shell PATH - route thru a script
+-        GRASS_HTML_BROWSER="$ETC/html_browser_mac.sh"
+-        GRASS_HTML_BROWSER_MACOSX="-b com.apple.helpviewer"
+-        export GRASS_HTML_BROWSER_MACOSX
+-
+-    elif [ "$MINGW" -o "$CYGWIN" ] ; then
+-	# MinGW startup moved to into init.bat
+-	iexplore="$SYSTEMDRIVE/Program Files/Internet Explorer/iexplore.exe"
+-	if [ -f "$iexplore" ] ; then
+-	    GRASS_HTML_BROWSER=$iexplore
+-	else
+-	    GRASS_HTML_BROWSER="iexplore"
+-	fi
+-
+-    else
+-      # the usual suspects
+-      BROWSERS="htmlview konqueror mozilla mozilla-firefox firefox opera netscape dillo"
+-      for BROWSER in $BROWSERS ; do
+-	for i in `echo "$PATH" | sed 's/^:/.:/
+-                                s/::/:.:/g
+-                                s/:$/:./
+-                                s/:/ /g'`
+-	do
+-	  if [ -f "$i/$BROWSER" ] ; then  
+-            GRASS_HTML_BROWSER="$BROWSER"
+-            break
+-	  fi
+-	done
+-	if [ -n "$GRASS_HTML_BROWSER" ] ; then
+-	   break
++	if [ -x /usr/bin/x-www-browser ] ; then
++		GRASS_HTML_BROWSER=x-www-browser
++	else 
++		GRASS_HTML_BROWSER=true
+ 	fi
+-      done
+-    fi
+-   
+-elif [ "$MACOSX" ] ; then
+-    # OSX doesn't execute browsers from the shell PATH - route thru a script
+-    GRASS_HTML_BROWSER_MACOSX="-b $GRASS_HTML_BROWSER"
+-    export GRASS_HTML_BROWSER_MACOSX
+-    GRASS_HTML_BROWSER="$ETC/html_browser_mac.sh"
+-fi
+-
+-if [ ! "$GRASS_HTML_BROWSER" ] ; then
+-    echo "WARNING: Searched for a web browser, but none found." 1>&2
+-    # even so we set konqueror to make lib/gis/parser.c happy:
+-    GRASS_HTML_BROWSER=konqueror
+ fi
+ export GRASS_HTML_BROWSER
+ 
--- grass-6.4.0~rc4.orig/debian/patches/gcc44.dpatch
+++ grass-6.4.0~rc4/debian/patches/gcc44.dpatch
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## gcc44.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 grass-6.4.0~rc4~/imagery/i.atcorr/Output.h grass-6.4.0~rc4/imagery/i.atcorr/Output.h
+--- grass-6.4.0~rc4~/imagery/i.atcorr/Output.h	2008-12-19 21:29:50.000000000 +0100
++++ grass-6.4.0~rc4/imagery/i.atcorr/Output.h	2009-05-12 18:13:06.000000000 +0200
+@@ -1,6 +1,7 @@
+ #ifndef MY_OUTPUT_H
+ #define MY_OUTPUT_H
+ 
++#include <cstdio>
+ #include <iostream>
+ #include <sstream>
+ #include <string>
