-Summary: Support for the FastCGI protocol for apache webserver
+%define apxs /usr/sbin/apxs
+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: apache-mod_throttle
Version: 3.1.2
-Release: 1
+Release: 6
License: Anthony Howe
Group: Networking/Daemons
Source0: http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
+# Source0-md5: 6edc45c3ea8a0855d4b0b14cf0f76404
+Patch0: %{name}-PLD-v6stuff.patch
URL: http://www.snert.com/Software/mod_throttle/
BuildRequires: apache-devel
+BuildRequires: %{apxs}
+Prereq: %{_sbindir}/apxs
Requires: apache >= 1.3.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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.
+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<res o usuarios
+autenticados.
+
+%description -l fr
+Mod_throttle peut être utilisé pour limiter la quantité de données
+servies par votre serveur Web. Ces limites peuvent être définies pour
+des hôtes virtuels individuels, répertoires, emplacements ou
+utilisateurs authentifiés.
+
+%description -l it
+Mod_throttle può essere usato per limitare la quantità di dati che il
+server Web dovrà servire. Queste limitazioni possono essere
+configurate per singoli host virtuali, directory, indirizzi o utenti
+autenticati.
+
+%description -l ja
+Mod_throttle ¤Ë¤è¤Ã¤Æ Web ¥µ¡¼¥Ð¡¼¤¬½èÍý¤¹¤ë¥Ç¡¼¥¿Î̤òÀ©¸Â¤Ç¤¤Þ¤¹
+¤³¤ì¤é¤ÎÀ©¸Â¤Ï¡¢¸Ä¡¹¤Î²¾ÁÛ¥Û¥¹¥È¡¢¥Ç¥£¥ì¥¯¥È¥ê¡¢¾ì½ê¡¢¤Þ¤¿¤Ï
+ǧ¾Ú¥æ¡¼¥¶¡¼ÍѤˤĤ¤¤ÆÀßÄê¤Ç¤¤Þ¤¹¡£
+
+%description -l pl
+Ten modu³ Apache ma s³u¿yæ do zmniejszania obci±¿enia serwera i ruchu
+generowanego przez popularne hosty wirtualne, katalogi, pliki lub
+u¿ytkowników zgodnie z obs³ugiwanymi polisami, które decyduj± kiedy
+opó¼niæ lub odrzuciæ zapytanie. mod_throttle mo¿e tak¿e ¶ledziæ i
+t³umiæ po³±czenia przychodz±ce z danego adresu IP lub danego,
+autentykuj±cego siê, u¿ytkownika.
+
+%description -l pt_BR
+Descompressão "On-the-fly" de arquivos HTML para o Apache.
+
+%description -l sv
+Mod_throttle kan användas för att begränsa mängden data som din
+webbserver skickar. Dessa gränser kan sättas för enskilda virtuella
+värdar, kataloger, platser eller autenticerade användare.
%prep
%setup -q -n mod_throttle-%{version}
+%patch0 -p1
%build
-apxs -D SUEXEC_BIN="\"\\\"/usr/sbin/suexec\\\"\"" -o mod_throttle.so -c *.c
-# to don't bother about ssi counter inside
-mv index.shtml index.html
+%{apxs} -DSUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_throttle.so -c mod_throttle.c
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}}
install mod_throttle.so $RPM_BUILD_ROOT%{_libexecdir}
-install *.html $RPM_BUILD_ROOT%{_htmldocdir}
-gzip -9nf *.txt
+sed -e 's/<!--#/<!--/g' index.shtml > mod_throttle.html
+
+%clean
+rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/apxs -e -a -n throttle %{_libexecdir}/mod_throttle.so 1>&2
+%{apxs} -e -a -n throttle %{_libexecdir}/mod_throttle.so 1>&2
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart 1>&2
else
%preun
if [ "$1" = "0" ]; then
- %{_sbindir}/apxs -e -A -n throttle %{_libexecdir}/mod_throttle.so 1>&2
+ %{apxs} -e -A -n throttle %{_libexecdir}/mod_throttle.so 1>&2
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart 1>&2
fi
fi
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
-%doc *.gz
-%doc %{_htmldocdir}/index.html
+%doc *.txt *.html
%attr(755,root,root) %{_libexecdir}/*