2 %define apxs /usr/sbin/apxs
3 Summary: A binary compatibility alternative to Apache module mod_fastcgi
4 Summary(pl): Binarnie kompatybilna alternatywa dla modu³u Apache'a mod_fastcgi
5 Name: apache-mod_%{mod_name}
9 Group: Networking/Daemons
10 Source0: http://fastcgi.coremail.cn/mod_%{mod_name}.%{version}.tar.gz
11 # Source0-md5: 2cedb4c88ecf2c6754b237d27297aa1d
13 URL: http://fastcgi.coremail.cn/
14 BuildRequires: %{apxs}
15 BuildRequires: apache-devel >= 2
16 BuildRequires: libtool
17 BuildRequires: sed >= 4.0
18 Requires(post,preun): %{apxs}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _sysconfdir %(%{apxs} -q SYSCONFDIR)
23 %define _pkglibdir %(%{apxs} -q LIBEXECDIR)
26 A binary compatibility alternative to Apache module mod_fastcgi.
27 mod_fcgid has a new process management strategy, which concentrates
28 on reducing the number of fastcgi server, and kick out the corrupt
29 fastcgi server as soon as possible.
32 Binarnie kompatybilna alternatywa dla modu³u Apache'a mod_fastcgi.
33 mod_fcgid to nowa strategia zarz±dzania procesami, koncentruj±ca siê
34 na redukcji liczby serwerów fastcgi i usuwaniu uszkodzonych serwerów
35 fastcgi najszybciej jak to mo¿liwe.
38 %setup -q -n mod_%{mod_name}.%{version}
42 top_dir=%{_pkglibdir} \
44 INCLUDES="-I%(%{apxs} -q INCLUDEDIR)"
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
50 install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
51 install %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/httpd.conf/70_mod_%{mod_name}.conf
54 rm -rf $RPM_BUILD_ROOT
57 if [ -f /var/lock/subsys/httpd ]; then
58 /etc/rc.d/init.d/httpd restart 1>&2
60 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
64 if [ "$1" = "0" ]; then
65 if [ -f /var/lock/subsys/httpd ]; then
66 /etc/rc.d/init.d/httpd restart 1>&2
71 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_pkglibdir}/*.so