1 Summary: Bandwidth & Request Throttling
2 Summary(es): Descompresión instantanea de archivos HTML para Apache
3 Summary(pt_BR): Descompressão "On-the-fly" de arquivos HTML para o Apache
4 Name: apache-mod_throttle
8 Group: Networking/Daemons
9 Group(de): Netzwerkwesen/Server
10 Group(pl): Sieciowe/Serwery
11 Source0: http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
12 URL: http://www.snert.com/Software/mod_throttle/
13 BuildRequires: apache-devel
14 Requires: apache >= 1.3.1
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _libexecdir %{_libdir}/apache
18 %define _htmldocdir /home/httpd/manual/mod
21 This Apache module is intended to reduce the load on your server &
22 bandwidth generated by popular virtual hosts, directories, locations,
23 or users according to supported polices (see below) that decide when
24 to delay or refuse requests. Also mod_throttle can track and throttle
25 incoming connections by IP address or by authenticated remote user.
28 Descompresión instantanea de archivos HTML para Apache.
31 Descompressão "On-the-fly" de arquivos HTML para o Apache.
34 %setup -q -n mod_throttle-%{version}
37 apxs -D SUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_throttle.so -c *.c
38 # to don't bother about ssi counter inside
39 mv index.shtml index.html
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}}
45 install mod_throttle.so $RPM_BUILD_ROOT%{_libexecdir}
46 install *.html $RPM_BUILD_ROOT%{_htmldocdir}
51 %{_sbindir}/apxs -e -a -n throttle %{_libexecdir}/mod_throttle.so 1>&2
52 if [ -f /var/lock/subsys/httpd ]; then
53 /etc/rc.d/init.d/httpd restart 1>&2
55 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
59 if [ "$1" = "0" ]; then
60 %{_sbindir}/apxs -e -A -n throttle %{_libexecdir}/mod_throttle.so 1>&2
61 if [ -f /var/lock/subsys/httpd ]; then
62 /etc/rc.d/init.d/httpd restart 1>&2
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %doc %{_htmldocdir}/index.html
73 %attr(755,root,root) %{_libexecdir}/*