--- clive-2.2.5.orig/debian/examples
+++ clive-2.2.5/debian/examples
@@ -0,0 +1 @@
+examples/*
--- clive-2.2.5.orig/debian/copyright
+++ clive-2.2.5/debian/copyright
@@ -0,0 +1,32 @@
+Format-Specification:
+    http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
+Upstream-Maintainer: Toni Gundogdu <legatvs@gmail.com>
+Upstream-Source: http://code.google.com/p/clive/downloads/list
+Upstream-Name: clive
+
+Files: *
+Copyright: Copyright (C) 2009 Toni Gundogdu
+License: GPL-3+
+
+Files: lib/clive/Host/Redtube.pm
+Copyright: Copyright 2009 anonprn2@gmail.com
+License: GPL-3+
+
+Files: debian/*
+Copyright: © 2009 Damyan Ivanov <dmn@debian.org>
+License: GPL-3
+
+License: GPL-3+
+ clive 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.
+ On Debian GNU/Linux systems, the complete text of version 3 of the GNU
+ General Public License can be found in `/usr/share/common-licenses/GPL-3'
+
+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; version 3 dated June, 2007.
+ On Debian GNU/Linux systems, the complete text of version 3 of the GNU
+ General Public License can be found in `/usr/share/common-licenses/GPL-3'
--- clive-2.2.5.orig/debian/NEWS
+++ clive-2.2.5/debian/NEWS
@@ -0,0 +1,23 @@
+clive (2.2.4-1) unstable; urgency=low
+
+  clive added back support for XDG-compliant location of the configuration file
+  (~/.config/clive/config)
+
+ -- Damyan Ivanov <dmn@debian.org>  Mon, 10 Aug 2009 13:14:15 +0300
+
+clive (2.2.0-1) unstable; urgency=low
+
+  In this version of clive the config format changed. Now it's just a
+  list of command line options. Old configuration files will need to
+  be manually updated to the new format. The config file location also
+  changed, it's now ~/.cliverc (~/.config/clive/ is no longer
+  used). Some of the less used options have been removed.
+  Specifically --savebatch, --renew, --youtube-user, --youtube-pass,
+  --no-login, --clivepass, --emit-xml, --background, --progress,
+  --output, --append, --paste, and --format=fmt6. The last major user
+  visible change for this release is that cache is no longer read by
+  default, you must pass the --cache-read option.
+
+  detailed list of changes is available in /usr/share/doc/clive/changelog.gz
+
+ -- Ryan Niebur <ryanryan52@gmail.com>  Sat, 20 Jun 2009 01:31:53 -0700
--- clive-2.2.5.orig/debian/rules
+++ clive-2.2.5/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+%:
+	NO_INTERNET=yes dh $@
--- clive-2.2.5.orig/debian/changelog
+++ clive-2.2.5/debian/changelog
@@ -0,0 +1,371 @@
+clive (2.2.5-1~bpo50+1) lenny-backports; urgency=low
+
+  * Rebuild for lenny-backports.
+
+ -- Matt Taggart <taggart@debian.org>  Thu, 10 Sep 2009 21:22:06 +0000
+
+clive (2.2.5-1) unstable; urgency=low
+
+  * New Upstream Version
+    - update debian/copyright (years, new copyright holder)
+  * bump Standards-Version to 3.8.3 (no changes needed)
+
+ -- Damyan Ivanov <dmn@debian.org>  Mon, 31 Aug 2009 10:15:47 +0300
+
+clive (2.2.4-1) unstable; urgency=low
+
+  [ Ryan Niebur ]
+  * New Upstream Version
+    - adds support for vimeo (Closes: #497394)
+  * refresh patches
+
+  [ Damyan Ivanov ]
+  * New Upstream Version (Closes: #540349)
+    - allows use of --format=(mp4|hd|hq|3gp) with youtube
+      (Closes: #535957 -- --format switch doesn't work anymore)
+    - restore ~/.config/clive/config path support (Closes: #535483)
+      - note this in NEWS.Debian
+    - pair --exec with --exec-run, the latter now triggers the former
+      (Closes: #520520)
+    - fixes `clive URL --exec="ls;"' (Closes: #535459)
+  * Set Homepage to http://clive.googlecode.com/
+  * drop debian/patches; the only patch there was applied upstream
+
+ -- Damyan Ivanov <dmn@debian.org>  Mon, 10 Aug 2009 13:20:05 +0300
+
+clive (2.2.0-1) unstable; urgency=low
+
+  [ Ryan Niebur ]
+  * New Upstream Version (Closes: #533745) (LP: #390048)
+    - fixes when v isn't the first parameter (Closes: #530659)
+    - new configuration file format, supporting all command line
+      options. last part of usability bug (Closes: #520520)
+  * update copyright
+    + upstream moved to GPL-3+
+    + debian/* moved to GPL-3
+  * update dependencies
+  * patch to disable tests requiring internet
+  * simplify debian/rules by using tiny DH7
+  * set Maintainer to Debian Perl Group
+    + move Damyan to Uploaders
+    + add myself to Uploaders
+  * add a NEWS file
+
+  [ Damyan Ivanov ]
+  * README.source: remove obsolete upgrade instructions
+  * README.source: point to quilt documentation
+  * bump Standards-Version to 3.8.2
+
+ -- Ryan Niebur <ryanryan52@gmail.com>  Thu, 18 Jun 2009 03:03:50 -0700
+
+clive (2.1.14-1) unstable; urgency=low
+
+  * New Upstream Version
+     + Add support for youtube-nocookie.com
+     + Add fmt35 format ID for Youtube
+     + Fix liveleak id parsing
+     + Rename --format IDs for Youtube
+       - mp4_hd -> fmt22
+       - 3gpp -> fmt17
+       - xflv -> fmt6
+     + Rename --output-video option to --output-file
+     + Rename output:file config file option to output:filename_format
+     + Remove --overwrite option (use --output-file instead)
+
+
+ -- Damyan Ivanov <dmn@debian.org>  Fri, 05 Jun 2009 16:48:28 +0300
+
+clive (2.1.13-2) unstable; urgency=low
+
+  * move libberkeleydb-perl from Depends to Recommends following upstream
+    making BerkeleyDB optional
+
+ -- Damyan Ivanov <dmn@debian.org>  Sun, 17 May 2009 23:39:26 +0300
+
+clive (2.1.13-1) unstable; urgency=low
+
+  [ Ryan Niebur ]
+  * New Upstream Version
+  * add a README.source docuementing how to upgrade to new upstream
+    version
+
+  [ gregor herrmann ]
+  * debian/control: start short description with a lower-case letter.
+
+ -- Ryan Niebur <ryanryan52@gmail.com>  Sat, 16 May 2009 19:50:50 -0700
+
+clive (2.1.12-1) unstable; urgency=low
+
+  * New Upstream Version
+
+ -- Ryan Niebur <ryanryan52@gmail.com>  Sun, 10 May 2009 23:38:55 -0700
+
+clive (2.1.11-2) unstable; urgency=low
+
+  [ Ryan Niebur ]
+  * remove unneeded libterm-progressbar-perl dependency (Closes:
+    #526999)
+
+ -- Damyan Ivanov <dmn@debian.org>  Thu, 07 May 2009 11:39:26 +0300
+
+clive (2.1.11-1) unstable; urgency=low
+
+  [ Ryan Niebur ]
+  * remove recompress.sh, uscan has a --repack option for that
+  * New Upstream Version
+
+  [ Damyan Ivanov ]
+  * rules: make use of $(TMP)
+
+ -- Damyan Ivanov <dmn@debian.org>  Mon, 04 May 2009 09:23:01 +0300
+
+clive (2.1.10-1) unstable; urgency=low
+
+  * New upstream release
+    + no longer hangs when requested to retrieve vimeo file (unsupported).
+      Closes: #522422
+  * overriding dh_installexamples no longer necessary
+
+ -- Damyan Ivanov <dmn@debian.org>  Thu, 09 Apr 2009 10:24:14 +0300
+
+clive (2.1.9-1) unstable; urgency=low
+
+  [ Ryan Niebur ]
+  * New upstream release (2.1.7)
+    + adds support for putting exec details in the configuration. Partly
+      addresses #520520
+  * add myself to uploaders
+  * standards version 3.8.1
+  * remove (build-)dependency on libxml-simple-perl
+  * add (build-)dependency on libterm-readkey-perl
+
+  [ Damyan Ivanov ]
+  * New upstream release (2.1.9)
+  * move clive.1 out of the way when building and restore it on clean
+  * install the sample config as 'config' in examples
+    addresses another part of #520520
+  * employ dh override features and bump the build-dependency to 7.0.50
+
+ -- Damyan Ivanov <dmn@debian.org>  Wed, 01 Apr 2009 17:41:35 +0300
+
+clive (2.1.6-1) unstable; urgency=low
+
+  * Take over on maintainer request.
+    <http://lists.debian.org/debian-perl/2008/12/msg00030.html>
+  * New upstream release.
+    + adjust debian/watch to new source location; add debian/recompress.sh,
+      converting .bz2 -> .gz and chain it to debian/watch
+  * switch Vcs-* to pkg-perl Git repo
+  * update Homepage with what upstream uses currently
+  * drop 01_fix_man.dpatch, remove dpatch from B-D and rules
+    + drop README.source, no patch system in action
+  * rules:
+    + convert to debhelper 7
+    + add "perl -c" 'testsuite'
+  * control/compat: debhelper 7
+  * control:
+    + replace python-related stuff with perl-related stuff
+    + rewrite long description using text from the manual page
+    + shorten short description a bit
+  * add B-D-I for the test
+  * add configrc to examples
+  * debian/copyright
+    + update to match upstream (BSD-like, also © 2008,2009)
+    + note the new upstream URL
+    + convert to machine-readable format
+    + packaging © me only, as everything was rewritten
+
+ -- Damyan Ivanov <dmn@debian.org>  Wed, 25 Feb 2009 17:11:17 +0200
+
+clive (1.0.2-1) unstable; urgency=low
+
+  * New upstream version.
+  * Add debian/README.source.
+  * debian/control:
+    + Add dpatch to build-depends.
+    + Remove autotools-dev from b-p-i.
+    + Decrease debhelper version to 5.0.38.
+    + Bump XS-Python-Version to >= 2.5.
+    + Add dependency to python-crypto >= 2.0.1.
+  * debian/compat:
+    + Decrease it to version 5.
+  * debian/watch:
+    + Fix URL for new 1.0.x version.
+  * debian/rules:
+    + Add dpatch.
+    + Replace ChangeLog (empty) by CHANGES.
+  * debian/copyright:
+    + Set to GPLv3 like upstream.
+  * Change Maintainer to PAPT.
+  * Add myself to Uploaders.
+
+ -- Marco Rodrigues <gothicx@sapo.pt>  Wed, 29 Oct 2008 21:20:05 +0100
+
+clive (0.4.19-1) unstable; urgency=low
+
+  * New upstream version. 
+
+ -- Marco Rodrigues <gothicx@sapo.pt>  Thu, 24 Jul 2008 19:20:10 +0100
+
+clive (0.4.18-1) unstable; urgency=low
+
+  * New upstream release:
+    - --with-FOO changed to --with-installed-FOO in configure, adjusting
+      debian/rules.
+    - New NEWS file, installing.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Wed, 16 Jul 2008 03:47:59 +0700
+
+clive (0.4.17-1) unstable; urgency=low
+
+  * New upstream release (Closes: #487666):
+    - Added support for MyVideo (Closes: #485819).
+  * Standards-Version bumped to 3.8.0, no changes required.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Mon, 30 Jun 2008 01:17:57 +0700
+
+clive (0.4.14-1) unstable; urgency=low
+
+  * New upstream release:
+    - Fixed typo in manpage (Closes: #481566)
+    - Added support for sevenload.com (Closes: #482289)
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Mon, 26 May 2008 23:22:19 +0700
+
+clive (0.4.13-1) unstable; urgency=low
+
+  * New upstream release:
+    - Cache file structure upgrade made more robust (Closes: #479315)
+    - Fixed fetching from Google Video (Closes: #480444)
+  * Removed python-newt, python-urlgrabber, python-feedparser build
+    dependencies, no more needed for ./configure.
+  * debhelper compatibility level bumped to 7.
+    - debhelper dependency bumped.
+    - debian/rules: dh_clean automatically removes stamps.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Thu, 22 May 2008 02:40:23 +0700
+
+clive (0.4.11-1) unstable; urgency=low
+
+  [ Mikhail Gusarov ]
+  * New upstream release (Closes: #478025).
+  * Package is now maintained in PAPT:
+    - PAPT added to Uploaders.
+  * debian/rules, debian/control: Explicitly configuring without bundled
+    python-newt, python-urlgrabber and python-feedparser, and adjusting
+    runtime depends correspondingly.
+  * Temporarily added python-newt, python-urlgrabber, python-feedparser to
+    Build-Depends as configure requires them in build time for no apparent
+    reason: https://gna.org/support/index.php?1986
+  * config.{guess,sub} are replaced at build time with recent ones from
+    autotools-dev:
+    - autotools-dev added to Build-Bepends,
+    - added lintian override regarding old config.{guess,sub} in tarball.
+
+  [ Piotr Ożarowski ]
+  * Vcs-Svn, Vcs-Browser and Homepage fields added.
+  * debian/watch file is now tracking .tar.bz2 files as upstream is not
+    releasing .tar.gz anymore.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Sun, 13 Apr 2008 23:24:16 +0700
+
+clive (0.4.8-1) unstable; urgency=low
+
+  * New upstream release (Closes: #465698).
+
+  * ACK NMU. Thanks, Scott!
+
+  * debian/rules updated to accommodate changes in upstream build system
+    (distutils -> autotools).
+  * python-newt recommendancy removed: upstream no longer uses it.
+  * Dropped hack with (re)compression of compressed manpage: upstream no
+    longer compresses the manpage.
+  * python-all-dev dependency moved to Build-Depends-Indep as only
+    architecture-independent packages are built.
+  
+  * Standards-Version bumped to 3.7.3, no changes required.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Mon, 31 Mar 2008 23:51:23 +0700
+
+clive (0.4.3-1.1) unstable; urgency=low 
+
+  * Non-maintainer upload.
+  * Stop removing empty /usr/lib that python-central no longer provides
+    (closes: #472007)
+  * Build-dep on python-central (>= 0.6)
+
+ -- Scott Kitterman <scott@kitterman.com>  Tue, 25 Mar 2008 10:41:11 -0400
+
+clive (0.4.3-1) unstable; urgency=low
+
+  * New upstream release (Closes: #462561).
+
+  * /usr/lib left after installing files is removed manually. Won't be
+    necessary as soon as pycentral bug #452227 is closed.
+  
+  * watch file updated.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Sat, 26 Jan 2008 21:27:24 +0600
+
+clive (0.3.3-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Tue, 20 Nov 2007 04:09:45 +0600
+
+clive (0.3.1-1) unstable; urgency=low
+
+  * New upstream release.
+    - Added dependency to python-urlgrabber.
+
+  * Description updated - clive supports not only YouTube and Google
+    Video, but also other video sites.
+  
+  * ffmpeg added to Suggests as clive may use it to recode downloaded
+    videos.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Sat, 03 Nov 2007 03:35:42 +0600
+
+clive (0.2.1-1) unstable; urgency=low
+
+  * New upstream release
+    - Fixes downloading from YouTube (Closes: #439621, #439622)
+    - Fixes downloading from Google Video (Closes: #430433)
+
+  * ACK NMU from Gerfried Fuchs.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Sat, 15 Sep 2007 00:13:58 +0700
+
+clive (0.2.0-1.1) unstable; urgency=low
+
+  * NMU, applied patch from Kumar Appaiah to fix:
+    - exceptions.IndexError (Closes: #439521).
+    - no longer works for Youtube (Closes: 439622).
+
+ -- Gerfried Fuchs <rhonda@debian.at>  Mon, 10 Sep 2007 11:31:02 +0200
+
+clive (0.2.0-1) unstable; urgency=low
+
+  * New upstream release (Closes: #418646).
+  * Updated watch file.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Tue, 01 May 2007 01:28:15 +0700
+
+clive (0.1.9-1) unstable; urgency=low
+
+  * New upstream release
+  * Watch file added.
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Sun, 15 Apr 2007 14:51:33 +0700
+
+clive (0.1.8-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Fri, 16 Mar 2007 12:38:46 +0600
+
+clive (0.1.7-1) unstable; urgency=low
+
+  * Initial release (Closes: #414262)
+
+ -- Mikhail Gusarov <dottedmag@dottedmag.net>  Sat, 10 Mar 2007 17:37:54 +0600
--- clive-2.2.5.orig/debian/watch
+++ clive-2.2.5/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://code.google.com/p/clive/downloads/list .+/files/clive-([\d.]+)\.tar\.bz2
--- clive-2.2.5.orig/debian/control
+++ clive-2.2.5/debian/control
@@ -0,0 +1,44 @@
+Source: clive
+Section: utils
+Priority: optional
+Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
+Uploaders: Damyan Ivanov <dmn@debian.org>, Ryan Niebur <ryanryan52@gmail.com>
+Build-Depends: debhelper (>= 7)
+Build-Depends-Indep: perl,
+ libclass-singleton-perl (>= 1.4),
+ libgetopt-argvfile-perl (>= 1.11),
+ libconfig-tiny-perl (>= 2.12),
+ libwww-curl-perl (>= 4.05),
+ libhtml-parser-perl (>= 2.37),
+ libberkeleydb-perl (>= 0.34),
+ liburi-perl (>= 1.37),
+ libexpect-perl (>= 1.20),
+ libterm-readkey-perl,
+ perl (>= 5.10) | libdigest-sha-perl
+Standards-Version: 3.8.3
+Vcs-Git: git://git.debian.org/git/pkg-perl/apps/clive.git
+Vcs-Browser: http://git.debian.org/?p=pkg-perl/apps/clive.git
+Homepage: http://clive.googlecode.com/
+
+Package: clive
+Architecture: all
+Depends: ${perl:Depends}, ${misc:Depends},
+ libclass-singleton-perl (>= 1.4),
+ libgetopt-argvfile-perl (>= 1.11),
+ libconfig-tiny-perl (>= 2.12),
+ libwww-curl-perl (>= 4.05),
+ libhtml-parser-perl (>= 2.37),
+ liburi-perl (>= 1.37),
+ libexpect-perl (>= 1.20),
+ perl (>= 5.10) | libdigest-sha-perl
+Recommends: clive-utils,
+ libberkeleydb-perl (>= 0.34),
+ libterm-readkey-perl
+Suggests: ffmpeg
+Description: video extraction utility for YouTube, Google Video and others
+ clive is a command line utility for extracting videos from Youtube and other
+ video sharing Web sites. It was originally written to bypass the Adobe Flash
+ requirement needed to view the hosted videos. It is non- interactive, meaning
+ it can work in the background while the user is not logged on. This allows the
+ user to start an extraction and disconnect from the system, letting clive
+ finish the work.
--- clive-2.2.5.orig/debian/compat
+++ clive-2.2.5/debian/compat
@@ -0,0 +1 @@
+7
