debian/0000755000000000000000000000000012302376563007175 5ustar debian/libapache2-mod-scgi.docs0000644000000000000000000000002312164642050013525 0ustar apache2/README.txt debian/libapache2-mod-scgi.apache20000644000000000000000000000006312164643166014115 0ustar mod apache2/.libs/mod_scgi.so mod debian/scgi.load debian/copyright0000644000000000000000000001125312164642050011123 0ustar 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. debian/changelog0000644000000000000000000000614412302376563011054 0ustar scgi (1.13-1.1build1) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:53:55 +0000 scgi (1.13-1.1) unstable; urgency=low * NMU and QAish upload. * Bump standards version to 3.9.4. * Add ${misc:Depends}. * Add build-arch, build-indep targets. * Use dh_python2, instead of deprecated dh_pysupport. * Use 3.0 (quilt) source format, instead of quilt make snippets. * Include watch file. Closes: #710988 * Apply patch from Arno Töll for apache2.4 transition. Closes: #666805 -- Dmitrijs Ledkovs Tue, 02 Jul 2013 22:21:29 +0100 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 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 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 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 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 Mon, 14 Aug 2006 12:49:01 -0600 scgi (1.10-1) unstable; urgency=low * New upstream release. -- Neil Schemenauer 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 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 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 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 Tue, 26 Aug 2003 13:34:21 -0400 scgi (1.0-1) unstable; urgency=low * New upstream release. -- Neil Schemenauer 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 Fri, 16 Aug 2002 13:49:22 -0400 debian/python-scgi.docs0000644000000000000000000000003212164642050012277 0ustar README.txt doc/guide.html debian/compat0000644000000000000000000000000212164642050010364 0ustar 7 debian/patches/0000755000000000000000000000000012164643166010626 5ustar debian/patches/port-to-apache240000644000000000000000000000374512164643166013553 0ustar --- a/apache2/mod_scgi.c +++ b/apache2/mod_scgi.c @@ -135,16 +135,16 @@ return DECLINED; } -static void log_err(const char *file, int line, request_rec *r, +static void log_err(const char *file, int line, int index, request_rec *r, apr_status_t status, const char *msg) { - ap_log_rerror(file, line, APLOG_ERR, status, r, "scgi: %s", msg); + ap_log_rerror(file, line, index, APLOG_ERR, status, r, "scgi: %s", msg); } -static void log_debug(const char *file, int line, request_rec *r, const +static void log_debug(const char *file, int line, int index, request_rec *r, const char *msg) { - ap_log_rerror(file, line, APLOG_DEBUG, APR_SUCCESS, r, msg); + ap_log_rerror(file, line, index, APLOG_DEBUG, APR_SUCCESS, r, "%s", msg); } static char *http2env(apr_pool_t *p, const char *name) @@ -312,7 +312,7 @@ int i; apr_status_t rv = 0; apr_port_t port = 0; - GET_PORT(port, r->connection->remote_addr); + GET_PORT(port, r->useragent_addr); log_debug(APLOG_MARK,r, "sending headers"); t = apr_table_make(r->pool, 40); @@ -324,14 +324,14 @@ buf = "0"; add_header(t, "CONTENT_LENGTH", buf); add_header(t, "SCGI", SCGI_PROTOCOL_VERSION); - add_header(t, "SERVER_SOFTWARE", ap_get_server_version()); + add_header(t, "SERVER_SOFTWARE", ap_get_server_banner()); add_header(t, "SERVER_PROTOCOL", r->protocol); add_header(t, "SERVER_NAME", ap_get_server_name(r)); add_header(t, "SERVER_ADMIN", r->server->server_admin); add_header(t, "SERVER_ADDR", r->connection->local_ip); add_header(t, "SERVER_PORT", apr_psprintf(r->pool, "%u", ap_get_server_port(r))); - add_header(t, "REMOTE_ADDR", r->connection->remote_ip); + add_header(t, "REMOTE_ADDR", r->useragent_ip); add_header(t, "REMOTE_PORT", apr_psprintf(r->pool, "%d", port)); add_header(t, "REMOTE_USER", r->user); add_header(t, "REQUEST_METHOD", r->method); debian/patches/series0000644000000000000000000000004212164643166012037 0ustar port-to-apache24 no_scripts.patch debian/patches/no_scripts.patch0000644000000000000000000000127512164642050014026 0ustar 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. debian/control0000644000000000000000000000223312164643241010574 0ustar Source: scgi Priority: optional Section: web Maintainer: Neil Schemenauer Homepage: http://python.ca/scgi/ Build-Depends: debhelper (>= 7), python-all-dev, apache2-dev, dh-apache2 Standards-Version: 3.9.4 Package: libapache2-mod-scgi Depends: ${shlibs:Depends}, ${misc: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}, ${misc:Depends} 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. debian/scgi.load0000644000000000000000000000007412164642050010755 0ustar LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so debian/rules0000755000000000000000000000255512164643407010264 0ustar #!/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 build: build-apache $(PYVERS:%=build-python%) build-arch build-indep: build build-apache: (cd apache2 && $(MAKE) all) build-python%: python$* setup.py build clean: 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 dh_installdocs dh_installexamples -ppython-scgi dh_installman dh_installchangelogs CHANGES.txt dh_apache2 install-python%: python$* setup.py install --root $(CURDIR)/debian/python-scgi --install-layout=deb # 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_python2 dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build build-arch build-indep clean binary-indep binary-arch binary install debian/source/0000755000000000000000000000000012164642624010475 5ustar debian/source/format0000644000000000000000000000001412164642624011703 0ustar 3.0 (quilt) debian/pyversions0000644000000000000000000000000512164642050011325 0ustar 2.3- debian/python-scgi.examples0000644000000000000000000000001312164642050013164 0ustar cgi2scgi.c debian/watch0000644000000000000000000000007312164643044010223 0ustar version=3 http://python.ca/scgi/releases/scgi-(.*)\.tar\.gz