--- python-xattr-0.4.orig/debian/patches/series
+++ python-xattr-0.4/debian/patches/series
@@ -0,0 +1 @@
+tool.py-add-missing-global
--- python-xattr-0.4.orig/debian/patches/tool.py-add-missing-global
+++ python-xattr-0.4/debian/patches/tool.py-add-missing-global
@@ -0,0 +1,12 @@
+Index: python-xattr/Lib/xattr/tool.py
+===================================================================
+--- python-xattr.orig/Lib/xattr/tool.py	2007-03-20 00:19:03.000000000 +0100
++++ python-xattr/Lib/xattr/tool.py	2007-03-20 00:19:16.000000000 +0100
+@@ -32,6 +32,7 @@
+         sys.exit(0)
+ 
+ def main():
++    global long_format
+     # Read options
+     try:
+         (optargs, args) = getopt.getopt(sys.argv[1:], "hl", ["help"])
--- python-xattr-0.4.orig/debian/changelog
+++ python-xattr-0.4/debian/changelog
@@ -0,0 +1,59 @@
+python-xattr (0.4-4~bpo40+1) etch-backports; urgency=low
+
+  * Backport testing version for backports.org
+  * Set build-dep on python-setuptools to be bpo version
+
+ -- Micah Anderson <micah@debian.org>  Sat, 17 Jan 2009 15:12:39 +0000
+
+python-xattr (0.4-4) unstable; urgency=low
+
+  * depend on python-pkg-resources (Closes: #468703)
+  * use Vcs-Git instead of XS-Vcs-Git 
+
+ -- Guido Guenther <agx@sigxcpu.org>  Sun, 02 Mar 2008 14:32:44 +0100
+
+python-xattr (0.4-3) unstable; urgency=low
+
+  * depend on python-setuptools (Closes: #456716)
+  * add XS-VCS-Git
+  * bump standards version
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 18 Dec 2007 13:22:07 +0100
+
+python-xattr (0.4-2) unstable; urgency=low
+
+  * depend on python-setuptools (Closes: #415542) 
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 20 Mar 2007 18:45:38 +0100
+
+python-xattr (0.4-1) unstable; urgency=low
+
+  * New Upstream Version
+  * debian/patches/version: drop, fixed upstream
+  * debian/patches/tool.py-add-missing-global: add, fix attribute display in
+    xattr
+
+ -- Guido Guenther <agx@sigxcpu.org>  Tue, 20 Mar 2007 00:10:07 +0100
+
+python-xattr (0.2-3) unstable; urgency=low
+
+  * correct version number in __init__.py
+  * build-depend on python-all-dev so all we build for all available python
+    versions (Closes: #387013)
+
+ -- Guido Guenther <agx@sigxcpu.org>  Mon, 11 Sep 2006 23:21:08 +0200
+
+python-xattr (0.2-2) unstable; urgency=low
+
+  * upload to unstable since we actually provide the same functionality as
+    python-pykerberos and therefore can safely provide/replace it
+  * don't install INSTALLING.txt
+
+ -- Guido Guenther <agx@sigxcpu.org>  Mon, 11 Sep 2006 14:44:19 +0200
+
+python-xattr (0.2-1) experimental; urgency=low
+
+  * Initial release
+
+ -- Guido Guenther <agx@sigxcpu.org>  Wed,  6 Sep 2006 15:52:03 +0200
+
--- python-xattr-0.4.orig/debian/compat
+++ python-xattr-0.4/debian/compat
@@ -0,0 +1 @@
+5
--- python-xattr-0.4.orig/debian/control
+++ python-xattr-0.4/debian/control
@@ -0,0 +1,18 @@
+Source: python-xattr
+Section: python
+Priority: optional
+Maintainer: Guido Guenther <agx@sigxcpu.org>
+Build-Depends: cdbs, debhelper (>= 5), quilt, python-all-dev, python-support (>= 0.3), python-setuptools (>= 0.6c8-4~bpo40+1)
+Standards-Version: 3.7.3
+Vcs-Git: http://honk.sigxcpu.org/git/debian-packages/python-xattr.git/
+
+Package: python-xattr
+Architecture: any
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-pkg-resources
+Conflicts: python-pyxattr
+Provides: python-pyxattr
+Description: module for manipulating filesystem extended attributes
+ This module allows manipulation of the filesystem extended attributes present
+ in some operating systems (GNU/Linux included). It is compatible to
+ python-pyxattr but also provides a dictionary like interfaces for manipulating
+ these attributes.
--- python-xattr-0.4.orig/debian/copyright
+++ python-xattr-0.4/debian/copyright
@@ -0,0 +1,34 @@
+This package was debianized by Guido Guenther <agx@sigxcpu.org> on
+Wed,  6 Sep 2006 15:52:03 +0200.
+
+It was downloaded from http://svn.red-bean.com/bob/xattr/releases/xattr-0.2/
+
+Upstream Author: Bob Ippolito <bob@redivi.com>
+
+Copyright: Copyright (c) 2004 Bob Ippolito.
+
+License:
+
+This is the MIT license. This software may also be distributed under the same
+terms as Python (the PSF license).
+
+Copyright (c) 2004 Bob Ippolito.
+
+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.
+
--- python-xattr-0.4.orig/debian/docs
+++ python-xattr-0.4/debian/docs
@@ -0,0 +1,2 @@
+README.txt
+TODO.txt
--- python-xattr-0.4.orig/debian/pycompat
+++ python-xattr-0.4/debian/pycompat
@@ -0,0 +1 @@
+2
--- python-xattr-0.4.orig/debian/pyversions
+++ python-xattr-0.4/debian/pyversions
@@ -0,0 +1 @@
+2.3-
--- python-xattr-0.4.orig/debian/rules
+++ python-xattr-0.4/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+  
+DEB_TAR_SRCDIR                  := python-xattr
+DEB_AUTO_CLEANUP_RCS            := yes
+
+DEB_PYTHON_SYSTEM = pysupport
+DEB_PYTHON_CLEAN_ARGS = --all
+
+# Add here any variable or target overrides you need
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+clean::
+	rm -rf xattr.egg-info
