--- mod-wsgi-2.3.orig/debian/compat
+++ mod-wsgi-2.3/debian/compat
@@ -0,0 +1 @@
+5
--- mod-wsgi-2.3.orig/debian/wsgi.load
+++ mod-wsgi-2.3/debian/wsgi.load
@@ -0,0 +1 @@
+LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
--- mod-wsgi-2.3.orig/debian/libapache2-mod-wsgi.postinst
+++ mod-wsgi-2.3/debian/libapache2-mod-wsgi.postinst
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+set -e
+
+apache_force_reload() {
+    if apache2ctl configtest 2>/dev/null; then
+        invoke-rc.d apache2 force-reload || true
+    else
+        echo "Your apache2 configuration is broken, please fix it and restart apache2 manually."
+    fi
+}
+
+if [ -z "$2" ]; then
+    if [ -e /etc/apache2/apache2.conf ]; then
+        a2enmod wsgi >/dev/null || true
+        apache_force_reload
+    fi
+else
+    #we're upgrading
+    if [ -e /etc/apache2/mods-enabled/wsgi.load ]; then
+        apache_force_reload
+    fi
+fi
+
+#DEBHELPER#
+
+exit 0
--- mod-wsgi-2.3.orig/debian/libapache2-mod-wsgi.rtupdate
+++ mod-wsgi-2.3/debian/libapache2-mod-wsgi.rtupdate
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = rtupdate ]; then
+    new_version=`echo ${3} | sed 's,^python,,'`
+    ln -sf mod_wsgi.so-${new_version} /usr/lib/apache2/modules/mod_wsgi.so
+fi
--- mod-wsgi-2.3.orig/debian/control
+++ mod-wsgi-2.3/debian/control
@@ -0,0 +1,21 @@
+Source: mod-wsgi
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
+Uploaders: Bernd Zeimetz <bzed@debian.org>, Piotr Ożarowski <piotr@debian.org>
+Build-Depends: debhelper (>= 5), python-all-dev, apache2-threaded-dev, dpatch
+Homepage: http://www.modwsgi.org/
+Standards-Version: 3.7.3
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/mod-wsgi/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/mod-wsgi/trunk/?op=log
+
+Package: libapache2-mod-wsgi
+Architecture: any
+Depends: apache2, apache2.2-common, ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Suggests: apache2-mpm-worker | apache2-mpm-event
+Description: Python WSGI adapter module for Apache
+ The mod_wsgi adapter is an Apache module that provides a WSGI (Web Server
+ Gateway Interface, a standard interface between web server software and
+ web applications written in Python) compliant interface for hosting Python
+ based web applications within Apache. The adapter provides significantly
+ better performance than using existing WSGI adapters for mod_python or CGI.
--- mod-wsgi-2.3.orig/debian/changelog
+++ mod-wsgi-2.3/debian/changelog
@@ -0,0 +1,269 @@
+mod-wsgi (2.3-1~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+
+ -- Bernd Zeimetz <bzed@debian.org>  Thu, 04 Sep 2008 01:33:00 +0200
+
+mod-wsgi (2.3-1) unstable; urgency=low
+
+  * New upstream release (Closes: #496067). This upload covers the changes of
+    mod-wsgi 2.2 and 2.3.
+    mod-wsgi 2.2 is mainly bugfix-releases. The only exception is a backport
+    of one function from 3.0 which allows the setting of process names on *BSD
+    - this does not affect Linux.
+    mod-wsgi 2.3 fixes regressions which were introduced in 2.2.
+    
+    Here follows a list of the bugfixes in 2.2:
+      1. Fix bug whereby if mod_python is loaded at same time as mod_wsgi the
+         WSGIImportScript directive can cause Apache child processes to crash.
+         For details see: http://code.google.com/p/modwsgi/issues/detail?id=91
+
+      2. Fix bug where mod_wsgi daemon process startup could fail due to old
+         stale UNIX listener socket file as described in:
+         http://code.google.com/p/modwsgi/issues/detail?id=77 
+
+      3. Fix bug where listener socket file descriptors for daemon processes
+         were being leaked in Apache parent process on a graceful restart.
+         Also fixes problem where UNIX listener socket was left in filesystem
+         on both graceful restart and graceful shutdown. For details see:
+         http://code.google.com/p/modwsgi/issues/detail?id=95 
+
+      4. Fix bug where response was truncated when a null character appeared
+         as first character in block of data being returned from
+         wsgi.file_wrapper.
+         Only occurred when code fell back to using iteration over supplied
+         file like object, rather than optimised method such as sendfile().
+         http://code.google.com/p/modwsgi/issues/detail?id=100
+
+    The following regressions/bugs of 2.2 were fixed in 2.3:
+
+      1. Fixed problem introduced in version 2.2 of mod_wsgi whereby use of
+         daemon mode would cause CGI scripts to fail. It is quite possible
+         that the bug could also have caused failures with other Apache
+         modules that relied on registering of cleanup functions against
+         Apache configuration memory pool.
+
+      2. (does not affect Linux)
+         When using setproctitle() on BSD systems, first argument should be
+         a printf style format string with values to fill out per format as
+         additional arguments. Code was supplying value to be displayed as
+         format string which meant that if it contained any printf type format
+         sequences, could cause process to crash as corresponding arguments
+         wouldn't have ben provided.
+
+ -- Bernd Zeimetz <bzed@debian.org>  Sat, 23 Aug 2008 19:27:48 +0200
+
+mod-wsgi (2.1-2) unstable; urgency=medium
+
+  * Calling pyversions in postinst requires that 'python' is installed *and*
+    configured, so it would need to be added to Pre-Depends. As this is kinda
+    ugly, we ship the symlink to the module for the right Python version now
+    in the package. I assume that this will really fix #483197 now, I'm quite
+    sure that the broken link results from an error message of the
+    unconfigured python/pyversions. Shipping the symlink also makes sure that
+    it is available while Apache is configured (which may happen before
+    mod-wsgi is configured). (Closes: #483197, #491478)
+  * Drop the parts from the maintainer scripts which renamed the wsgi config
+    files (see #456737 for details) - as mod-wsgi was not released with Etch
+    and the fix was for a long enough time in testing, it should be safe to
+    remove them before Lenny.
+
+ -- Bernd Zeimetz <bzed@debian.org>  Mon, 21 Jul 2008 01:20:43 +0200
+
+mod-wsgi (2.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/libapache2-mod-wsgi.rtupdate:
+    - Fixing bashism. Thanks to Vitaliyi (Closes: #483197)
+  * debian/copyright:
+    - Removing full text of the Apache License, linking to
+      /usr/share/common-licenses/Apache-2.0 instead.
+  * debian/wsgi.conf:
+    - Removing WSGIPythonExecutable directive from the example configuration
+      as it does not exist in 2.X versions of mod-wsgi. Thanks to Martin
+      Tomasek for the report. (Closes: #488982)
+
+ -- Bernd Zeimetz <bzed@debian.org>  Mon, 07 Jul 2008 00:37:50 +0200
+
+mod-wsgi (2.0-1) unstable; urgency=low
+
+  * New upstream version.
+  * Merging changes of the experimental uploads.
+
+ -- Bernd Zeimetz <bzed@debian.org>  Fri, 21 Mar 2008 11:49:44 +0100
+
+mod-wsgi (2.0~c5-1) experimental; urgency=low
+
+  * New beta version.
+  * debian/control:
+    - Updating my email address.
+
+ -- Bernd Zeimetz <bzed@debian.org>  Mon, 17 Mar 2008 23:55:10 +0100
+
+mod-wsgi (2.0~c4-2) experimental; urgency=low
+
+  * Rename mod_wsgi.load to wsgi.load to follow
+    /etc/apache2/mods-available best practise (sync with 1.3-2 from unstable)
+
+ -- Piotr Ożarowski <piotr@debian.org>  Mon, 07 Jan 2008 16:36:35 +0100
+
+mod-wsgi (1.3-2) unstable; urgency=low
+
+  [ Sandro Tosi ]
+  * debian/control
+    - uniforming Vcs-Browser field
+
+  [ Piotr Ożarowski ]
+  * Rename mod_wsgi.load to wsgi.load (to follow
+    /etc/apache2/mods-available best practise, closes: 456737)
+  * Bump Standards-Version to 3.7.3 (no changes needed)
+  * Add myself to Uploaders
+
+ -- Piotr Ożarowski <piotr@debian.org>  Mon, 07 Jan 2008 16:24:51 +0100
+
+mod-wsgi (2.0~c4-1) experimental; urgency=low
+
+  * New beta version.
+  * debian/control:
+    - Updating my email address.
+    - Updating Standards-Version to 3.7.3.
+
+ -- Bernd Zeimetz <bzed@debian.org>  Fri, 14 Dec 2007 21:29:12 +0100
+
+mod-wsgi (2.0~c3-1) experimental; urgency=low
+
+  * New beta version.
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Sat, 17 Nov 2007 16:16:36 +0100
+
+mod-wsgi (1.3-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Sat, 17 Nov 2007 16:15:06 +0100
+
+mod-wsgi (2.0~c2-1) experimental; urgency=low
+
+  * New beta version.
+  * debian/patches:
+    - Removing ap_thread_stacksize.dpatch as the issue is fixed by upstream
+      now.
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Thu, 08 Nov 2007 12:14:55 +0100
+
+mod-wsgi (2.0~c1-2) experimental; urgency=low
+
+  * debian/control: reverting the change from -1
+  * debian/patches:
+    - Adding ap_thread_stacksize.dpatch to allow us to build the module using
+      apache-threaded-dev. In the rare case that somebody would like to
+      configure the stack size of WSGIDaemonProcess, both ThreadStackSize and
+      stack-size option need to be set due to this change.
+      Thanks to the upstream author, Graham Dumpleton.
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Tue, 30 Oct 2007 22:11:50 +0100
+
+mod-wsgi (2.0~c1-1) experimental; urgency=low
+
+  [ Bernd Zeimetz ]
+  *  Beta version of the upcoming 2.0 version.
+
+  [ Piotr Ożarowski ]
+  * debian/control:
+    - move "apache2-mpm-worker | apache2-mpm-event" from Suggests to Depends
+      as 2.0~c1 doesn't work with apache2-mpm-prefork
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Tue, 30 Oct 2007 21:45:46 +0100
+
+mod-wsgi (1.2-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/watch:
+    - Only watching for updates of released versions now, beta versions go
+      into an experimental branch.
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Tue, 30 Oct 2007 03:04:20 +0100
+
+mod-wsgi (1.1-2) unstable; urgency=low
+
+  * Applying a patch from Josselin Mouette - thanks, introducing the
+    following changes
+    - Build the module for all supported python versions.
+    - Ship a rtupdate script to rotate to the new version when the python
+      version changes.
+    - Build-depend on python-all-dev.
+    (Closes: #445486)
+
+  * debian/control:
+    - Renaming XS-Vcs-* fields to Vcs-*, as they're supported by dpkg now
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Sat, 06 Oct 2007 15:16:00 +0200
+
+mod-wsgi (1.1-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/control:
+    - Adding Homepage field, removing pseudo-field from description
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Mon, 01 Oct 2007 10:28:37 +0200
+
+mod-wsgi (1.0-2) unstable; urgency=low
+
+  * debian/control:
+    - Moving apache workers from Recommends to Suggests to make the package
+      installation more easy for those who really want to use PHP, which
+      depends on the preforking worker (Closes: #443105).
+    - Adding apache2 to Depends
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Tue, 18 Sep 2007 20:35:06 +0200
+
+mod-wsgi (1.0-1) unstable; urgency=low
+
+  * New upstream version - first stable release.
+  * debian/watch:
+    - Small fix to recognize versions correctly
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Wed, 05 Sep 2007 14:17:20 +0200
+
+mod-wsgi (1.0~c4-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/patches:
+    - Removing r413-error-log-fix.dpatch as this fix is included in the
+      upstream tarball
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Thu, 30 Aug 2007 17:20:36 +0200
+
+mod-wsgi (1.0~c2-1) unstable; urgency=low
+
+  * New upstream version
+  * debian/control:
+    - Removing autotools-dev build-dep, as configure relies on the information
+      provided by apxs2 and does not take care of config.sub or config.guess.
+  * debian/watch:
+    - Fixing filenamemangle to allow uscan to download the file
+  * debian/patches/makefile-destdir.dpatch,umask-fix.dpatch:
+    - Removing files, changes were added upstream
+  * debian/patches/r413-error-log-fix.dpatch:
+    - Adding patch from upstream's svn to fix a bug which could result in a
+      crash of mod-wsgi, for details see
+      http://code.google.com/p/modwsgi/issues/detail?id=24
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Sun, 12 Aug 2007 12:56:10 +0200
+
+mod-wsgi (1.0~c1-2) unstable; urgency=low
+
+  * debian/mod-wsgi.conf:
+    - Adding a config file for mod-wsgi to allow easy configuration for users
+  * debian/control:
+    - Adding apache2-mpm-worker | apache2-mpm-event as Recommends to provide a
+      fast default worker
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Tue, 31 Jul 2007 02:31:59 +0200
+
+mod-wsgi (1.0~c1-1) unstable; urgency=low
+
+  * Initial release (Closes: #415332)
+
+ -- Bernd Zeimetz <bernd@bzed.de>  Mon, 30 Jul 2007 16:22:40 +0200
+
--- mod-wsgi-2.3.orig/debian/patches/00dpatch.conf
+++ mod-wsgi-2.3/debian/patches/00dpatch.conf
@@ -0,0 +1,2 @@
+conf_debianonly=1
+conf_origtargzpath=../tarballs
--- mod-wsgi-2.3.orig/debian/patches/configure-apache-version.dpatch
+++ mod-wsgi-2.3/debian/patches/configure-apache-version.dpatch
@@ -0,0 +1,32 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## configure-apache-version.dpatch by Bernd Zeimetz <bernd@bzed.de>
+##
+## DP: we don't want to build-depend on Apache2 to build the package.
+
+@DPATCH@
+diff -urNad mod-wsgi-experimental~/configure mod-wsgi-experimental/configure
+--- mod-wsgi-experimental~/configure	2007-12-13 11:26:59.000000000 +0100
++++ mod-wsgi-experimental/configure	2007-12-14 21:04:52.000000000 +0100
+@@ -1677,13 +1677,6 @@
+ 
+ 
+ 
+-{ echo "$as_me:$LINENO: checking Apache version" >&5
+-echo $ECHO_N "checking Apache version... $ECHO_C" >&6; }
+-HTTPD="`${APXS} -q SBINDIR`/`${APXS} -q TARGET`"
+-HTTPD_VERSION=`$HTTPD -v | awk '/version/ {print $3}' | awk -F/ '{print $2}'`
+-{ echo "$as_me:$LINENO: result: $HTTPD_VERSION" >&5
+-echo "${ECHO_T}$HTTPD_VERSION" >&6; }
+-
+ 
+ # Check whether --with-python was given.
+ if test "${with_python+set}" = set; then
+@@ -1807,7 +1800,7 @@
+ LIBEXECDIR="`${APXS} -q LIBEXECDIR`"
+ 
+ 
+-HTTPD_MAJOR_VERSION=`echo ${HTTPD_VERSION} | sed -e 's/\..*//'`
++HTTPD_MAJOR_VERSION=2
+ 
+ rm -f Makefile.in
+ ln -s Makefile-${HTTPD_MAJOR_VERSION}.X.in Makefile.in
--- mod-wsgi-2.3.orig/debian/patches/00list
+++ mod-wsgi-2.3/debian/patches/00list
@@ -0,0 +1 @@
+configure-apache-version
--- mod-wsgi-2.3.orig/debian/watch
+++ mod-wsgi-2.3/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts="filenamemangle=s/.*\/mod_wsgi/mod-wsgi/,uversionmangle=s/([0-9.]*)([^0-9.].*)/$1~$2/" \
+http://code.google.com/p/modwsgi/downloads/list http://modwsgi.googlecode.com/files/mod_wsgi-([0-9.]*)\.tar\.gz
--- mod-wsgi-2.3.orig/debian/libapache2-mod-wsgi.postrm
+++ mod-wsgi-2.3/debian/libapache2-mod-wsgi.postrm
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+if [ "$1" = "purge" -o "$1" = "remove" ]; then
+    # remove pseudo conffile
+    test -e /etc/apache2/mods-available/wsgi.load && rm -f /etc/apache2/mods-available/wsgi.load
+fi
+if [ "$1" = "purge" -a -e /etc/apache2/mods-available/wsgi.conf ]; then
+    # remove conffile
+    rm -f /etc/apache2/mods-available/wsgi.conf
+fi
+
+#DEBHELPER#
+
+exit 0
--- mod-wsgi-2.3.orig/debian/libapache2-mod-wsgi.prerm
+++ mod-wsgi-2.3/debian/libapache2-mod-wsgi.prerm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
+    a2dismod wsgi || true
+fi
+
+#DEBHELPER#
+
+exit 0
--- mod-wsgi-2.3.orig/debian/wsgi.conf
+++ mod-wsgi-2.3/debian/wsgi.conf
@@ -0,0 +1,71 @@
+<IfModule mod_wsgi.c>
+
+
+    #This config file is provided to give an overview of the directives,
+    #which are only allowed in the 'server config' context.
+    #For a detailed description of all avaiable directives please read
+    #http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives
+
+
+    #WSGISocketPrefix: Configure directory to use for daemon sockets.
+    #
+    #Apache's DEFAULT_REL_RUNTIMEDIR should be the proper place for WSGI's
+    #Socket. In case you want to mess with the permissions of the directory,
+    #you need to define WSGISocketPrefix to an alternative directory.
+    #See http://code.google.com/p/modwsgi/wiki/ConfigurationIssues for more
+    #information
+
+        #WSGISocketPrefix /var/run/apache2/wsgi
+
+    
+    #WSGIPythonOptimize: Enables basic Python optimisation features.
+    #
+    #Sets the level of Python compiler optimisations. The default is '0'
+    #which means no optimisations are applied.
+    #Setting the optimisation level to '1' or above will have the effect
+    #of enabling basic Python optimisations and changes the filename
+    #extension for compiled (bytecode) files from .pyc to .pyo.
+    #When the optimisation level is set to '2', doc strings will not be
+    #generated and retained. This will result in a smaller memory footprint,
+    #but may cause some Python packages which interrogate doc strings in some
+    #way to fail. 
+
+        #WSGIPythonOptimize 0
+
+
+    #WSGIPythonPath: Additional directories to search for Python modules,
+    #                overriding the PYTHONPATH environment variable.
+    #
+    #Used to specify additional directories to search for Python modules.
+    #If multiple directories are specified they should be separated by a ':'.
+
+        #WSGIPythonPath directory|directory-1:directory-2:...
+
+
+    #WSGIRestrictStdin: Enable restrictions on use of STDIN.
+    #WSGIRestrictStdout: Enable restrictions on use of STDOUT.
+    #WSGIRestrictSignal: Enable restrictions on use of signal().
+    #
+    #Well behaved WSGI applications neither should try to read/write from/to
+    #STDIN/STDOUT, nor should they try to register signal handlers. If your
+    #application needs an exception from this rule, you can disable the
+    #restrictions here.
+
+        #WSGIRestrictStdin On
+        #WSGIRestrictStdout On
+        #WSGIRestrictSignal On
+
+
+    #WSGIAcceptMutex: Specify type of accept mutex used by daemon processes.
+    #
+    #The WSGIAcceptMutex directive sets the method that mod_wsgi will use to
+    #serialize multiple daemon processes in a process group accepting requests
+    #on a socket connection from the Apache child processes. If this directive
+    #is not defined then the same type of mutex mechanism as used by Apache for
+    #the main Apache child processes when accepting connections from a client
+    #will be used. If set the method types are the same as for the Apache
+    #AcceptMutex directive.
+
+        #WSGIAcceptMutex default
+
+</IfModule>
--- mod-wsgi-2.3.orig/debian/rules
+++ mod-wsgi-2.3/debian/rules
@@ -0,0 +1,82 @@
+#!/usr/bin/make -f
+
+PACKAGE=libapache2-mod-wsgi
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# we need dpatch
+include /usr/share/dpatch/dpatch.make
+
+APXS2=/usr/bin/apxs2
+PYVERS=$(shell pyversions -vs)
+PYDEFAULT=$(shell pyversions -dv)
+PYMIN=$(shell echo $(PYVERS) | awk '{print $$1}')
+PYMAX=$(shell echo $(PYVERS) | LANG=C awk '{print $$NF+0.1}')
+
+build-%/config.status:
+	dh_testdir
+	mkdir -p build-$*
+	cp *.in *.c configure build-$*/
+	cd build-$* && ./configure --with-apxs=$(APXS2) \
+	            --with-python=/usr/bin/python$*
+
+build-%/build-stamp: build-%/config.status
+	dh_testdir
+	$(MAKE) -C build-$*
+	touch $@
+
+build: patch $(PYVERS:%=build-%/build-stamp)
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -rf build-*
+	dh_clean 
+
+install-clean:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+install-%: build-%/build-stamp
+	$(MAKE) -C build-$* DESTDIR=$(CURDIR)/debian/$(PACKAGE) install
+	mv $(CURDIR)/debian/$(PACKAGE)/usr/lib/apache2/modules/mod_wsgi.so \
+		$(CURDIR)/debian/$(PACKAGE)/usr/lib/apache2/modules/mod_wsgi.so-$*
+
+install: build install-clean $(PYVERS:%=install-%)
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_install
+	install -d -m 755 debian/$(PACKAGE)/usr/share/python/runtime.d
+	install -m 755 debian/*.rtupdate debian/$(PACKAGE)/usr/share/python/runtime.d/
+	dh_installman
+	dh_link usr/lib/apache2/modules/mod_wsgi.so-$(PYDEFAULT) usr/lib/apache2/modules/mod_wsgi.so
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	# Ugh, ignore libpython dependencies
+	( for i in $(PYVERS); do echo libpython$$i 1.0; done ) > debian/shlibs.local
+	dh_shlibdeps
+	rm -f debian/shlibs.local
+	# Generate dependencies manually as there are no public modules
+	echo 'python:Depends=python (>= $(PYMIN)), python (<< $(PYMAX))' \
+	     >> $(CURDIR)/debian/$(PACKAGE).substvars
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
+.PHONY: clean-patched patch unpatch
--- mod-wsgi-2.3.orig/debian/libapache2-mod-wsgi.docs
+++ mod-wsgi-2.3/debian/libapache2-mod-wsgi.docs
@@ -0,0 +1 @@
+README
--- mod-wsgi-2.3.orig/debian/copyright
+++ mod-wsgi-2.3/debian/copyright
@@ -0,0 +1,237 @@
+This package was debianized by Bernd Zeimetz <bernd@bzed.de> on
+Mon, 30 Jul 2007 16:22:40 +0200.
+
+It was downloaded from http://code.google.com/p/modwsgi/downloads/list
+
+Upstream Author: 
+
+    Graham Dumpleton <Graham.Dumpleton@gmail.com>
+
+Copyright: 
+
+    Copyright 2007 GRAHAM DUMPLETON
+
+License:
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+ 
+         http://www.apache.org/licenses/LICENSE-2.0
+ 
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+
+The Debian packaging is (C) 2007, Bernd Zeimetz <bernd@bzed.de> and
+is licensed under the Apache License, Version 2.0, see below.
+
+
+The Apache License, Version 2.0 is:
+
+
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
--- mod-wsgi-2.3.orig/debian/libapache2-mod-wsgi.install
+++ mod-wsgi-2.3/debian/libapache2-mod-wsgi.install
@@ -0,0 +1,2 @@
+debian/wsgi.load etc/apache2/mods-available
+debian/wsgi.conf etc/apache2/mods-available
