File apache2-mod_fcgid.spec of Package apache2-mod_fcgid
#
# spec file for package apache2-mod_fcgid (Version 2.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: apache2-mod_fcgid
%define apxs /usr/sbin/apxs2
%define apache_libexecdir %(%{apxs} -q LIBEXECDIR)
%define apache_sysconfdir %(%{apxs} -q SYSCONFDIR)
%define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
#
Version: 2.2
Release: 31
#
Group: Productivity/Networking/Web/Servers
License: GPL v2 or later
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: apache2-devel
Requires: apache2 %{apache_mmn}
#
Url: http://fastcgi.coremail.cn/
# gz2bz2 from Source: http://fastcgi.coremail.cn/mod_fcgid.%{version}.tar.gz
Source: http://prdownloads.sourceforge.net/mod-fcgid/mod_fcgid.%{version}.tgz
# wget --accept='.htm' -rkmp -np http://fastcgi.coremail.cn && \
# mv fastcgi.coremail.cn docs && dos2unix docs/* && tar cfj docs{.tar.bz2,}
Source1: docs.tar.bz2
Source2: apache2-mod_fcgid.conf
Patch0: mod_fcgid.2.1-warnings.patch
Patch1: mod_fcgid.2.0-suse_paths.patch
#
Summary: Alternative FastCGI module for Apache2
%description
What is mod_fcgid? It is a binary compatibility alternative to Apache
module mod_fastcgi.
mod_fcgid has a new process management strategy, which concentrates on
reducing the number of fastcgi server, and kick out the corrupt fastcgi
server as soon as possible.
To load the module into Apache, run the command "a2enmod fcgid" as
root.
See /etc/apache2/conf.d/mod_fcgid.conf and
/usr/share/doc/packages/apache2-mod_fcgid for configuration.
Authors:
--------
Pan qingfeng <pqf@tebie.com>
%prep
%setup -n mod_fcgid.%{version} -a 1
%patch0
%patch1
%build
# we dont need to pass the CFLAGS. apxs2 will do that.
%{__make}
%install
%{__install} -D -m 0755 .libs/mod_fcgid.so %{buildroot}%{apache_libexecdir}/mod_fcgid.so
%{__install} -D -m 0644 %{S:2} %{buildroot}%{apache_sysconfdir}/conf.d/mod_fcgid.conf
%{__install} -d -m 0755 %{buildroot}/var/lib/apache2/fcgid/
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{apache_libexecdir}/mod_fcgid.so
%config(noreplace) %{apache_sysconfdir}/conf.d/mod_fcgid.conf
%doc ChangeLog docs/*
%attr(750,wwwrun,www) /var/lib/apache2/fcgid/
%changelog
* Fri Mar 07 2008 mrueckert@suse.de
- added directory for the sharedmemory path and the sockets
(bnc#365113)
* Tue Oct 30 2007 mrueckert@suse.de
- update to version 2.2
- Support configuration "PassHeader". Thank Hans Christian
Saustrup for the suggestion.
- Support apr_shm_remove() in httpd.2.0.X. Thank Hans Christian
Saustrup for bug report.
- Support configuration "TimeScore". Thank Tim Jensen for the
patch.
- Support new configurations "MaxRequestInMem" and
"MaxRequestLen"
- If the length of http request longer than "MaxRequestInMem",
it will store in tmp file.
- It the length of http request longer than "MaxRequestLen", it
will return internal server error.
Thank Gabriel Barazer(gabriel at oxeva.fr) for the bug report.
Thank Steffen(info at apachelounge.com) for the help on this
issue.
- Fix miner Sanity check bug. Thank Yuya Tanaka for bug report
- added SharememPath to the config (#337566)
* Tue Aug 07 2007 poeml@suse.de
- remove "Provides: apache2-mod_fastcgi", since the package is
revived
* Tue Jul 31 2007 mrueckert@suse.de
- don't package INSTALL.txt
- ran dos2unix on the documentation tarball to avoid warnings from
rpmlint
* Mon Apr 16 2007 mrueckert@suse.de
- update to version 2.1
- Add missing config.m4 and Makefile.in for static linking
Thank Mark Drago for notice
- FCGIWrapper disallowed in .htaccess
Thank Balinares for patch
- Bug fix. Authoritative flag reversed
Thank Chris Darroch for the patch
- Support arguments in FCGIWrapper
Thank Andre Nathan for suggestion and great help on testing it.
- Support new config "SharememPath", which specifies the location
of share memory path.
- Check running user is root or not, while suexec is enabled.
Thank Chris Holleman for the bug report.
- Bug fix. Should not pass respond to auth checkers.
Thank Szabolcs Hock for bug report.
- rediffed patches:
mod_fcgid.2.0-warnings.patch => mod_fcgid.2.1-warnings.patch
- synced docs from the website
* Wed Nov 29 2006 mrueckert@suse.de
- update to version 2.0
o Support FastCGI Authorizer protocols now.
o Add apxs compile instruction in INSTALL.txt.
Thank Hans Christian Saustrup, hc at saustrup.net for the suggestion.
o Bug fix. (Win32 only) PHP script can not create socket on Win32.
Thank bbscool at zjip.com for the bug report and the help.
o GREAT patchs from Robert L Mathews, rob at tigertech.com
Fix compile warnings
Adds a MaxRequestsPerProcess parameter that allows mod_fcgid
to exit after handling a certain number of requests
Close socket before fork
avoid the 1-second sleep the first time a process is spawned
o Print warning log while read data error from FastCGI process.
o Apply patch from Scott Lamb, Fix mod_fcgid 1.10 warnings on x86_64
- removed mod_fcgid.1.07-printf_warnings.patch
- rediffed patches:
mod_fcgid.1.10-warnings.patch => mod_fcgid.2.0-warnings.patch
mod_fcgid.1.07-suse_paths.patch => mod_fcgid.2.0-suse_paths.patch
* Thu Oct 19 2006 poeml@suse.de
- fix missing return value of is_kill_allowed()
* Tue Oct 17 2006 poeml@suse.de
- build the module for all MPMs, not only for prefork
* Wed Aug 30 2006 mrueckert@suse.de
- Fix the php example in the config
* Wed Aug 30 2006 mrueckert@suse.de
- mark sample conf file file as config(noreplace)
* Wed Aug 30 2006 mrueckert@suse.de
- minor typo fix for the sample config
* Wed Aug 30 2006 mrueckert@suse.de
- Update to 1.10:
o Use poll() instead of select() in UNIX. "It becomes problematic
on apache2 with large number of logfiles. Apache2 calls poll()
(when OS supports it), and in that case it doesn't need to be
recompiled with larger FD_SETSIZE. select() is still limited
to FD_SETSIZE."
Thank Piotr Gackiewicz gacek at intertele.pl for the patch.
o Bug fix: "Some requests fail with HTTP 500 and no errorlog
entry is generated"
Thank Piotr Gackiewicz gacek at intertele.pl for the patch.
o Use anonymouse share memeory to make OS X happy.
Thank andkjar at obtech.net for the patch.
o Add config.m4, mod_fcgid now can be static linked in
httpd (See INSTALL.txt)
* Sun Jun 18 2006 mrueckert@suse.de
- Update to 1.09:
o Add configuration DefaultMinClassProcessCount(default 3).
Idle fastcgi will not be killed if their count less than
DefaultMinClassProcessCount.
(Thank Finn Smith, finn at timeghost.net for suggestion)
o Add configuration PHP_Fix_Pathinfo_Enable(default 0). If
you are using PHP and set cgi.fix_pathinfo=1 in php.ini,
please add "PHP_Fix_Pathinfo_Enable 1" in httpd.conf.
(Thank Florian Munz, flo at myhosting.de for bug report)
o Split error log whle '\r' or '\n' are inside the text send
to "stderr". (Thank frederic at jolliton.com for the patch)
Additionally from 1.08:
o apr_bucket_copy() does not work with buckets from mod_ssl,
use apr_bucket_heap_create() instead
o Wrapper binary can be stored in a different location to the
web content (like /usr/local/apache2/fcgi-bin)
o Support "\r\n\r\n " HTTP header from CGI.
- removed mod_fcgid.1.07-bugfixes.patch,
mod_fcgid.1.07-apache2.2.0.patch:
changes were part of 1.08
* Mon Mar 20 2006 mrueckert@suse.de
- added content to apache2-mod_fcgid.conf
* Mon Mar 20 2006 mrueckert@suse.de
- added mod_fcgid.1.07-bugfixes.patch:
o apr_bucket_copy() does not work with buckets from mod_ssl,
use apr_bucket_heap_create() instead
o Wrapper binary can be stored in a different location to the
web content (like /usr/local/apache2/fcgi-bin)
o Support "\r\n\r\n " HTTP header from CGI.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 17 2006 mrueckert@suse.de
- Obsolete/Provide apache2-mod_fastcgi
* Tue Jan 10 2006 mrueckert@suse.de
- Added mod_fcgid.1.07-suse_paths.patch to fix the paths
in the makefile
- use the normal build system again
* Tue Dec 13 2005 mrueckert@suse.de
- Initial package of version 1.07