]> git.pld-linux.org Git - packages/apache1-mod_throttle.git/blob - apache1-mod_throttle.spec
612a247222966496082a43d15c8d0f487b681081
[packages/apache1-mod_throttle.git] / apache1-mod_throttle.spec
1 %define         apxs    /usr/sbin/apxs
2 Summary:        Bandwidth & Request Throttling for Apache
3 Summary(cs):    Omezení sí»ového provozu pro Apache
4 Summary(de):    Ein Modul, das die Bandbreiten- und Anforderungseinschränkung für Apache implementiert
5 Summary(es):    Módulo que implementa la gestión de ancho de banda y peticiones para Apache
6 Summary(fr):    Module qui met en oeuvre la bande passante et l'étranglement requis pour Apache
7 Summary(it):    Modulo che implementa la larghezza di banda e la richiesta di throttling per Apache
8 Summary(ja):    Apache ÍÑÂÓ°èÉý¤ª¤è¤ÓÍ׵᥹¥í¥Ã¥È¥ë¤ò¼ÂÁõ¤¹¤ë¥â¥¸¥å¡¼¥ë
9 Summary(pl):    T³umienie przepustowo¶ci i zapytañ dla Apache'a
10 Summary(pt_BR): Descompressão "On-the-fly" de arquivos HTML para o Apache
11 Summary(sv):    En modul som implementerar bandvidd- och begäranbegränsningar i Apache
12 Name:           apache-mod_throttle
13 Version:        3.1.2
14 Release:        2
15 License:        Anthony Howe
16 Group:          Networking/Daemons
17 Group(cs):      Sí»ové/Démoni
18 Group(da):      Netværks/Dæmoner
19 Group(de):      Netzwerkwesen/Server
20 Group(es):      Red/Servidores
21 Group(fr):      Réseau/Serveurs
22 Group(is):      Net/Púkar
23 Group(it):      Rete/Demoni
24 Group(no):      Nettverks/Daemoner
25 Group(pl):      Sieciowe/Serwery
26 Group(pt):      Rede/Servidores
27 Group(ru):      óÅÔØ/äÅÍÏÎÙ
28 Group(sl):      Omre¾ni/Stre¾niki
29 Group(sv):      Nätverk/Demoner
30 Group(uk):      íÅÒÅÖÁ/äÅÍÏÎÉ
31 Source0:        http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
32 URL:            http://www.snert.com/Software/mod_throttle/
33 BuildRequires:  apache-devel
34 BuildRequires:  %{apxs}
35 Prereq:         %{_sbindir}/apxs
36 Requires:       apache >= 1.3.1
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %define         _libexecdir     %{_libdir}/apache
40 %define         _htmldocdir     /home/httpd/manual/mod
41
42 %description
43 This Apache module is intended to reduce the load on your server &
44 bandwidth generated by popular virtual hosts, directories, locations,
45 or users according to supported polices (see below) that decide when
46 to delay or refuse requests. Also mod_throttle can track and throttle
47 incoming connections by IP address or by authenticated remote user.
48
49 %description -l cs
50 Balíèek mod_throttle obsahuje modul, který umo¾òuje omezit prùtok dat,
51 která odcházejí z WWW serveru Apache. Limity mohou být nastaveny pro
52 jednotlivé virtuální weby, adresáøe, umístìní nebo autentizované
53 u¾ivatele.
54
55 %description -l de
56 Mod_throttle kann verwendet werden, um die Datenmenge zu beschränken,
57 die Ihr Web-Server behandelt. Diese Einschränkungen können für
58 einzelne virtuelle Rechner, Verzeichnisse, Speicherstellen oder
59 authentifizierte Benutzer eingestellt werden.
60
61 %description -l es
62 Mod_throttle puede usarse para limitar la cantidad de datos que su
63 servidor web va a servir. Estos límites se pueden configurar para
64 hosts virtuales individuales, directorios, lug<res o usuarios
65 autenticados.
66
67 %description -l fr
68 Mod_throttle peut être utilisé pour limiter la quantité de données
69 servies par votre serveur Web. Ces limites peuvent être définies pour
70 des hôtes virtuels individuels, répertoires, emplacements ou
71 utilisateurs authentifiés.
72
73 %description -l it
74 Mod_throttle può essere usato per limitare la quantità di dati che il
75 server Web dovrà servire. Queste limitazioni possono essere
76 configurate per singoli host virtuali, directory, indirizzi o utenti
77 autenticati.
78
79 %description -l ja
80 Mod_throttle ¤Ë¤è¤Ã¤Æ Web ¥µ¡¼¥Ð¡¼¤¬½èÍý¤¹¤ë¥Ç¡¼¥¿Î̤òÀ©¸Â¤Ç¤­¤Þ¤¹
81 ¤³¤ì¤é¤ÎÀ©¸Â¤Ï¡¢¸Ä¡¹¤Î²¾ÁÛ¥Û¥¹¥È¡¢¥Ç¥£¥ì¥¯¥È¥ê¡¢¾ì½ê¡¢¤Þ¤¿¤Ï
82 ǧ¾Ú¥æ¡¼¥¶¡¼ÍѤˤĤ¤¤ÆÀßÄê¤Ç¤­¤Þ¤¹¡£
83
84 %description -l pl
85 Ten modu³ Apache ma s³u¿yæ do zmniejsszania obci±¿enia serwera i ruchu
86 generowanego przez popularne hosty wirtualne, katalogi, pliki lub
87 u¿ytkowników zgodnie z obs³ugiwanymi polisami, które decyduj± kiedy
88 opó¼niæ lub odrzuciæ zapytanie. mod_throttle mo¿e tak¿e ¶ledziæ i
89 t³umiæ po³±czenia przychodz±ce z danego adresu IP lub danego,
90 autentykuj±cego siê, u¿ytkownika.
91
92 %description -l pt_BR
93 Descompressão "On-the-fly" de arquivos HTML para o Apache.
94
95 %description -l sv
96 Mod_throttle kan användas för att begränsa mängden data som din
97 webbserver skickar. Dessa gränser kan sättas för enskilda virtuella
98 värdar, kataloger, platser eller autenticerade användare.
99
100 %prep
101 %setup -q -n mod_throttle-%{version}
102
103 %build
104 %{apxs} -DSUEXEC_BIN="\"\\\"%{_sbindir}/suexec\\\"\"" -o mod_throttle.so -c *.c
105 # to don't bother about ssi counter inside
106 mv -f index.shtml index.html
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110 install -d $RPM_BUILD_ROOT{%{_libexecdir},%{_htmldocdir}}
111
112 install mod_throttle.so $RPM_BUILD_ROOT%{_libexecdir}
113 install *.html $RPM_BUILD_ROOT%{_htmldocdir}
114
115 gzip -9nf *.txt
116
117 %clean
118 rm -rf $RPM_BUILD_ROOT
119
120 %post
121 %{_sbindir}/apxs -e -a -n throttle %{_libexecdir}/mod_throttle.so 1>&2
122 if [ -f /var/lock/subsys/httpd ]; then
123         /etc/rc.d/init.d/httpd restart 1>&2
124 else
125         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
126 fi
127
128 %preun
129 if [ "$1" = "0" ]; then
130         %{_sbindir}/apxs -e -A -n throttle %{_libexecdir}/mod_throttle.so 1>&2
131         if [ -f /var/lock/subsys/httpd ]; then
132                 /etc/rc.d/init.d/httpd restart 1>&2
133         fi
134 fi
135
136 %files
137 %defattr(644,root,root,755)
138 %doc *.gz
139 %doc %{_htmldocdir}/index.html
140 %attr(755,root,root) %{_libexecdir}/*
This page took 0.04872 seconds and 2 git commands to generate.