--- chronicle-3.9.orig/debian/watch
+++ chronicle-3.9/debian/watch
@@ -0,0 +1,10 @@
+# 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.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+http://www.steve.org.uk/Software/chronicle/ chronicle-(.*)\.tar\.gz
+
--- chronicle-3.9.orig/debian/compat
+++ chronicle-3.9/debian/compat
@@ -0,0 +1 @@
+5
--- chronicle-3.9.orig/debian/changelog
+++ chronicle-3.9/debian/changelog
@@ -0,0 +1,243 @@
+chronicle (3.9-1~bpo50+1) lenny-backports; urgency=low
+
+  * Rebuild for lenny-backports.
+
+ -- Alexander Wirt <formorer@debian.org>  Wed, 14 Oct 2009 20:39:53 +0000
+
+chronicle (3.9-1) unstable; urgency=low
+
+  * Updated all themes which are included by default:
+    - Each theme now fully validates.
+    - Each theme now uses a header.inc, footer.inc, and sidebar.inc file.
+  * Support the use of a local temple-override directory specified via
+    the HTML_TEMPLATE_ROOT environmental variable.
+
+ -- Steve Kemp <skx@debian.org>  Sat, 3 Oct 2009 08:49:01 +0000
+
+chronicle (3.8-1) unstable; urgency=low
+
+  * Add the chronicle-spam-test script to the examples/ directory.
+  * Avoid generating a sitemap.xml file if no URL prefix has been
+    defined.  (Closes: #545198)
+  * Allow the sitemap.xml to use an URL prefix even if the site-prefix
+    isn't set, with --sitemap-prefix=
+
+ -- Steve Kemp <skx@debian.org>  Sat, 26 Sep 2009 10:30:01 +0000
+
+chronicle (3.7-1) unstable; urgency=medium
+
+  * Added the generation of a sitemap.xml file to the top level of the blog.
+  * Bumped standards version to 3.8.3 - no changes required.
+
+ -- Steve Kemp <skx@debian.org>  Thur, 20 August 2009 6:32:06 +0000
+
+chronicle (3.6-1) unstable; urgency=medium
+
+  * Updated the simple theme.
+  * Added the option "--author" to allow the authors email address to
+    be specified.  This allows author-posted comments to be highlighted
+    via CSS.
+    (Demonstrated by the simple theme.)
+  * Added support for gravitar icons
+  * Added support for homepage/link collection & display in comments.
+
+ -- Steve Kemp <skx@debian.org>  Sun, 22 June 2009 11:11:11 +0000
+
+chronicle (3.5-1) unstable; urgency=medium
+
+  * Added a new theme "simple".
+  * Added the option "--date-archive-path" to create archives in
+    subdirectories.
+
+ -- Steve Kemp <skx@debian.org>  Sun, 22 Feb 2009 08:22:08 +0000
+
+chronicle (3.4-1) unstable; urgency=medium
+
+  * Abort if non-unique titles are encountered.
+    (Closes: #508268)
+  * Allow date + tag views to be sorted "most recent first",
+    via new command line arguments / configuration file options.
+
+ -- Steve Kemp <skx@debian.org>  Wed, 10 Dec 2008 20:22:02 +0000
+
+chronicle (3.3-1) unstable; urgency=medium
+
+  * Default to UTF-8 when processing input in textile formats.  Allow
+    --charset=foo to override this.
+    Thanks to  Nicolau Werneck for the patch.
+
+ -- Steve Kemp <skx@debian.org>  Sun, 6 Dec 2008 22:16:22 +0000
+
+chronicle (3.2-2) unstable; urgency=medium
+
+  * Install the file cgi-bin/comments.cgi alongside the other example
+    files.  (Closes: #504270)
+
+ -- Steve Kemp <skx@debian.org>  Sun, 2 Nov 2008 14:55:41 +0000
+
+chronicle (3.2-1) unstable; urgency=high
+
+  * New upstream release.
+    - Applied patch from Byron Clark to support non-GMT timezones.
+
+ -- Steve Kemp <skx@debian.org>  Thu, 9 Oct 2008 19:55:19 +0000
+
+chronicle (3.1-1) unstable; urgency=high
+
+  * New upstream release.
+    - Correctly sort submitted comments by their submission time &date.
+
+ -- Steve Kemp <skx@debian.org>  Mon, 1 Sep 2008 20:40:59 +0000
+
+chronicle (3.0-1) unstable; urgency=high
+
+  * New upstream release.
+    - Updated standards version to 3.8.0
+
+ -- Steve Kemp <skx@debian.org>  Wed, 23 Jul 2008 18:19:20 +0000
+
+chronicle (2.9-3) unstable; urgency=high
+
+  * Added "suggests" to package for
+    - libtext-markdown-perl
+    - libtext-textile-perl
+    (Closes: #488406)
+
+ -- Steve Kemp <skx@debian.org>  Sun, 25 May 2008 14:44:41 +0000
+
+chronicle (2.9-2) unstable; urgency=high
+
+  * Bugfix: Allow "--format=markdown" to work correctly.
+  * Allow per-entry format selection via "Format: [html|textile|..]"
+    psuedo-header.
+
+ -- Steve Kemp <skx@debian.org>  Sun, 25 May 2008 14:44:41 +0000
+
+chronicle (2.9-1) unstable; urgency=high
+
+  * Bugfix:  Don't use invalid dates when sorting.
+
+ -- Steve Kemp <skx@debian.org>  Fri, 16 May 2008 17:47:27 +0000
+
+chronicle (2.8-1) unstable; urgency=low
+
+  * New upstream release:
+    - Ignore entries with a Publish: date in the future.
+    - Don't ignore the published *times* when sorting by *date*.
+
+ -- Steve Kemp <skx@debian.org>  Fri, 16 May 2008 17:18:19 +0000
+
+chronicle (2.7-1) unstable; urgency=low
+
+  * New upstream release:
+    - Don't needlessly strip the suffix from titles.
+    - Added utility to warn about duplicated titles.
+    - Added new "leftbar" theme.
+
+ -- Steve Kemp <skx@debian.org>  Fri, 2 May 2008 21:00:12 +0000
+
+chronicle (2.6-2) unstable; urgency=low
+
+  * Include manpage for chronicle-spooler.
+  * Include patch from MJ Ray for correct time handling of entries.
+
+ -- Steve Kemp <skx@debian.org>  Mon, 14 Apr 2008 20:00:02 +0000
+
+chronicle (2.6-1) unstable; urgency=low
+
+  * New upstream release:
+    - Allow pending posts to be spooled, via chronicle-spool.
+    - Updated script to allow RSS v1.0 dates.
+
+ -- Steve Kemp <skx@debian.org>  Mon, 14 Apr 2008 20:00:02 +0000
+
+chronicle (2.5-1) unstable; urgency=low
+
+  * New upstream release:
+    - Allow subjects to be specified via 'Subject:' in addition to
+      'Title:'.  Useful for email submission.
+    - Added new theme, as used on http://blog.mail-scanning.com/
+
+ -- Steve Kemp <skx@debian.org>  Wed, 2 Apr 2008 15:11:51 +0000
+
+chronicle (2.4-1) unstable; urgency=medium
+
+  * New upstream release:
+    - Entries in the 'tag' view are sorted by date.
+    - Entries in the 'archive' view are sorted by date.
+
+ -- Steve Kemp <skx@debian.org>  Tue, 25 Mar 2008 22:50:05 +0000
+
+chronicle (2.3-1) unstable; urgency=medium
+
+  * New upstream release:
+    - Allow entries to be cut via <cut text="AAAA"></cut>
+
+ -- Steve Kemp <skx@debian.org>  Tue, 11 Mar 2008 20:19:18 +0000
+
+chronicle (2.2-1) unstable; urgency=medium
+
+  * New upstream release:
+    - Bugfix to allow comments to be inserted correctly.
+    - Allow comment form to be limited to "recent" posts.
+    - Sort the tags on each entry alphabetically.
+
+ -- Steve Kemp <skx@debian.org>  Wed, 16 Jan 2008 18:47:18 +0000
+
+chronicle (2.1-1) unstable; urgency=medium
+
+  * New upstream release:
+    - Fixed the handling of comments on the default theme.
+    - Updated output to add 'alt', 'height', and 'width' to all <img> tags.
+    - Produce valid HTML output, and added test to ensure that is the case.
+    - Added AJAX support to the blog.steve.org.uk theme for comment submission.
+
+ -- Steve Kemp <skx@debian.org>  Tue, 1 Jan 2008 22:22:22 +0000
+
+chronicle (2.0-1) unstable; urgency=low
+
+  * New upstream release:
+    - Adds support for comments via helper CGI process.
+    - Makes sure feeds validate.
+    - HTML Entity escaping of links, and tag-names.
+    - Simplified date & time handling.
+    - The addition of a new theme 'blog.steve.org.uk'.
+  * Consistent spelling for 'calendar' and the ability to work
+    without this module.  (Closes: #456772)
+
+ -- Steve Kemp <skx@debian.org>  Wed, 20 Dec 2007 11:53:11 +0000
+
+chronicle (1.2-1) unstable; urgency=low
+
+  * Initial upload to Debian.
+    (Closes: #455761)
+  * New upstream release:
+    - Reverse sort the date-cloud.
+    - Add 'pubDate' attributes to our RSS feed(s)
+
+ -- Steve Kemp <skx@debian.org>  Mon, 11 Dec 2007 11:58:11 +0000
+
+chronicle (1.1-1) stable; urgency=low
+
+  * New upstream release:
+    - Allows support for calandar in the index.
+
+ -- Steve Kemp <steve@steve.org.uk>  Sat, 8 Dec 2007 16:53:16 +0000
+
+chronicle (1.0-1) stable; urgency=low
+
+  * New upstream release.
+
+ -- Steve Kemp <steve@steve.org.uk>  Sat, 10 Nov 2007 17:06:21 +0000
+
+chronicle (0.9-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Steve Kemp <steve@steve.org.uk>  Thu, 25 Oct 2007 19:34:41 +0000
+
+chronicle (0.8-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Felipe Sateler <fsateler@gmail.com>  Wed, 10 Oct 2007 21:40:32 -0400
--- chronicle-3.9.orig/debian/rules
+++ chronicle-3.9/debian/rules
@@ -0,0 +1,63 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+build: build-stamp
+
+build-stamp:
+	dh_testdir
+	pod2man bin/chronicle         > chronicle.1
+	pod2man bin/chronicle-spooler > chronicle-spooler.1
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	rm -f chronicle.1 chronicle-spooler.1
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	$(MAKE) prefix=$(CURDIR)/debian/chronicle install
+	mv $(CURDIR)/debian/chronicle/usr/local/bin/chronicle \
+		$(CURDIR)/debian/chronicle/usr/bin
+	mv $(CURDIR)/debian/chronicle/usr/local/bin/chronicle-spooler \
+		$(CURDIR)/debian/chronicle/usr/bin
+	rmdir $(CURDIR)/debian/chronicle/usr/local/bin/
+	rmdir $(CURDIR)/debian/chronicle/usr/local
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples bin/chronicle-rss-importer bin/check-titles cgi-bin/comments.cgi bin/chronicle-spam-test
+	dh_installman chronicle.1 chronicle-spooler.1
+	dh_compress
+	dh_fixperms
+	dh_perl
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# No arch-dependent package
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- chronicle-3.9.orig/debian/control
+++ chronicle-3.9/debian/control
@@ -0,0 +1,25 @@
+Source: chronicle
+Section: web
+Priority: extra
+Maintainer: Steve Kemp <skx@debian.org>
+Build-Depends: debhelper (>= 5)
+Standards-Version: 3.8.3
+Homepage: http://www.steve.org.uk/Software/chronicle/
+
+Package: chronicle
+Architecture: all
+Depends: ${perl:Depends}, libtimedate-perl, libhtml-template-perl, perl-modules
+Suggests: memcached, libtext-markdown-perl, libtext-textile-perl
+Description: HTML & RSS blog compiler
+ This is a tool which will convert a directory of simple
+ text files into a static HTML weblog, (or blog if you prefer).
+ .
+  The system is intentionally simple, but it supports:
+ .
+  * RSS feed creation.
+ .
+  * Template based output.
+ .
+  * The tagging of entries.
+ .
+  * User comments upon entries.
--- chronicle-3.9.orig/debian/docs
+++ chronicle-3.9/debian/docs
@@ -0,0 +1,3 @@
+AUTHORS
+COMMENTS
+README
--- chronicle-3.9.orig/debian/copyright
+++ chronicle-3.9/debian/copyright
@@ -0,0 +1,22 @@
+This package was debianized by Felipe Sateler <fsateler@gmail.com> on
+Wed, 10 Oct 2007 21:15:20 -0400.
+
+It was downloaded from http://www.steve.org.uk/Software/chronicle/
+
+Upstream Authors: See the included AUTHORS file.
+
+Copyright (c) 2007-2008 by Steve Kemp.
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of either:
+
+    a) the GNU General Public License as published by the Free Software
+       Foundation; either version 1, or (at your option) any later
+       version, or
+
+    b) the "Artistic License" which comes with Perl.
+
+    On Debian GNU/Linux systems, the complete text of the GNU General
+    Public License can be found in `/usr/share/common-licenses/GPL' and
+    the Artistic Licence in `/usr/share/common-licenses/Artistic'.
+
--- chronicle-3.9.orig/debian/dirs
+++ chronicle-3.9/debian/dirs
@@ -0,0 +1,3 @@
+usr/bin
+etc
+usr/share/chronicle/
