%define mod_name throttle %define apxs /usr/sbin/apxs1 Summary: Bandwidth & Request Throttling for Apache Summary(cs): Omezení sí»ového provozu pro Apache Summary(de): Ein Modul, das die Bandbreiten- und Anforderungseinschränkung für Apache implementiert Summary(es): Módulo que implementa la gestión de ancho de banda y peticiones para Apache Summary(fr): Module qui met en oeuvre la bande passante et l'étranglement requis pour Apache Summary(it): Modulo che implementa la larghezza di banda e la richiesta di throttling per Apache Summary(ja): Apache ÍÑÂÓ°èÉý¤ª¤è¤ÓÍ׵᥹¥í¥Ã¥È¥ë¤ò¼ÂÁõ¤¹¤ë¥â¥¸¥å¡¼¥ë Summary(pl): T³umienie przepustowo¶ci i zapytañ dla Apache'a Summary(pt_BR): Descompressão "On-the-fly" de arquivos HTML para o Apache Summary(sv): En modul som implementerar bandvidd- och begäranbegränsningar i Apache Name: apache1-mod_%{mod_name} Version: 3.1.2 Release: 1 License: BSD-like Group: Networking/Daemons Source0: http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz # Source0-md5: 6edc45c3ea8a0855d4b0b14cf0f76404 Patch0: apache1-mod_throttle-PLD-v6stuff.patch URL: http://www.snert.com/Software/mod_throttle/ BuildRequires: %{apxs} BuildRequires: apache1-devel >= 1.3.1 Requires(post,preun): %{apxs} Requires: apache1 >= 1.3.1 Obsoletes: apache-mod_%{mod_name} <= %{version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _pkglibdir %(%{apxs} -q LIBEXECDIR) %description This Apache module is intended to reduce the load on your server & bandwidth generated by popular virtual hosts, directories, locations, or users according to supported polices (see below) that decide when to delay or refuse requests. Also mod_throttle can track and throttle incoming connections by IP address or by authenticated remote user. %description -l cs Balíèek mod_throttle obsahuje modul, který umo¾òuje omezit prùtok dat, která odcházejí z WWW serveru Apache. Limity mohou být nastaveny pro jednotlivé virtuální weby, adresáøe, umístìní nebo autentizované u¾ivatele. %description -l de Mod_throttle kann verwendet werden, um die Datenmenge zu beschränken, die Ihr Web-Server behandelt. Diese Einschränkungen können für einzelne virtuelle Rechner, Verzeichnisse, Speicherstellen oder authentifizierte Benutzer eingestellt werden. %description -l es Mod_throttle puede usarse para limitar la cantidad de datos que su servidor web va a servir. Estos límites se pueden configurar para hosts virtuales individuales, directorios, lug mod_%{mod_name}.html %clean rm -rf $RPM_BUILD_ROOT %post %{apxs} -e -a -n throttle %{_pkglibdir}/mod_%{mod_name}.so 1>&2 if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2 else echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon." fi %preun if [ "$1" = "0" ]; then %{apxs} -e -A -n throttle %{_pkglibdir}/mod_%{mod_name}.so 1>&2 if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2 fi fi %files %defattr(644,root,root,755) %doc *.txt *.html %attr(755,root,root) %{_pkglibdir}/*