--- beaker-0.9.2.d1.orig/debian/rules
+++ beaker-0.9.2.d1/debian/rules
@@ -0,0 +1,59 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+package=python-beaker
+PYVER=$(shell pyversions -vd)
+
+clean:
+	rm -f build-*
+	dh_testdir
+	dh_testroot
+	python setup.py clean
+	rm -rf build
+	find . -name *\.py[co] -exec rm -f {} \;
+	dh_clean
+
+build: build-indep
+
+build-indep:
+	touch $@
+
+build-stamp: 
+	dh_testdir
+	python setup.py build
+	touch $@
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	python setup.py install \
+		--no-compile \
+		--single-version-externally-managed \
+		--root $(CURDIR)/debian/$(package)
+	# try to rename Egg dirname
+	-mv debian/$(package)/usr/lib/python$(PYVER)/site-packages/Beaker-0.9.2dev-py$(PYVER).egg-info \
+	   debian/$(package)/usr/lib/python$(PYVER)/site-packages/Beaker-0.9.2dev.egg-info
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples
+	dh_strip
+	dh_compress -X.py
+	dh_fixperms
+	dh_pysupport
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch:
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- beaker-0.9.2.d1.orig/debian/changelog
+++ beaker-0.9.2.d1/debian/changelog
@@ -0,0 +1,107 @@
+beaker (0.9.2.d1-1~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+  * Use Etch's python-support v0.5.6
+    + rename Egg dirname in debian/rules
+
+ -- Piotr Ożarowski <piotr@debian.org>  Sun, 30 Mar 2008 19:39:32 +0200
+
+beaker (0.9.2.d1-1) unstable; urgency=low
+
+  * Package upstream trunk as a new release to upload unreleased fixes.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Sun, 24 Feb 2008 10:37:53 -0700
+
+beaker (0.9.2-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Sat, 16 Feb 2008 16:49:21 -0700
+
+beaker (0.9-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control: 
+    - Updated Standards-Version to 3.7.3.
+    - Changed section from "web" to "python" as recommended by lintian.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Sun, 06 Jan 2008 22:32:31 -0700
+
+beaker (0.8-1) unstable; urgency=low
+
+  [ Oleksandr Moskalenko <malex@debian.org>]
+    * New upstream release.
+  [Piotr Ożarowski <piotr@debian.org>]
+    * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now)
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Tue, 30 Oct 2007 18:17:15 -0600
+
+beaker (0.7.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Tue, 04 Sep 2007 16:42:49 -0600
+
+beaker (0.7.4-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Sun, 15 Jul 2007 16:40:21 -0600
+
+beaker (0.7.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Tue, 26 Jun 2007 16:04:20 -0600
+
+beaker (0.7.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * (0.7.1-1):
+    [Piotr Ożarowski <piotr@debian.org>]
+      - python-myghtyutils dependency removed (no longer used).
+      - python-sqlalchemy added to Recommends.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Mon, 21 May 2007 09:09:44 -0600
+
+beaker (0.6.3-3) unstable; urgency=low
+
+  * Piotr Ożarowski <piotr@debian.org>:
+    + New python-support handles egg's directory name correctly
+      - bump python-support required version
+      - remove mv part from debian/rules
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Mon, 14 May 2007 09:39:09 -0600
+
+beaker (0.6.3-2) unstable; urgency=low
+
+  * Etch has been released. Upload into Unstable.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Tue, 10 Apr 2007 11:44:44 -0600
+
+beaker (0.6.3-1) experimental; urgency=low
+
+  * New upstream version (upload to experimental until Etch releases).
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Thu, 29 Mar 2007 16:17:55 -0600
+
+beaker (0.6.2-2) experimental; urgency=low
+
+  * debian/control:
+    - Added Debian Python Modules Team
+      <python-modules-team@lists.alioth.debian.org> to Uploaders.
+    - Added XS-Vcs-Svn and XS-Vcs-Browser control fields.
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Mon, 29 Jan 2007 11:37:37 -0700
+
+beaker (0.6.2-1) experimental; urgency=low
+
+  *  New upstream version (upload to experimental due to Etch freeze).
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Fri, 12 Jan 2007 11:00:59 -0700
+
+beaker (0.6.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #393756).
+
+ -- Oleksandr Moskalenko <malex@debian.org>  Mon, 16 Oct 2006 22:46:18 -0600
--- beaker-0.9.2.d1.orig/debian/dirs
+++ beaker-0.9.2.d1/debian/dirs
@@ -0,0 +1 @@
+usr/share/python-support/python-beaker
--- beaker-0.9.2.d1.orig/debian/python-beaker.dirs
+++ beaker-0.9.2.d1/debian/python-beaker.dirs
@@ -0,0 +1 @@
+usr/share/python-support/python-beaker
--- beaker-0.9.2.d1.orig/debian/control
+++ beaker-0.9.2.d1/debian/control
@@ -0,0 +1,22 @@
+Source: beaker
+Section: python
+Priority: optional
+Maintainer: Oleksandr Moskalenko <malex@debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
+Build-Depends: debhelper (>= 5), python (>= 2.3.3), python-all-dev, python-support (>= 0.5.6), python-setuptools (>= 0.6b3-1)
+Standards-Version: 3.7.3
+XS-Python-Version: all
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/beaker/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/beaker/trunk/?op=log
+
+Package: python-beaker
+Architecture: all
+Depends: ${python:Depends}, python
+Recommends: python-sqlalchemy
+XB-Python-Version: ${python:Versions}
+Enhances: python-pylons
+Description: Simple WSGI middleware that uses the Myghty Container API
+ MyghtyUtils contains a very robust Container API for storing data using
+ various backends. Beaker uses those APIs to implement common web application
+ wrappers, like sessions and caching, in WSGI middleware. Currently the only
+ middleware implemented is that for sessions but more is coming soon.
--- beaker-0.9.2.d1.orig/debian/watch
+++ beaker-0.9.2.d1/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://cheeseshop.python.org/packages/source/B/Beaker/Beaker-(.*)\.tar\.gz
--- beaker-0.9.2.d1.orig/debian/copyright
+++ beaker-0.9.2.d1/debian/copyright
@@ -0,0 +1,33 @@
+This package was debianized by Oleksandr Moskalenko <malex@debian.org> on Mon,
+16 Oct 2006 22:00:11 -0600.
+
+It was downloaded from <http://cheeseshop.python.org/pypi/Beaker/>.
+
+Upstream Authors: Julian Krause and Ben Bangart.
+
+Copyright: Julian Krause and Ben Bangart - <thecrypto@thecrypto.org>.
+
+License:
+
+   This package is licensed under the MIT License.
+
+   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.
+
+The Debian packaging is (C) 2006, Oleksandr Moskalenko <malex@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- beaker-0.9.2.d1.orig/debian/compat
+++ beaker-0.9.2.d1/debian/compat
@@ -0,0 +1 @@
+5
