--- duplicity-0.5.06.orig/debian/patches/00list
+++ duplicity-0.5.06/debian/patches/00list
@@ -0,0 +1,6 @@
+01boto-vars
+01manifest
+01sysexit
+
+
+
--- duplicity-0.5.06.orig/debian/patches/01manifest.dpatch
+++ duplicity-0.5.06/debian/patches/01manifest.dpatch
@@ -0,0 +1,23 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01manifest.dpatch by  <az@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: upstream #25403: manifests vs. archive-dir
+
+@DPATCH@
+diff -urNad duplicity-0.5.06~/src/gpg.py duplicity-0.5.06/src/gpg.py
+--- duplicity-0.5.06~/src/gpg.py	2009-01-10 00:05:11.000000000 +1000
++++ duplicity-0.5.06/src/gpg.py	2009-01-31 14:27:58.717319718 +1000
+@@ -158,11 +158,7 @@
+             self.gpg_output.close()
+             if self.status_fp:
+                 self.set_signature()
+-            try:
+-                self.gpg_process.wait()
+-            except IOError, message:
+-                if message.args[0] != "GnuPG exited non-zero, with code 131072":
+-                    raise
++            self.gpg_process.wait()
+         if log.getverbosity() >= 5:
+             self.print_log()
+         self.logger_fp.close()
--- duplicity-0.5.06.orig/debian/patches/01boto-vars.dpatch
+++ duplicity-0.5.06/debian/patches/01boto-vars.dpatch
@@ -0,0 +1,38 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01boto-vars.dpatch by  <az@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix #480417: allow aws_access_* coming from ~/.boto instead of env
+
+@DPATCH@
+diff -urNad duplicity-0.5.02~/src/backends/botobackend.py duplicity-0.5.02/src/backends/botobackend.py
+--- duplicity-0.5.02~/src/backends/botobackend.py	2008-09-22 00:21:44.000000000 +1000
++++ duplicity-0.5.02/src/backends/botobackend.py	2008-10-15 08:44:59.538560951 +1000
+@@ -29,9 +29,11 @@
+     Backend for Amazon's Simple Storage System, (aka Amazon S3), though
+     the use of the boto module, (http://code.google.com/p/boto/).
+ 
+-    To make use of this backend you must export the environment variables
+-    AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY with your Amazon Web 
+-    Services key id and secret respectively.
++    To make use of this backend you must set aws_access_key_id
++    and aws_secret_access_key in your ~/.boto or /etc/boto.cfg 
++    with your Amazon Web Services key id and secret respectively.
++    Alternatively you can export the environment variables	
++    AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
+     """
+ 
+     def __init__(self, parsed_url):
+@@ -93,12 +95,6 @@
+             log.FatalError("This backend  (s3) requires boto library, version 0.9d or later, "
+                            "(http://code.google.com/p/boto/).")
+ 
+-        if not os.environ.has_key('AWS_ACCESS_KEY_ID'):
+-            raise BackendException("The AWS_ACCESS_KEY_ID environment variable is not set.")
+-
+-        if not os.environ.has_key('AWS_SECRET_ACCESS_KEY'):
+-            raise BackendException("The AWS_SECRET_ACCESS_KEY environment variable is not set.")
+-
+         if parsed_url.scheme == 's3+http':
+             # Use the default Amazon S3 host.
+             self.conn = S3Connection()
--- duplicity-0.5.06.orig/debian/patches/01sysexit.dpatch
+++ duplicity-0.5.06/debian/patches/01sysexit.dpatch
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01sysexit.dpatch by  <az@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: upstream #25379: older pythons error-out inappropriately
+
+@DPATCH@
+diff -urNad duplicity-0.5.06~/duplicity duplicity-0.5.06/duplicity
+--- duplicity-0.5.06~/duplicity	2009-01-10 00:05:11.000000000 +1000
++++ duplicity-0.5.06/duplicity	2009-01-31 14:26:02.565314440 +1000
+@@ -589,6 +589,8 @@
+         log.FatalError("%s: %s" % (e.__class__.__name__, str(e)),
+                        log.ErrorCode.user_error,
+                        e.__class__.__name__)
++    except SystemExit, e:
++        pass
+     except Exception, e:
+         log.FatalError("%s" % (''.join(traceback.format_exception(*sys.exc_info()))),
+                        log.ErrorCode.exception,
--- duplicity-0.5.06.orig/debian/dirs
+++ duplicity-0.5.06/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- duplicity-0.5.06.orig/debian/preinst
+++ duplicity-0.5.06/debian/preinst
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+# fix my previous errors
+
+rm -rf /usr/lib/python2.2/site-packages/duplicity/
+rm -rf /usr/lib/python2.3/site-packages/duplicity/
+
+#DEBHELPER#
--- duplicity-0.5.06.orig/debian/copyright
+++ duplicity-0.5.06/debian/copyright
@@ -0,0 +1,59 @@
+This package was originally debianized by Martin Wuertele <maxx@debian.org>
+in 2003. Since April 2007 it is maintained 
+by Alexander Zangerl <az@debian.org>.
+
+It was downloaded from http://www.nongnu.org/duplicity/
+
+Upstream Authors: 
+	Ben Escoto <bescoto@stanford.edu> (duplicity author)
+	Jiri Tyr <jiri.tyr@e-learning.vslib.cz> (sftp)
+	intrigeri <intrigeri@boum.org> (sftp-command)
+	Mathias Wagner <mathias.wagner@physik.tu-darmstadt.de> (compress)
+	Joey Hess <joeyh@debian.org> (bashishm)
+
+
+Copyright:
+
+duplicity:
+
+Copyright 2002, 2003, 2004, 2005, 2006 Ben Escoto <bescoto@stanford.edu>
+          2005 Jiri Tyr <jiri.tyr@e-learning.vslib.cz>
+	  2006 intrigeri <intrigeri@boum.org>
+	  2006 Mathias Wagner <mathias.wagner@physik.tu-darmstadt.de>
+	  2006 Joey Hess <joeyh@debian.org>
+
+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, or (at your option) any later version.
+
+On Debian GNU/Linux systems, the complete text of the GNU General Public
+License can be found in `/usr/share/common-licenses/GPL'.
+
+
+tarfile:
+
+Copyright (C) 2002 Lars Gustäbel <lars@gustaebel.de>
+All rights reserved.
+
+Permission  is  hereby granted,  free  of charge,  to  any person
+obtaining a  copy of  this software  and associated documentation
+files  (the  "Software"),  to   deal  in  the  Software   without
+restriction,  including  without limitation  the  rights to  use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies  of  the  Software,  and to  permit  persons  to  whom the
+Software  is  furnished  to  do  so,  subject  to  the  following
+conditions:
+
+The above copyright  notice and this  permission notice shall  be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS  IS", WITHOUT WARRANTY OF ANY  KIND,
+EXPRESS OR IMPLIED, INCLUDING  BUT NOT LIMITED TO  THE WARRANTIES
+OF  MERCHANTABILITY,  FITNESS   FOR  A  PARTICULAR   PURPOSE  AND
+NONINFRINGEMENT.  IN  NO  EVENT SHALL  THE  AUTHORS  OR COPYRIGHT
+HOLDERS  BE LIABLE  FOR ANY  CLAIM, DAMAGES  OR OTHER  LIABILITY,
+WHETHER  IN AN  ACTION OF  CONTRACT, TORT  OR OTHERWISE,  ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+
--- duplicity-0.5.06.orig/debian/rules
+++ duplicity-0.5.06/debian/rules
@@ -0,0 +1,93 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+PREFIX := debian/duplicity/usr
+
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+
+# we use dpatch
+include /usr/share/dpatch/dpatch.make
+
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+# Add here commands to configure the package.
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: patch configure-stamp 
+	dh_testdir
+
+# Add here commands to compile the package.
+	python setup.py build
+	touch build-stamp
+
+clean: clean1 unpatch
+clean1:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+# Add here commands to clean up after the build process.
+	rm -rf *.pyc
+	rm -rf build
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+# Add here commands to install the package into debian/duplicity.
+	python setup.py install --prefix=$(PREFIX) --no-compile
+
+# remove GnuPGInterface.py as we already have it in
+# python-gnupginterface
+	rm -f $(PREFIX)/lib/python*/site-packages/duplicity/GnuPGInterface.py
+
+# fix permission for tarfile.py
+	chmod 755 $(PREFIX)/lib/python*/site-packages/duplicity/tarfile.py
+# remove docs as we create them with debhelper
+	rm -rf $(PREFIX)/share/doc/duplicity-*
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_pycentral
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples
+	dh_installman
+	dh_installchangelogs CHANGELOG
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- duplicity-0.5.06.orig/debian/NEWS.Debian
+++ duplicity-0.5.06/debian/NEWS.Debian
@@ -0,0 +1,35 @@
+duplicity (0.4.8-1) unstable; urgency=low
+
+  * There was a major problem with the rsync backend
+    in version 0.4.7 (and upstream's 0.4.8). 
+
+    If you used these versions more than once,
+    YOUR BACKED-UP DATA WAS LOST!
+
+    This version fixes the problem. 
+      
+ -- Alexander Zangerl <az@debian.org>  Fri, 21 Dec 2007 17:31:52 +1000
+
+duplicity (0.4.7-1) unstable; urgency=low
+
+  * duplicity's command line format has changed with 0.4.4.
+    these changes are NOT BACKWARDS COMPATIBLE!
+    please refer to the duplicity(1) manpage for a detailed description.
+  
+  * old-style rsync urls with modules (and only with modules!)
+    must be written differently now, because the new url parser 
+    library is stricter than before (and because rsync's way
+    of saying "module please!" by ending the hostname with
+    a colon is not rfc-compliant).
+  
+    a url referring to module modname on bhost for versions < 0.4.7 
+    would have looked like
+  
+    	rsync://buser@bhost:/modname/somedir
+  
+    and now must be written as
+  
+    	rsync://buser@bhost::/modname/somedir
+    
+ -- Alexander Zangerl <az@debian.org>  Sat,  8 Dec 2007 10:32:59 +1000
+
--- duplicity-0.5.06.orig/debian/duplicity.examples
+++ duplicity-0.5.06/debian/duplicity.examples
@@ -0,0 +1 @@
+debian/examples/system-backup
--- duplicity-0.5.06.orig/debian/changelog
+++ duplicity-0.5.06/debian/changelog
@@ -0,0 +1,384 @@
+duplicity (0.5.06-2~bpo40+1) etch-backports; urgency=low
+
+  * backport-build for etch
+
+ -- Alexander Zangerl <az@debian.org>  Sat, 31 Jan 2009 15:23:37 +1000
+
+duplicity (0.5.06-2) unstable; urgency=low
+
+  * applied most recent upstream fixes 
+
+ -- Alexander Zangerl <az@debian.org>  Sat, 31 Jan 2009 14:31:17 +1000
+
+duplicity (0.5.06-1) unstable; urgency=low
+
+  * New upstream release
+  * built against sid, not etch (closes: #513446)
+
+ -- Alexander Zangerl <az@debian.org>  Fri, 30 Jan 2009 11:32:32 +1000
+
+duplicity (0.5.02-2) unstable; urgency=low
+
+  * lifted standards version
+  * added homepage to control (closes: #512798)
+
+ -- Alexander Zangerl <az@debian.org>  Wed, 28 Jan 2009 11:59:57 +1000
+
+duplicity (0.5.02-1) unstable; urgency=low
+
+  * New upstream release (closes: #502207)
+
+ -- Alexander Zangerl <az@debian.org>  Wed, 15 Oct 2008 08:38:15 +1000
+
+duplicity (0.4.12-2) unstable; urgency=low
+
+  * applied upstream patch to repair --no-encryption option
+    (which wrongly requested a passphrase) (closes: #497071)
+
+ -- Alexander Zangerl <az@debian.org>  Sun, 31 Aug 2008 12:24:40 +1000
+
+duplicity (0.4.12-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Alexander Zangerl <az@debian.org>  Thu, 21 Aug 2008 10:49:04 +1000
+
+duplicity (0.4.11-2) unstable; urgency=high
+
+  * rebuilt for testing's 2.5 python (closes: #480568)
+
+ -- Alexander Zangerl <az@debian.org>  Sun, 11 May 2008 11:10:01 +1000
+
+duplicity (0.4.11-1) unstable; urgency=low
+
+  * New upstream release
+  * make duplicity accept s3 access credentials from boto config files
+    and not just the environment (closes: #480417)
+
+ -- Alexander Zangerl <az@debian.org>  Sat, 10 May 2008 11:17:39 +1000
+
+duplicity (0.4.10-2) unstable; urgency=low
+
+  * applied patch to work around newer python-boto behaviour
+    which can make existing S3 backups inaccessible. (closes: #475890)
+
+ -- Alexander Zangerl <az@debian.org>  Tue, 15 Apr 2008 12:46:32 +1000
+
+duplicity (0.4.10-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Alexander Zangerl <az@debian.org>  Mon, 31 Mar 2008 22:19:16 +1000
+
+duplicity (0.4.8-1) unstable; urgency=high
+
+  * New upstream release
+  * fixed backup data corruption for rsync backend
+
+ -- Alexander Zangerl <az@debian.org>  Fri, 21 Dec 2007 17:16:42 +1000
+
+duplicity (0.4.7-1) unstable; urgency=low
+
+  * New upstream release (closes: #452700)
+
+ -- Alexander Zangerl <az@debian.org>  Sat,  8 Dec 2007 10:29:26 +1000
+
+duplicity (0.4.3-6) unstable; urgency=low
+
+  * fixed some manpage typos (closes: #450881)
+
+ -- Alexander Zangerl <az@debian.org>  Thu, 15 Nov 2007 12:21:48 +1000
+
+duplicity (0.4.3-5) unstable; urgency=low
+
+  * minor manpage improvements in response to #447538
+
+ -- Alexander Zangerl <az@debian.org>  Wed, 24 Oct 2007 12:22:14 +1000
+
+duplicity (0.4.3-4) unstable; urgency=low
+
+  * applied Christoph Martin's patch to the ftp backend 
+    to make duplicity cooperate with etch's ncftp (closes: #444972)
+
+ -- Alexander Zangerl <az@debian.org>  Sat,  6 Oct 2007 20:02:43 +1000
+
+duplicity (0.4.3-3) unstable; urgency=medium
+
+  * reworked the "no passphrase" patch to properly cover 
+    symmetric encryption, where a passphrase is always needed 
+    (closes: #443803)
+
+ -- Alexander Zangerl <az@debian.org>  Tue, 25 Sep 2007 12:14:26 +1000
+
+duplicity (0.4.3-2) unstable; urgency=low
+
+  * now suggests ncftp (closes: #442834) and mentions that in NEWS.Debian
+    i have decided that Recommends: is too strong here, as ftp is a lousy
+    protocol which should be avoided as much as possible.
+  * applied upstream fix for leaking ftp passphrases via the commandline
+    (closes: #442840). the fix works only with ncftp version 3.2.1
+    and newer, which means etch is out.
+  * applied upstream patch for upstream-#21123, which fixes another 
+    ftp backend problem.
+  * finally fixed the superfluous passphrase dialogs
+  * tidied build process for easier integration into ubuntu, removing
+    some unnecessary python version dependencies
+  * applied upstream patch for upstream-#6211, restoring strict host key 
+    checks for the ssh backend.
+
+ -- Alexander Zangerl <az@debian.org>  Wed, 19 Sep 2007 22:36:04 +1000
+
+duplicity (0.4.3-1) unstable; urgency=low
+
+  * New upstream release (closes: #439057)
+    this release closes a whole bunch of old and recent debian bugs
+    bzip2 is now optional (closes: #437694)
+    the manpage is mostly ok now (closes: #345172)
+    passphrase handling was overhauled (closes: #370198)
+    sockets are now cleanly ignored (closes: #246984)
+    commands are retried for temporary problems (closes: #346306)
+  * new S3 backend (closes: #384490)    
+    this requires python-boto, which is now listed as suggested
+  * updated dependencies with python-pexpect 
+  * unattended encrypted backups with archive dir work (closes: #369971, #404345)
+  * patch set reworked
+  * added local fix for offending/garbage files prohibiting 
+    further actions (closes: #228388)
+  * added local fix for better tempfile naming
+
+ -- Alexander Zangerl <az@debian.org>  Sat,  8 Sep 2007 20:09:26 +1000
+
+duplicity (0.4.2-16) unstable; urgency=low
+
+  * added example backup script (closes: #408749)
+  * re-added ftp-timeout-patch, which was lost somewhere around 0.4.2-6
+    and added pending ftp-mkdir-patch (closes: #413335)
+
+ -- Alexander Zangerl <az@debian.org>  Tue, 19 Jun 2007 12:38:43 +1000
+
+duplicity (0.4.2-15) unstable; urgency=low
+
+  * added --help option and usage message (closes: #345165)
+
+ -- Alexander Zangerl <az@debian.org>  Tue, 19 Jun 2007 12:09:21 +1000
+
+duplicity (0.4.2-14) unstable; urgency=high
+
+  * fixed bad patch sequence that broke sftp support (closes: #426819)
+
+ -- Alexander Zangerl <az@debian.org>  Fri,  1 Jun 2007 00:19:32 +1000
+
+duplicity (0.4.2-13) unstable; urgency=low
+
+  * added a --volsize option to allow user-specified volume chunks
+    instead of always splitting at 5Mb.
+
+ -- Alexander Zangerl <az@debian.org>  Thu, 24 May 2007 22:48:52 +1000
+
+duplicity (0.4.2-12) unstable; urgency=low
+
+  * reworked the patch set
+  * added patch for archive-dir and incrementals (closes: #370206)
+  * added patch for encrypted unattended backups 
+    with archive-dir (closes: #369971)
+
+ -- Alexander Zangerl <az@debian.org>  Tue, 10 Apr 2007 14:28:13 +1000
+
+duplicity (0.4.2-11) unstable; urgency=low
+
+  * I'm adopting duplicity. Thanks to Martin Wuertele 
+    for his past work on duplicity! (closes: #418159)
+  * finetuned debhelper dependency
+    
+ -- Alexander Zangerl <az@debian.org>  Sun,  8 Apr 2007 17:40:30 +1000
+
+duplicity (0.4.2-10.1) unstable; urgency=medium
+
+  * Switch back to python 2.4, as python-central can apparently no longer cope
+    with 2.3, and 2.4 seems to work ok now; patch from Joey Hess.
+    (Closes: #396158)
+
+ -- Steinar H. Gunderson <sesse@debian.org>  Sat, 11 Nov 2006 13:32:07 +0100
+
+duplicity (0.4.2-10) unstable; urgency=low
+
+  * fix build target (Closes: #386933)
+
+ -- Martin Wuertele <maxx@debian.org>  Sat, 16 Sep 2006 10:22:28 +0200
+
+duplicity (0.4.2-9) unstable; urgency=low
+
+  * switched to python-central
+  * removed modules patch (no more needed)
+
+ -- Martin Wuertele <maxx@debian.org>  Sun, 10 Sep 2006 14:29:07 +0200
+
+duplicity (0.4.2-8) unstable; urgency=high
+
+  * depend on python2.3 fixing restore (Closes: #386607)
+
+ -- Martin Wuertele <maxx@debian.org>  Sat,  9 Sep 2006 11:10:48 +0200
+
+duplicity (0.4.2-7.1) unstable; urgency=high
+
+  * NMU
+  * Don't call dh_pysupport with -n; we need those generated manintainer
+    scripts to, well, work. Closes: #384489, #384826
+
+ -- Joey Hess <joeyh@debian.org>  Fri,  8 Sep 2006 01:41:52 -0400
+
+duplicity (0.4.2-7) unstable; urgency=low
+
+  * Fix arch so _librsync.so gets compiled (Closes: #385989)
+
+ -- Martin Wuertele <maxx@debian.org>  Mon,  4 Sep 2006 22:25:09 +0200
+
+duplicity (0.4.2-6) unstable; urgency=low
+
+  * switch to dpatch for patch management
+  * fix private module search path and make sure postint/postrm work 
+    (Closes: #384489)
+  * updated copyright
+
+ -- Martin Wuertele <maxx@debian.org>  Sat, 26 Aug 2006 23:25:57 +0200
+
+duplicity (0.4.2-5) unstable; urgency=low
+
+  * removed patches from debian-revision
+  * added README.Debian describing applied patches
+  * fix targets (Closes: #384570)
+
+ -- Martin Wuertele <maxx@debian.org>  Fri, 25 Aug 2006 17:39:09 +0200
+
+duplicity (0.4.2-4+sftp+compression) unstable; urgency=low
+
+  * temporary disable amazons3 patch
+  * don't pass /usr/share/python-support to dh_pysupport to fix
+    searchpath (Closes: #384489)
+
+ -- Martin Wuertele <maxx@debian.org>  Thu, 24 Aug 2006 19:55:40 +0200
+
+duplicity (0.4.2-3+sftp+amazons3+compression) unstable; urgency=low
+
+  * remove old byte compiled stuff in preinst (Closes: #384142)
+
+ -- Martin Wuertele <maxx@debian.org>  Tue, 22 Aug 2006 22:26:46 +0200
+
+duplicity (0.4.2-2+sftp+amazons3+compression.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update package to the last python policy (Closes: #380784).
+
+ -- Pierre Habouzit <madcoder@debian.org>  Sat, 12 Aug 2006 23:20:21 +0200
+
+duplicity (0.4.2-2+sftp+amazons3+compression.1) unstable; urgency=low
+
+  * NMU
+  * Fix echo -e bashism. Closes: #375543
+
+ -- Joey Hess <joeyh@debian.org>  Wed,  5 Jul 2006 16:09:56 -0400
+
+duplicity (0.4.2-2+sftp+amazons3+compression) unstable; urgency=low
+
+  * changed build-depends from python2.3-dev to python-dev >= 2.3
+    (Closes: #367484)
+
+ -- Martin Wuertele <maxx@debian.org>  Thu, 18 May 2006 13:35:15 -0500
+
+duplicity (0.4.2-1+sftp+amazons3+compression) unstable; urgency=low
+
+  * new upstream release (Closes: #358519)
+    * fixes some scp/sftp problems
+    * understands ftp 450 (Closes: #238677)
+    * --remove-older-than makes sure duplicity deletes older signatures
+    * --remove-older-than now cannot delete the active backup chain
+      (Closes: #228386)
+  * added sftp patch by intrigeri <intrigeri@boum.org>
+  * added amazon s3 patch by Brian Sutherland <jinty@web.de>
+  * added compression patch by Mathias Wagner
+    <mathias.wagner@physik.tu-darmstadt.de>
+
+ -- Martin Wuertele <maxx@debian.org>  Mon, 15 May 2006 13:44:05 -0500
+
+duplicity (0.4.1-8) unstable; urgency=high
+
+  * added patch to fix ftp timeout exception when backing up huge files with
+    small changes (patch by Stefan Schimanski <schimmi@debian.org>)
+
+ -- Martin Wuertele <maxx@debian.org>  Mon,  6 Sep 2004 18:57:42 +0200
+
+duplicity (0.4.1-7) unstable; urgency=low
+
+  * fixed linebreak in duplicity.1 (Thanks to Uli Martens <youam@youam.de>
+
+ -- Martin Wuertele <maxx@debian.org>  Fri,  3 Sep 2004 16:36:45 +0200
+
+duplicity (0.4.1-6) unstable; urgency=low
+
+  * fixed permissions for tarfile.py
+  * converted changelog to UTF-8
+  * fixed python dependency to 2.3 in tarfile.py
+
+ -- Martin Wuertele <maxx@debian.org>  Sat,  1 May 2004 22:27:22 +0200
+
+duplicity (0.4.1-5) unstable; urgency=low
+
+  * Depend on python-gnupginterface instead of providing GnuPGInterface.py
+    (Closes: #230048)
+
+ -- Martin Wuertele <maxx@debian.org>  Fri, 30 Jan 2004 18:13:05 +0100
+
+duplicity (0.4.1-4) unstable; urgency=low
+
+  * removed byte compiled code and added postinst to do so
+    (Closes: #221399)
+
+ -- Martin Wuertele <maxx@debian.org>  Thu, 20 Nov 2003 19:49:57 +0100
+
+duplicity (0.4.1-3) unstable; urgency=low
+
+  * removed CHANGELOG.gz from package 
+    (Closes: #219784)
+
+ -- Martin Wuertele <maxx@debian.org>  Sun,  9 Nov 2003 19:51:53 +0100
+
+duplicity (0.4.1-2) unstable; urgency=low
+
+  * use librsync.h and depend on librsync-dev >= 0.9.6 since prior versions
+    provide rsync.h
+
+ -- Martin Wuertele <maxx@debian.org>  Sun, 31 Aug 2003 17:19:58 +0200
+
+duplicity (0.4.1-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Martin WÃ¼rtele <maxx@debian.org>  Mon, 11 Aug 2003 21:09:56 +0200
+
+duplicity (0.4.0-4) unstable; urgency=low
+
+  * fixed auto build problem 
+    (Closes: #204720)
+
+ -- Martin WÃ¼rtele <maxx@debian.org>  Sun, 10 Aug 2003 14:03:20 +0200
+
+duplicity (0.4.0-3) unstable; urgency=low
+
+  * recompiled witch python 2.3
+
+ -- Martin WÃ¼rtele <maxx@debian.org>  Sat,  9 Aug 2003 09:17:33 +0200
+
+duplicity (0.4.0-2) unstable; urgency=low
+
+  * applied LongLink patch from cvs
+  * added tarfile license to copyright
+
+ -- Martin WÃ¼rtele <maxx@debian.org>  Fri,  8 Aug 2003 16:06:27 +0200
+
+duplicity (0.4.0-1) unstable; urgency=low
+
+  * Initial Release.
+    (Closes: #188713)
+
+ -- Martin Wuertele <maxx@debian.org>  Sat, 12 Apr 2003 17:06:27 +0200
+
--- duplicity-0.5.06.orig/debian/watch
+++ duplicity-0.5.06/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://download.savannah.gnu.org/releases/duplicity/duplicity-([0-9.]+)\.tar\.gz
--- duplicity-0.5.06.orig/debian/compat
+++ duplicity-0.5.06/debian/compat
@@ -0,0 +1 @@
+5
--- duplicity-0.5.06.orig/debian/docs
+++ duplicity-0.5.06/debian/docs
@@ -0,0 +1,2 @@
+README
+debian/NEWS.Debian
--- duplicity-0.5.06.orig/debian/control
+++ duplicity-0.5.06/debian/control
@@ -0,0 +1,23 @@
+Source: duplicity
+Section: utils
+Priority: optional
+Maintainer: Alexander Zangerl <az@debian.org>
+Build-Depends: debhelper (>= 5.0.37.2), librsync-dev (>=0.9.6), python-dev, python-central (>= 0.5), dpatch
+Standards-Version: 3.8.0
+XS-Python-Version: all
+
+Package: duplicity
+Architecture: any
+Homepage: http://www.nongnu.org/duplicity/
+XB-Python-Version: ${python:Versions}
+Depends: ${shlibs:Depends}, ${python:Depends}, gnupg, python-gnupginterface, python-pexpect
+Suggests: python-boto, ncftp
+Description: encrypted bandwidth-efficient backup
+ Duplicity backs directories by producing encrypted tar-format volumes
+ and uploading them to a remote or local file server. Because duplicity
+ uses librsync, the incremental archives are space efficient and only
+ record the parts of files that have changed since the last backup.
+ Because duplicity uses GnuPG to encrypt and/or sign these archives, they
+ will be safe from spying and/or modification by the server.
+ .
+ Homepage: http://www.nongnu.org/duplicity/
--- duplicity-0.5.06.orig/debian/examples/system-backup
+++ duplicity-0.5.06/debian/examples/system-backup
@@ -0,0 +1,116 @@
+#!/bin/bash
+#
+# Copyright (C) 2007 Francois Marier <francois@debian.org>
+#
+# This backup script is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This script 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 Email-Reminder; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# Usage:
+#   backup 					automatic backup
+#   backup --full				force a full backup
+#   backup --list-current-files			list of files currently backed up
+#   backup --file-to-restore directory/foo	restore the given file as "./restored_foo"
+#
+# Note that the following files should be in the same directory as this script:
+# 
+#   include		Files and directories to include in the backup (one per line)
+#   exclude		From the directories previously mentioned, which ones to omit
+#   id_rsa		Private ssh key for the backup host
+#   id_rsa.pub		Public ssh key for the backup host (copied there as .ssh/authorized_keys)
+#   known_hosts		Contains the fingerprints for the backup host
+
+# -----------START OF USER CONFIGURATION------------
+
+# HINT: Generate a good passphrase using "pwgen -s 16"
+GPG_PASSWORD="" 
+
+# The directory where this script and all the configuration files are located
+BACKUP_HOME="/home/my_username/.backup"
+
+# The name of the database to backup
+WIKIDB="wikidb"
+
+# The MySQL root password
+MYSQL_PASSWORD="mysql_root_password"
+
+# To limit the SCP transfers to a certain number of bytes per second
+SCP_LIMIT="520"
+
+# How many days to keep the old backups
+OLDAGE="9D"
+
+# Which host (using ssh) to copy the backup to
+SSH_HOST="username@some_host.somewhere.net"
+
+# -----------END OF USER CONFIGURATION------------
+
+# Internal variables
+SSH_IDENTITY="IdentityFile=$BACKUP_HOME/id_rsa"
+SSH_HOSTKEY="UserKnownHostsFile=$BACKUP_HOME/known_hosts"
+SSH="ssh -o $SSH_IDENTITY -o $SSH_HOSTKEY"
+SCP="scp -q -l $SCP_LIMIT -o $SSH_IDENTITY -o $SSH_HOSTKEY"
+SFTP="sftp -o $SSH_IDENTITY -o $SSH_HOSTKEY"
+INCLUDE_FILE="$BACKUP_HOME/include"
+EXCLUDE_FILE="$BACKUP_HOME/exclude"
+DUMP_FILE="$BACKUP_HOME/$WIKIDB-dump.sql"
+PKG_FILE="$BACKUP_HOME/dpkg-selections"
+
+# Create the backup directory in case it doesn't exist
+$SSH $SSH_HOST mkdir -p $HOSTNAME
+
+# If the list of files has been requested, only do that
+if [ "$1" = "--list-current-files" ]; then
+	SCP="scp -q -o $SSH_IDENTITY -o $SSH_HOSTKEY"
+	PASSPHRASE=$GPG_PASSWORD duplicity --list-current-files --ssh-command "$SSH" --scp-command "$SCP" --sftp-command "$SFTP" scp://$SSH_HOST/$HOSTNAME
+	exit 0
+
+# Restore the given file
+elif [ "$1" = "--file-to-restore" ]; then
+	if [ "$2" = "" ]; then
+		echo "You must specify a file to restore"
+		exit 2
+	fi
+	SCP="scp -q -o $SSH_IDENTITY -o $SSH_HOSTKEY"
+	PASSPHRASE=$GPG_PASSWORD duplicity --ssh-command "$SSH" --scp-command "$SCP" --sftp-command "$SFTP" --file-to-restore "$2" scp://$SSH_HOST/$HOSTNAME restored_`basename $2`
+	exit 0
+
+# Catch invalid arguments
+elif [ "$1" != "--full" -a "$1" != "" ]; then
+	echo "Invalid argument: $1"
+	exit 1
+fi
+
+# Delete files related to failed backups
+PASSPHRASE=$GPG_PASSWORD duplicity --cleanup --verbosity 1 --sftp-command "$SFTP" scp://$SSH_HOST/$HOSTNAME
+
+# Delete old expired backups
+PASSPHRASE=$GPG_PASSWORD duplicity --force --remove-older-than $OLDAGE --verbosity 1 --sftp-command "$SFTP" scp://$SSH_HOST/$HOSTNAME
+
+# Dump Wiki DB and list of Debian packages
+mysqldump --opt $WIKIDB -uroot -p$MYSQL_PASSWORD > $DUMP_FILE
+dpkg --get-selections > $PKG_FILE
+
+# Check whether a full backup was requested
+FULLBACKUP=""
+if [ "$1" = "--full" ]; then
+	FULLBACKUP="--full"
+fi
+
+# Do the actual backup using Duplicity
+PASSPHRASE=$GPG_PASSWORD duplicity $FULLBACKUP --no-print-statistics --remove-older-than $OLDAGE --verbosity 1 --exclude-device-files --include $PKG_FILE --include $DUMP_FILE --exclude-globbing-filelist $EXCLUDE_FILE --include-globbing-filelist $INCLUDE_FILE --exclude '**' --ssh-command "$SSH" --scp-command "$SCP" --sftp-command "$SFTP" / scp://$SSH_HOST/$HOSTNAME
+
+# Cleanup the temporary files
+rm -f $DUMP_FILE
+rm -f $PKG_FILE
