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