From 73aff1add996adc8b2dccedf40d8a90dd3e97c46 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sun, 23 May 2004 14:34:34 +0000 Subject: [PATCH] - initial pld release Changed files: apache-mod_fcgid.spec -> 1.1 --- apache-mod_fcgid.spec | 64 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 apache-mod_fcgid.spec diff --git a/apache-mod_fcgid.spec b/apache-mod_fcgid.spec new file mode 100644 index 0000000..92f0232 --- /dev/null +++ b/apache-mod_fcgid.spec @@ -0,0 +1,64 @@ +%define apxs /usr/sbin/apxs +%define _apache1 %(rpm -q apache-devel 2> /dev/null | grep -Eq '\\-2\\.[0-9]+\\.' && echo 0 || echo 1) +Summary: A binary compatibility alternative to Apache module mod_fastcgi +Name: apache-mod_fcgid +Version: 0.7 +Release: 1 +License: distributable +Group: Networking/Daemons +Source0: http://fastcgi.coremail.cn/mod_fcgid.%{version}.tar.gz +# Source0-md5: 1bfdf0274caf9ecaee089e4b3f70326e +Source1: 70_mod_fastcgi.conf +URL: http://fastcgi.coremail.cn/ +BuildRequires: %{apxs} +BuildRequires: apache-devel +BuildRequires: libtool +Requires(post,preun): %{apxs} +Requires: apache >= 1.3.1 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _libexecdir %{_libdir}/apache + +%description +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. + +%prep +%setup -q -n mod_fcgid + +%build +sed -i -e 's#top_dir.*=.*#top_dir = %{_libexecdir}#g' Makefile +echo "INCLUDES=`apr-config --includes` `apu-config --includes` -I%{_includedir}/apache" >> Makefile +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}} +install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf + +libtool --mode=install install mod_fcgid.la $RPM_BUILD_ROOT%{_libexecdir} +install %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/httpd.conf/70_mod_fcgid.conf + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +if [ -f /var/lock/subsys/httpd ]; then + /etc/rc.d/init.d/httpd restart 1>&2 +else + echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon." +fi + +%preun +if [ "$1" = "0" ]; then + if [ -f /var/lock/subsys/httpd ]; then + /etc/rc.d/init.d/httpd restart 1>&2 + fi +fi + +%files +%defattr(644,root,root,755) +%doc AUTHOR ChangeLog +%attr(755,root,root) %{_libexecdir}/*.so -- 2.43.0