--- scgi-1.13.orig/debian/python-scgi.docs
+++ scgi-1.13/debian/python-scgi.docs
@@ -0,0 +1,2 @@
+README.txt
+doc/guide.html
--- scgi-1.13.orig/debian/python-scgi.examples
+++ scgi-1.13/debian/python-scgi.examples
@@ -0,0 +1 @@
+cgi2scgi.c
--- scgi-1.13.orig/debian/rules
+++ scgi-1.13/debian/rules
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+
+# sanitize path to avoid using locally installed versions
+export PATH=/bin:/usr/bin
+
+PYVERS=$(shell pyversions -vs)
+
+APACHE2_SCGI=debian/libapache2-mod-scgi
+
+include /usr/share/quilt/quilt.make
+
+build: build-apache $(PYVERS:%=build-python%)
+
+
+build-apache: $(QUILT_STAMPFN)
+ (cd apache2 && $(MAKE) all)
+
+
+build-python%: $(QUILT_STAMPFN)
+ python$* setup.py build
+
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ rm -rf build scgi/*.pyc
+ -(cd apache2 && $(MAKE) clean)
+ dh_clean
+
+
+install: build $(PYVERS:%=install-python%)
+ dh_testdir
+ dh_testroot
+ #dh_clean -k
+ dh_installdirs
+
+ install -m 0755 -d $(APACHE2_SCGI)/usr/lib/apache2/modules
+ install -m 644 apache2/.libs/mod_scgi.so \
+ $(APACHE2_SCGI)/usr/lib/apache2/modules
+ install -m 0755 -d $(APACHE2_SCGI)/etc/apache2/mods-available
+ install -m 644 debian/scgi.load \
+ $(APACHE2_SCGI)/etc/apache2/mods-available
+
+ dh_installdocs
+ dh_installexamples -ppython-scgi
+ dh_installman
+ dh_installchangelogs CHANGES.txt
+
+
+install-python%:
+ python$* setup.py install --root $(CURDIR)/debian/python-scgi
+
+
+# Build architecture-independent files
+binary-indep: build install
+
+
+# Build architecture-dependent files
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_link
+ dh_strip
+ dh_compress
+ dh_pysupport
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- scgi-1.13.orig/debian/libapache2-mod-scgi.docs
+++ scgi-1.13/debian/libapache2-mod-scgi.docs
@@ -0,0 +1 @@
+apache2/README.txt
--- scgi-1.13.orig/debian/changelog
+++ scgi-1.13/debian/changelog
@@ -0,0 +1,87 @@
+scgi (1.13-1) unstable; urgency=low
+
+ * New upstream release.
+ * Use quilt to manage patches.
+ * Use debhelper v7.
+ * Put Python extension in 'python' section.
+
+ -- Neil Schemenauer <nas@debian.org> Sat, 05 Jul 2008 22:33:18 +0000
+
+scgi (1.12-0.2) unstable; urgency=medium
+
+ * NMU.
+ * Remove Apache 1.3 module. Closes: #429084.
+
+ -- Matej Vela <vela@debian.org> Sun, 17 Jun 2007 13:24:24 +0200
+
+scgi (1.12-0.1) unstable; urgency=low
+
+ * NMU with maintainer's permission.
+ * New upstream release. Closes: #424181.
+ * Ship doc/guide.html in python-scgi.
+ * Remove empty /usr/bin and /usr/sbin from libapache-mod-scgi.
+ * Use debian/compat rather than DH_COMPAT to placate Lintian.
+
+ -- Matej Vela <vela@debian.org> Wed, 23 May 2007 20:11:50 +0200
+
+scgi (1.11-2) unstable; urgency=low
+
+ * Build-depend on apache2-dev (>= 2.2) and depend on apache2.2-common
+ instead of just apache2, to get a consistent set of packages for the
+ new apache2 module ABI (Closes: #394442).
+
+ -- Neil Schemenauer <nas@debian.org> Thu, 26 Oct 2006 20:27:30 +0000
+
+scgi (1.11-1) unstable; urgency=low
+
+ * New upstream release.
+ * Conform to new Python packaging policy by using python-support
+ (Closes: #3809420).
+
+ -- Neil Schemenauer <nas@debian.org> Mon, 14 Aug 2006 12:49:01 -0600
+
+scgi (1.10-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Neil Schemenauer <nas@debian.org> Mon, 22 May 2006 05:48:38 +0000
+
+scgi (1.9-1) unstable; urgency=low
+
+ * New upstream release (Closes: #343382).
+ * Add README files to Apache packages (Closes: #339291).
+
+ -- Neil Schemenauer <nas@debian.org> Wed, 14 Dec 2005 13:28:57 -0700
+
+scgi (1.7-1) unstable; urgency=low
+
+ * New upstream release (Closes: #323608).
+ * Build against Python 2.4.
+
+ -- Neil Schemenauer <nas@debian.org> Wed, 17 Aug 2005 17:52:25 +0000
+
+scgi (1.2-1) unstable; urgency=low
+
+ * New upstream release (Closes: #261400).
+ * Include changelogs in binary package (Closes: #208266).
+
+ -- Neil Schemenauer <nas@debian.org> Wed, 25 Aug 2004 11:20:33 -0400
+
+scgi (1.1-1) unstable; urgency=low
+
+ * Build against Python 2.3.
+ * New upstream release.
+
+ -- Neil Schemenauer <nas@debian.org> Tue, 26 Aug 2003 13:34:21 -0400
+
+scgi (1.0-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Neil Schemenauer <nas@debian.org> Tue, 1 Oct 2002 11:45:39 -0400
+
+scgi (0.5-1) unstable; urgency=low
+
+ * Initial Release (based on work done by Andrew Kuchling).
+
+ -- Neil Schemenauer <nas@debian.org> Fri, 16 Aug 2002 13:49:22 -0400
--- scgi-1.13.orig/debian/scgi.load
+++ scgi-1.13/debian/scgi.load
@@ -0,0 +1 @@
+LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so
--- scgi-1.13.orig/debian/copyright
+++ scgi-1.13/debian/copyright
@@ -0,0 +1,96 @@
+This is the Debian version of the SCGI package. The original SCGI
+package is copyrighted by the Corporation for National Research
+Initiatives and by others. The original source was downloaded from
+http://quixote.python.ca/releases/.
+
+This version of the SCGI package is derived from scgi 1.10, released
+by CNRI. See the section below titled "CNRI OPEN SOURCE LICENSE"
+for the licensing terms of that release. Changes made since that
+release are summarized in the CHANGES.txt file along with a list of
+authors. Those changes are made available under the following terms
+(commonly known as the MIT/X license).
+
+****************************************************************************
+
+Copyright (c) the SCGI package developers
+
+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.
+
+****************************************************************************
+
+CNRI OPEN SOURCE LICENSE AGREEMENT
+
+IMPORTANT: PLEASE READ THE FOLLOWING AGREEMENT CAREFULLY. BY
+COPYING, INSTALLING OR OTHERWISE USING SCGI-1.10 SOFTWARE, YOU ARE
+DEEMED TO HAVE AGREED TO THE TERMS AND CONDITIONS OF THIS LICENSE
+AGREEMENT.
+
+1. This LICENSE AGREEMENT is between Corporation for National
+ Research Initiatives, having an office at 1895 Preston White
+ Drive, Reston, VA 20191 ("CNRI"), and the Individual or
+ Organization ("Licensee") copying, installing or otherwise using
+ scgi-1.10 software in source or binary form and its associated
+ documentation ("scgi-1.10").
+
+2. Subject to the terms and conditions of this License Agreement,
+ CNRI hereby grants Licensee a nonexclusive, royalty-free, world-
+ wide license to reproduce, analyze, test, perform and/or display
+ publicly, prepare derivative works, distribute, and otherwise use
+ scgi-1.10 alone or in any derivative version, provided, however,
+ that CNRI's License Agreement and CNRI's notice of copyright,
+ i.e., "Copyright (c) 2004 Corporation for National Research
+ Initiatives; All Rights Reserved" are retained in scgi-1.10 alone
+ or in any derivative version prepared by Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on
+ or incorporates scgi-1.10 or any part thereof, and wants to make
+ the derivative work available to others as provided herein, then
+ Licensee hereby agrees to include in any such work a brief
+ summary of the changes made to scgi-1.10.
+
+4. CNRI is making scgi-1.10 available to Licensee on an "AS IS"
+ basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+ IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO
+ AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY
+ OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF SCGI-1.10
+ WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF SCGI-
+ 1.10 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
+ AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING SCGI-
+ 1.10, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE
+ POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a
+ material breach of its terms and conditions.
+
+7. This License Agreement shall be governed by and interpreted in
+ all respects by the law of the State of Virginia, excluding
+ Virginia's conflict of law provisions. Nothing in this License
+ Agreement shall be deemed to create any relationship of agency,
+ partnership, or joint venture between CNRI and Licensee. This
+ License Agreement does not grant permission to use CNRI
+ trademarks or trade name in a trademark sense to endorse or
+ promote products or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using scgi-1.10, Licensee
+ agrees to be bound by the terms and conditions of this License
+ Agreement.
+
--- scgi-1.13.orig/debian/compat
+++ scgi-1.13/debian/compat
@@ -0,0 +1 @@
+7
--- scgi-1.13.orig/debian/pyversions
+++ scgi-1.13/debian/pyversions
@@ -0,0 +1 @@
+2.3-
--- scgi-1.13.orig/debian/control
+++ scgi-1.13/debian/control
@@ -0,0 +1,35 @@
+Source: scgi
+Priority: optional
+Section: web
+Maintainer: Neil Schemenauer <nas@debian.org>
+Homepage: http://python.ca/scgi/
+Build-Depends: debhelper (>= 7), python-support (>= 0.3), python-all-dev, apache2-threaded-dev (>= 2.2), quilt
+Standards-Version: 3.8.0.0
+
+Package: libapache2-mod-scgi
+Depends: apache2.2-common, ${shlibs:Depends}
+Architecture: any
+Description: Apache module implementing the SCGI protocol
+ The SCGI protocol is a replacement for the Common Gateway
+ Interface (CGI) protocol. It is a proposed standard for
+ applications to interface with HTTP servers. It is similar to
+ FastCGI but is designed to be easier to implement.
+ .
+ This package is an Apache module implementing the client side of
+ the protocol.
+
+Package: python-scgi
+Architecture: any
+Section: python
+Depends: ${python:Depends}, ${shlibs:Depends}
+Provides: ${python:Provides}
+Conflicts: python2.4-scgi
+XB-Python-Version: ${python:Versions}
+Description: Server-side implementation of the SCGI protocol
+ The SCGI protocol is a replacement for the Common Gateway
+ Interface (CGI) protocol. It is a proposed standard for
+ applications to interface with HTTP servers. It is similar to
+ FastCGI but is designed to be easier to implement.
+ .
+ This is a Python package implementing the server side of the
+ SCGI protocol.
--- scgi-1.13.orig/debian/patches/series
+++ scgi-1.13/debian/patches/series
@@ -0,0 +1 @@
+no_scripts.patch
--- scgi-1.13.orig/debian/patches/.dpkg-source-applied
+++ scgi-1.13/debian/patches/.dpkg-source-applied
@@ -0,0 +1 @@
+no_scripts.patch
--- scgi-1.13.orig/debian/patches/no_scripts.patch
+++ scgi-1.13/debian/patches/no_scripts.patch
@@ -0,0 +1,25 @@
+Some library modules can also be run as scripts. However, since
+modules with a #! line make the Debian lint checker cranky we
+remove them.
+
+--- scgi-1.13.orig/scgi/test_passfd.py
++++ scgi-1.13/scgi/test_passfd.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ #
+
+ import os, sys, socket
+--- scgi-1.13.orig/scgi/quixote_handler.py
++++ scgi-1.13/scgi/quixote_handler.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ """
+ A SCGI handler that uses Quixote to publish dynamic content.
+ """
+--- scgi-1.13.orig/scgi/scgi_server.py
++++ scgi-1.13/scgi/scgi_server.py
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env python
+ """
+ A pre-forking SCGI server that uses file descriptor passing to off-load
+ requests to child worker processes.