--- zsync-0.6.1.orig/debian/watch
+++ zsync-0.6.1/debian/watch
@@ -0,0 +1,6 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# Site		Directory		Pattern			Version	Script
+version=3
+http://zsync.moria.org.uk/downloads download/zsync-(.*)\.tar\..*
--- zsync-0.6.1.orig/debian/control
+++ zsync-0.6.1/debian/control
@@ -0,0 +1,21 @@
+Source: zsync
+Section: net
+Priority: optional
+Maintainer: Robert Lemmen <robertle@semistable.com>
+Build-Depends: debhelper (>= 7.0.0)
+Standards-Version: 3.8.1
+
+Package: zsync
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: client-side implementation of the rsync algorithm
+ zsync is a file transfer program to download files from
+ remote web servers. If a previous version of a file is available
+ locally, zsync will only download changed parts and hereby
+ minimise the download volume. The algorithm is the same as used
+ by rsync(1), but zsync does not require any server software
+ (apart from a web server), nor does it need shell access.
+ Instead, it uses a control file (.zsync file) that describes the
+ file to be downloaded, which it uses to determine the blocks to
+ fetch. This file is created once on the server (and not for each
+ request) and sits next to actual file to download
--- zsync-0.6.1.orig/debian/changelog
+++ zsync-0.6.1/debian/changelog
@@ -0,0 +1,140 @@
+zsync (0.6.1-3) unstable; urgency=low
+
+  * Something seems to have gone in 0.6.1-2, apply the patch for real 
+    this time
+
+ -- Robert Lemmen <robertle@semistable.com>  Wed, 30 Jun 2010 10:50:26 +0100
+
+zsync (0.6.1-2) unstable; urgency=low
+
+  * Applied patch for LFS support (closes: #562673)
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue, 23 Mar 2010 09:59:09 +0000
+
+zsync (0.6.1-1) unstable; urgency=low
+
+  * New upstream release (closes: #444159, #469919)
+
+ -- Robert Lemmen <robertle@semistable.com>  Wed, 03 Jun 2009 20:19:00 +0100
+
+zsync (0.6-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue, 10 Feb 2009 10:44:19 +0000
+
+zsync (0.5-2) unstable; urgency=low
+
+  * Fixed manual page ordering (closes: #402795)
+  * Support for GNU --long options (closes: #402796)
+
+ -- Robert Lemmen <robertle@semistable.com>  Wed, 29 Aug 2007 13:18:58 +0200
+
+zsync (0.5-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Sat,  7 Oct 2006 14:55:00 +0200
+
+zsync (0.4.3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue, 25 Jul 2006 10:59:24 +0200
+
+zsync (0.4.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue, 18 Oct 2005 10:55:19 +0200
+
+zsync (0.4.1-1) unstable; urgency=low
+
+  * New upstream release (closes: #318759)
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon, 18 Jul 2005 14:33:23 +0200
+
+zsync (0.4.0-2) unstable; urgency=low
+
+  * Security update for CAN-2005-2096
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon, 11 Jul 2005 19:57:42 +0200
+
+zsync (0.4.0-1) unstable; urgency=low
+
+  * New upstream release (closes: #306557)
+
+ -- Robert Lemmen <robertle@semistable.com>  Wed, 18 May 2005 11:31:03 +0200
+
+zsync (0.3.3-1) unstable; urgency=low
+
+  * New upstream release (closes: #301209)
+
+ -- Robert Lemmen <robertle@semistable.com>  Sun, 27 Mar 2005 16:10:09 +0200
+
+zsync (0.3.0-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon, 14 Mar 2005 17:43:45 +0100
+
+zsync (0.2.3-1) unstable; urgency=low
+
+  * New upstream release (closes: #295410)
+
+ -- Robert Lemmen <robertle@semistable.com>  Sat, 19 Feb 2005 15:59:20 +0100
+
+zsync (0.2.2-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Sun, 13 Feb 2005 18:46:19 +0100
+
+zsync (0.2.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Wed,  9 Feb 2005 15:54:55 +0100
+
+zsync (0.2.0-1) unstable; urgency=low
+
+  * New upstream release (closes: #289427)
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon,  7 Feb 2005 16:25:52 +0100
+
+zsync (0.1.6-1) unstable; urgency=low
+
+  * New upstream release (closes: #289424, #289427)
+
+ -- Robert Lemmen <robertle@semistable.com>  Sat, 15 Jan 2005 18:03:37 +0100
+
+zsync (0.1.5-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Wed, 22 Dec 2004 15:35:41 +0100
+
+zsync (0.1.4-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue, 14 Dec 2004 20:49:08 +0100
+
+zsync (0.1.3-1) experimental; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Sun, 12 Dec 2004 18:42:16 +0100
+
+zsync (0.1.2-1) experimental; urgency=low
+
+  * New upstream release
+
+ -- Robert Lemmen <robertle@semistable.com>  Tue,  7 Dec 2004 19:19:46 +0100
+
+zsync (0.1.0-1) experimental; urgency=low
+
+  * Initial release. (closes: #279551)
+
+ -- Robert Lemmen <robertle@semistable.com>  Mon, 15 Nov 2004 12:56:46 +0100
+
--- zsync-0.6.1.orig/debian/copyright
+++ zsync-0.6.1/debian/copyright
@@ -0,0 +1,233 @@
+This package was debianized by Robert Lemmen <robertle@semistable.com> on
+Mon, 15 Nov 2004 12:56:46 +0100.
+
+It was downloaded from http://zsync.moria.org.uk/
+
+Copyright: 
+ zsync is based on the rsync algorithm, by Andrew Tridgell. zsync also uses
+ a large part of zlib - this code, in the zlib subdirectory,  is copyright
+ 1995-2003 Jean-loup Gailly and Mark Adler, see zlib/README for details.
+
+ zlib also includes checksum code taken from OpenBSD. The MD4 code is public
+ domanain, by Colin Plumb and Todd C. Miller. The SHA1 code is also public
+ domain, by Steve Reid. This code is in the libhash/ subdirectory, see the
+ individual files for their non-copyright notices.
+
+ The rest of the code (that is, everything not in the zlib and libhash
+ subdirectories) is copyright (C) 2004 Colin Phipps <cph@moria.org.uk>.
+
+Upstream Author: Colin Phipps <cph@moria.org.uk>
+
+License:
+
+
+                             The Artistic License
+                          Version 2.0beta4, October 2000
+ 
+                          Copyright (C) 2000, Larry Wall.
+         Everyone is permitted to copy and distribute verbatim copies
+          of this license document, but changing it is not allowed.
+ 
+                                   Preamble
+ 
+ This copyright license states the terms under which a given free
+ software Package may be copied, modified and/or redistributed, while the
+ Originator(s) maintain some artistic control over the future development
+ of that Package (at least as much artistic control as can be given under
+ copyright law while still making the Package open source and free software).
+ 
+ This license is bound by copyright law, and thus it legally applies only
+ to works which the copyright holder has permitted copying, distribution
+ or modification under the terms of the Artistic License, Version 2.0.
+ 
+ You are reminded that You are always permitted to make arrangements
+ wholly outside of a given copyright license directly with the copyright
+ holder(s) of a given Package. If the terms of this license impede your
+ ability to make full use of the Package, You are encouraged to contact
+ the copyright holder(s) and seek a different licensing arrangement.
+ 
+                                 Definitions
+ 
+ "Package" refers to the collection of files distributed by the
+ Originator(s), and derivatives of that collection of files created
+ through textual modification.
+ 
+ "Standard Version" refers to the Package if it has not been modified, or
+ has been modified only in ways suggested by the Originator(s).
+ 
+ "Modified Version" refers to the Package, if it has been changed by You
+ via textual modification of the source code, and such changes were not
+ suggested by the Originator(s).
+ 
+ "Originator" refers to the author(s) and/or copyright holder(s) of the
+ Standard Version of the Package.
+ 
+ "You" and "Your" refers to any person who would like to copy,
+ distribute, or modify the Package.
+ 
+ "Distribution Fee" is any fee that You charge for providing a copy of
+ this Package to another party. It does not refer to licensing fees.
+ 
+ "Freely Available" means that:
+ 
+        (a) no fee is charged for the right to use the item (though a
+            Distribution Fee may be charged).
+ 
+        (b) recipients of the item may redistribute it under the same
+            conditions they received it.
+ 
+        (c) If the item is a binary, object code, bytecode, the complete
+            corresponding machine-readable source code is included with the
+            item.
+ 
+ 
+          Permission for Use and Modification Without Redistribution
+ 
+   (1) You are permitted to use the Standard Version and create and use
+       Modified Versions for any purpose without restriction, provided that
+       you do not redistribute the Modified Version to others outside of your
+       company or organization.
+ 
+ 
+            Permissions for Redistribution of the Standard Version
+ 
+   (2) You may make available verbatim copies of the source code of the
+       Standard Version of this Package in any medium without restriction,
+       either gratis or for a Distribution Fee, provided that you duplicate
+       all of the original copyright notices and associated disclaimers.  At
+       Your discretion, such verbatim copies may or may not include compiled
+       bytecode, object code or binary versions of the corresponding source
+       code in the same medium.
+ 
+   (3) You may apply any bug fixes, portability changes, and other
+       modifications made available from any of the Originator(s).  The
+       resulting modified Package will still be considered the Standard
+       Version, and may be copied, modified and redistributed under the terms
+       of the original license of the Standard Version as if it were the
+       Standard Version.
+ 
+ 
+  Permissions for Redistribution of Modified Versions of the Package as Source
+ 
+   (4) You may modify your copy of the source code of this Package in any way
+       and distribute that Modified Version (either gratis or for a
+       Distribution Fee, and with or without a corresponding binary, bytecode
+       or object code version of the Modified Version) provided that You
+       clearly indicate what changes You made to the Package, and provided
+       that You do at least ONE of the following:
+ 
+        (a) make the Modified Version available to the Originator(s) of the
+            Standard Version, under the exact license of the Standard
+            Version, so that the Originator(s) may include your modifications
+            into the Standard Version (at their discretion).
+ 
+        (b) modify any installation scripts and procedures so that
+            installation of the Modified Version will never conflict with an
+            installation of the Standard Version, include for each program
+            installed by the Modified Version clear documentation describing
+            how it differs from the Standard Version, and rename your
+            Modified Version so that the name is substantially different from
+            the Standard Version.
+ 
+        (c) permit and encourage anyone who receives a copy of the Modified
+            Version permission to make your modifications Freely Available in
+            some specific way.                                               
+ 
+       If Your Modified Version is in turn derived from a Modified Version
+       made by a third party, then You are still required to ensure that Your
+       Modified Version complies with the requirements of this license.
+ 
+ 
+       Permissions for Redistribution of Non-Source Versions of Package
+ 
+   (5) You may distribute binary, object code, bytecode or other non-source
+       versions of the Standard Version of the Package, provided that you
+       include complete instructions on where to get the source code of the
+       Standard Version.  Such instructions must be valid at the time of Your
+       distribution.  If these instructions, at any time while You are
+       carrying our such distribution, become invalid, you must provide new
+       instructions on demand or cease further distribution.  If You cease
+       distribution within thirty days after You become aware that the
+       instructions are invalid, then You do not forfeit any of Your rights
+       under this license.
+ 
+   (6) You may distribute binary, object code, bytecode or other non-source
+       versions of a Modified Version provided that You do at least ONE of
+       the following:
+ 
+        (a) include a copy of the corresponding source code for the Modified
+            Version under the terms indicated in (4).
+ 
+        (b) ensure that the installation of Your non-source Modified Version
+            does not conflict in any way with an installation of the Standard
+            Version, include for each program installed by the Modified
+            Version clear documentation describing how it differs from the
+            Standard Version, and rename your Modified Version so that the
+            name is substantially different from the Standard Version.
+ 
+        (c) ensure that the Modified Version includes notification of the
+            changes made from the Standard Version, and offer to provide
+            machine-readable source code (under a license that permits making
+            that source code Freely Available) of the Modified Version via
+            mail order.
+ 
+ 
+         Permissions for Inclusion of the Package in Aggregate Works
+   
+   (7) You may aggregate this Package (either the Standard Version or
+       Modified Version) with other packages and distribute the resulting
+       aggregation provided that You do not charge a licensing fee for the
+       Package.  Distribution Fees are permitted, and licensing fees for
+       other packages in the aggregation are permitted.  Your permission to
+       distribute Standard or Modified Versions of the Package is still
+       subject to the other terms set forth in other sections of this
+       license.
+ 
+   (8) In addition to the permissions given elsewhere by this license, You
+       are also permitted to link Modified and Standard Versions of this
+       Package with other works and distribute the result without
+       restriction, provided You have produced binary program(s) that do not
+       overtly expose the interfaces of the Package.  This includes
+       permission to embed the Package in a larger work of your own without
+       exposing a direct interface to the Package.  This also includes
+       permission to build stand-alone binary or bytecode versions of your
+       scripts that require the Package, but do not otherwise give the casual
+       user direct access to the Package itself.
+ 
+ 
+         Items That are Never Considered Part of a Modified Version Package
+ 
+   (9) Works (including, but not limited to, subroutines and scripts) that
+       you have linked or aggregated with the Package that merely extend or
+       make use of the Package, but are not intended to cause the Package to
+       operate differently from the Standard Version, do not, by themselves,
+       cause the Package to be a Modified Version.  In addition, such works
+       are not considered parts of the Package itself, and are not bound by
+       the terms of the Package's license.
+ 
+ 
+               Acceptance of License and Disclaimer of Warranty
+ 
+  (10) You are not required to accept this License, since you have not signed
+       it.  However, nothing else grants you permission to copy, modify or
+       distribute the Standard or Modified Versions of the Package.  These
+       actions are prohibited by copyright law if you do not accept this
+       License.  Therefore, by copying, modifying or distributing Standard
+       and Modified Versions of the Package, you indicate your acceptance of
+       the license of the Package.
+ 
+ 
+  (11) Disclaimer of Warranty:
+ 
+        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+        "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+        LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+        A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT UNLESS REQUIRED BY
+        LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER OR CONTRIBUTOR
+        BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+        OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
+        OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, PROFITS; OR
+        BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+        WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+        OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+        EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- zsync-0.6.1.orig/debian/compat
+++ zsync-0.6.1/debian/compat
@@ -0,0 +1 @@
+7
--- zsync-0.6.1.orig/debian/zsync.lintian-overrides
+++ zsync-0.6.1/debian/zsync.lintian-overrides
@@ -0,0 +1,3 @@
+# this is ok for zsync as it heavily modifies zlib in ways that are not
+# appropriate for the real one
+zsync: embedded-zlib
--- zsync-0.6.1.orig/debian/docs
+++ zsync-0.6.1/debian/docs
@@ -0,0 +1 @@
+README
--- zsync-0.6.1.orig/debian/dirs
+++ zsync-0.6.1/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- zsync-0.6.1.orig/debian/rules
+++ zsync-0.6.1/debian/rules
@@ -0,0 +1,65 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+CFLAGS = -Wall -g $(shell getconf LFS_CFLAGS)
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+config.status: configure
+	dh_testdir
+	CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=/usr/share/man
+
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+	$(MAKE)
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.sub
+	rm -f config.guess
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/zsync
+	rm -f $(CURDIR)/debian/zsync/usr/share/doc/zsync/COPYING
+
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs NEWS
+	dh_installdocs
+	dh_installman
+	dh_lintian
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-indep:
+
+binary: binary-arch
+
+.PHONY: build clean binary-arch binary install 
