--- sqwebmail-de-5.5.1.orig/debian/maketar.sh
+++ sqwebmail-de-5.5.1/debian/maketar.sh
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+DIFFFILE="$1"
+if [ ! -f "$DIFFFILE" ]; then
+	echo "no valid diff file given"
+	exit 1
+fi
+
+shift
+
+TEMPDIR=`mktemp -d`
+
+if [ "$?" != "0" -o ! -d "$TEMPDIR" ]; then
+	echo "error creating temporary directory"
+	exit 1;
+fi;
+
+set -e
+
+UPSTREAMDIR=sqwebmail-de-`echo ${DIFFFILE##*/} | perl -pe 's/^.*?([0-9.]+)\..*?$/$1/'`
+TARFILE=$UPSTREAMDIR.tar.gz
+
+FUPD="$TEMPDIR/$UPSTREAMDIR"
+mkdir $FUPD
+
+
+cp -v "$DIFFFILE" "$FUPD"
+continue=yes
+while [ -n "$continue" ]; do
+	file=$1
+	if [ -f "$file" ]; then
+		cp -v $file "$FUPD"
+	else 
+		continue=""
+	fi
+	shift || true
+done
+CPWD=`pwd`
+cd $TEMPDIR
+#bunzip the patch
+cd $UPSTREAMDIR
+cd ..
+tar czvf $TARFILE $UPSTREAMDIR
+
+cd $CPWD
+
+COPYTO=${DIFFFILE%/*}
+
+if [ ! -d "$COPYTO" ]; then
+	COPYTO=.
+fi
+
+echo "copying result to $COPYTO"
+
+cp $TEMPDIR/$UPSTREAMDIR.tar.gz $COPYTO
+rm -fr "$TEMPDIR"
--- sqwebmail-de-5.5.1.orig/debian/control
+++ sqwebmail-de-5.5.1/debian/control
@@ -0,0 +1,14 @@
+Source: sqwebmail-de
+Section: mail
+Priority: optional
+Maintainer: Willi Mann <willi@wm1.at>
+Build-Depends: debhelper (>= 5), sqwebmail (>= 0.65.0), bzip2
+Standards-Version: 3.9.2
+Homepage: http://www.4e4.de/internet_eng.html
+
+Package: sqwebmail-de
+Architecture: all
+Depends: sqwebmail, ${misc:Depends}
+Description: German translations for the SqWebMail webmail service
+ This package contains German HTML templates which are used by the sqwebmail
+ program to render pages.
--- sqwebmail-de-5.5.1.orig/debian/copyright
+++ sqwebmail-de-5.5.1/debian/copyright
@@ -0,0 +1,44 @@
+This package was debianized by Willi Mann <willi@wm1.at> on
+Tue, 14 Nov 2006 09:14:10 +0100
+
+It was downloaded from:
+http://www.4e4.de/de-de-5.1.3-2006-11-15.diff.bz2
+
+Copyright:
+© 2006,2008 Willi Mann
+© 2006 Martin Kos
+© 2006 Uwe Mönks
+© 2005,2007 Peter Bieringer
+© 2004 Georg Lutz
+© 2003,2004,2006,2009 Alexander Bruns
+© 2003 Sebastian Pfeiffer
+
+The source of this package is just a patch to sqwebmail's upstream sources.
+See /usr/share/doc/sqwebmail/copyright for sqwebmail's copyright information.
+
+Note that the copyright holders of this patch declared in the file COPYRIGHT:
+
+The copyright holders hereby declare that this patch can be obtained
+under any free software license that was or is applied to Sqwebmail.
+Currently (July 2009), this is GPL-2 and GPL-3. A license is considered
+a free software license if it is declared so be the Free Software
+Foundation (see http://www.fsf.org/licensing/licenses).
+
+License - GPL-3:
+
+   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 3 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 <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-3'.
+
--- sqwebmail-de-5.5.1.orig/debian/changelog
+++ sqwebmail-de-5.5.1/debian/changelog
@@ -0,0 +1,78 @@
+sqwebmail-de (5.5.1-1) unstable; urgency=low
+
+  * New upstream release
+    - now builds with courier 0.66.1 (closes: #628356, thanks to
+      Lucas Nussbaum for the report)
+  * Update to Standards-Version 3.9.2 (no changes)
+
+ -- Willi Mann <willi@wm1.at>  Mon, 30 May 2011 23:54:13 +0200
+
+sqwebmail-de (5.4.1-1) unstable; urgency=low
+
+  * New upstream release 
+    - now builds with courier 0.65.0 (closes: #584358, which is RC bug so
+      urgency=medium)
+  * Fix lintian warnings: 
+    - Update to Standards-Version 3.8.4 (no changes)
+    - Add ${misc:Depends} to Depends
+
+ -- Willi Mann <willi@wm1.at>  Tue, 15 Jun 2010 18:56:33 +0200
+
+sqwebmail-de (5.3.1-1) unstable; urgency=low
+
+  * New upstream release
+    - Fix FTBFS bug, closes: #533978
+      - make patch work agaist 0.61.2
+      - build depend on >= 0.61.2
+  * Fix as reported by lintian
+    - Bump Standards-Version to 3.8.2
+    - Proper Copyright Statements
+    - License clarification
+
+ -- Willi Mann <willi@wm1.at>  Wed, 05 Aug 2009 10:49:18 +0200
+
+sqwebmail-de (5.1.6-2) unstable; urgency=low
+
+  * Fix FTBFS bug, closes: #474881:
+    - make patch work against 0.59.0
+    - build depend on sqwebmail >= 0.59.0
+
+ -- Willi Mann <willi@wm1.at>  Sat, 12 Apr 2008 20:38:00 +0200
+
+sqwebmail-de (5.1.6-1) unstable; urgency=low
+
+  * New upstream release
+  * for courier-sqwebmail 0.56.0
+    + some trivial patches to support 0.58.0
+  * add script to create tar.gz containing diff
+    It is now unzipped, so (minor) edits to the patch can be represented in
+    debian's diff.gz
+
+ -- Willi Mann <willi@wm1.at>  Mon, 10 Dec 2007 16:32:52 +0100
+
+sqwebmail-de (5.1.3.20061115-1) unstable; urgency=low
+
+  * Package hijack with "oh, that's great" from previous maintainer.
+  * Completely rewritten package with current templates (closes: #240134) 
+
+ -- Willi Mann <willi@wm1.at>  Mon, 13 Nov 2006 18:37:02 +0100
+
+sqwebmail-de (3.5.0.20030301-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Remove useless Build-Depends-Indep on automake1.6 and rebootstraping
+    with <http://sam.zoy.org/autotools/bootstrap> (AM_MAINTAINER_MODE set in
+    configure.in) (Closes: #374487)
+  * Make lintian happy
+     + bump Standards-Version to 3.7.2
+     + move debhelper to Build-Depends
+     + bump debhelper compatibility version
+     + update FSF address.
+
+ -- Mohammed Adnène Trojette <adn+deb@diwi.org>  Wed, 28 Jun 2006 18:02:03 +0200
+
+sqwebmail-de (3.5.0.20030301-1) unstable; urgency=low
+
+  * Initial packaging (Closes: #185621,#185038)
+
+ -- David Schmitt <david@schmitt.edv-bus.at>  Wed, 19 Mar 2003 13:18:30 +0100
--- sqwebmail-de-5.5.1.orig/debian/links
+++ sqwebmail-de-5.5.1/debian/links
@@ -0,0 +1,4 @@
+/usr/lib/courier/sqwebmail/html/de-de /usr/lib/courier/sqwebmail/html/de-at
+/usr/lib/courier/sqwebmail/html/de-de /usr/lib/courier/sqwebmail/html/de-ch
+/usr/lib/courier/sqwebmail/html/de-de /usr/lib/courier/sqwebmail/html/de-li
+/usr/lib/courier/sqwebmail/html/de-de /usr/lib/courier/sqwebmail/html/de-lu
--- sqwebmail-de-5.5.1.orig/debian/compat
+++ sqwebmail-de-5.5.1/debian/compat
@@ -0,0 +1 @@
+5
--- sqwebmail-de-5.5.1.orig/debian/rules
+++ sqwebmail-de-5.5.1/debian/rules
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PATCHFILE=`ls *diff `
+
+ROOT=debian/sqwebmail-de
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	test -f "$(PATCHFILE)"
+	# Add here commands to compile the package.
+	mkdir htmltree
+	cp -a /usr/lib/courier/sqwebmail/html/en-us/ htmltree
+	rm htmltree/en-us/ISPELLDICT
+	echo -n default > htmltree/en-us/ISPELLDICT
+	cat $(PATCHFILE) | (cd htmltree/en-us; patch -p1 )
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	# Add here commands to clean up after the build process.
+	-rm -fr htmltree
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean
+	dh_installdirs
+
+	# Add here commands to install the package into debian/sqwebmail-de
+	mkdir -p $(ROOT)/usr/lib/courier/sqwebmail/html/de-de
+	cp -a htmltree/en-us/* $(ROOT)/usr/lib/courier/sqwebmail/html/de-de
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installchangelogs
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# Nothing to do
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
