diff options
author | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
commit | 5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch) | |
tree | f467412e09912ababcd8fe6c05193d829f514dcd /extra/mod_fastcgi | |
parent | 3009e8addb4a894329bf8ab3e8fb763361833978 (diff) |
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'extra/mod_fastcgi')
-rw-r--r-- | extra/mod_fastcgi/PKGBUILD | 31 | ||||
-rw-r--r-- | extra/mod_fastcgi/lp381384.patch | 34 |
2 files changed, 65 insertions, 0 deletions
diff --git a/extra/mod_fastcgi/PKGBUILD b/extra/mod_fastcgi/PKGBUILD new file mode 100644 index 000000000..8b637bc32 --- /dev/null +++ b/extra/mod_fastcgi/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 150579 2012-02-18 15:20:31Z pierre $ +# Maintainer: +# Contributor: Jan de Groot <jgc@archlinux.org> + +pkgname=mod_fastcgi +pkgver=2.4.6 +pkgrel=4 +pkgdesc="Apache module to support the FastCGI protocol" +arch=('i686' 'x86_64') +license=('custom') +url="http://www.fastcgi.com/" +depends=('apache') +options=('!libtool') +source=("http://www.fastcgi.com/dist/${pkgname}-${pkgver}.tar.gz" + 'lp381384.patch') +md5sums=('a21a613dd5dacf4c8ad88c8550294fed' + '7dd09e6579cc9bf2f992bbd82d1d1537') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/lp381384.patch" + cp Makefile.AP2 Makefile + make top_dir=/usr/lib/httpd +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make top_dir=/usr/lib/httpd DESTDIR="${pkgdir}" install + install -Dm644 docs/LICENSE.TERMS \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/extra/mod_fastcgi/lp381384.patch b/extra/mod_fastcgi/lp381384.patch new file mode 100644 index 000000000..e7c978d10 --- /dev/null +++ b/extra/mod_fastcgi/lp381384.patch @@ -0,0 +1,34 @@ +References: +http://thread.gmane.org/gmane.comp.web.fastcgi.devel/2613 +http://article.gmane.org/gmane.comp.web.fastcgi.devel/1167 +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=509116 +https://bugs.launchpad.net/ubuntu/+source/libapache-mod-fastcgi/+bug/381384 + +Patch extracted from the SNAP-0811090952 snapshot tarball. +2009-05-28 Martin von Gagern + +diff -ru mod_fastcgi-2.4.6/CHANGES mod_fastcgi-2.4.6-lp381384/CHANGES +--- mod_fastcgi-2.4.6/CHANGES 2007-11-13 13:26:35.000000000 +0100 ++++ mod_fastcgi-2.4.6-lp381384/CHANGES 2009-05-28 21:02:31.000000000 +0200 +@@ -1,3 +1,6 @@ ++ *) Don't let the Content-Length header propagate on errors or across ++ redirects. [Artur Zaprzala <arturz ownmail.net>] ++ + 2.4.6 + + *) Fix a bug I introduced in 2.4.4 that broke dynamic application +diff -ru mod_fastcgi-2.4.6/mod_fastcgi.c mod_fastcgi-2.4.6-lp381384/mod_fastcgi.c +--- mod_fastcgi-2.4.6/mod_fastcgi.c 2007-11-13 00:00:10.000000000 +0100 ++++ mod_fastcgi-2.4.6-lp381384/mod_fastcgi.c 2009-05-28 21:02:31.000000000 +0200 +@@ -753,6 +753,11 @@ + ap_table_set(r->headers_out, "Location", value); + continue; + } ++ ++ if (strcasecmp(name, "Content-Length") == 0) { ++ ap_table_set(r->headers_out, name, value); ++ continue; ++ } + + /* If the script wants them merged, it can do it */ + ap_table_add(r->err_headers_out, name, value); |