]> git.pld-linux.org Git - packages/apache1-mod_throttle.git/blame - apache1-mod_throttle.spec
- converted to UTF-8
[packages/apache1-mod_throttle.git] / apache1-mod_throttle.spec
CommitLineData
ae19f32d
ER
1%bcond_without ipv6 # disable IPv6 support
2
6d6464d3 3%define mod_name throttle
4%define apxs /usr/sbin/apxs1
15d1b3fb 5Summary: Bandwidth & Request Throttling for Apache
ece14ce8
JR
6Summary(cs.UTF-8): Omezení síťového provozu pro Apache
7Summary(de.UTF-8): Ein Modul, das die Bandbreiten- und Anforderungseinschränkung für Apache implementiert
8Summary(es.UTF-8): Módulo que implementa la gestión de ancho de banda y peticiones para Apache
9Summary(fr.UTF-8): Module qui met en oeuvre la bande passante et l'étranglement requis pour Apache
10Summary(it.UTF-8): Modulo che implementa la larghezza di banda e la richiesta di throttling per Apache
11Summary(ja.UTF-8): Apache 用帯域幅および要求スロットルを実装するモジュール
12Summary(pl.UTF-8): Tłumienie przepustowości i zapytań dla Apache'a
13Summary(pt_BR.UTF-8): Descompressão "On-the-fly" de arquivos HTML para o Apache
14Summary(sv.UTF-8): En modul som implementerar bandvidd- och begäranbegränsningar i Apache
6d6464d3 15Name: apache1-mod_%{mod_name}
39868455 16Version: 3.1.2
911a929d 17Release: 4
fdabe731 18License: BSD-like
39868455 19Group: Networking/Daemons
20Source0: http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
bad0518d 21# Source0-md5: 6edc45c3ea8a0855d4b0b14cf0f76404
0c0d3289 22Patch0: apache1-mod_throttle-PLD-v6stuff.patch
39868455 23URL: http://www.snert.com/Software/mod_throttle/
087a4cf3 24BuildRequires: %{apxs}
fe6eb984 25#{?with_ipv6:BuildRequires: apache1(ipv6)-devel}
389d149c 26BuildRequires: apache1-devel >= 1.3.33-2
814fc43d 27BuildRequires: rpmbuild(macros) >= 1.268
ae19f32d 28Requires(triggerpostun): %{apxs}
911a929d 29Requires: apache1(EAPI)
814fc43d 30Obsoletes: apache-mod_throttle <= 3.1.2
39868455 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
ae19f32d
ER
33%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
34%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
f6e6d022 35%define _pkglogdir %(%{apxs} -q PREFIX 2>/dev/null)/logs
39868455 36
37%description
38This Apache module is intended to reduce the load on your server &
3a912cef 39bandwidth generated by popular virtual hosts, directories, locations,
40or users according to supported polices (see below) that decide when
41to delay or refuse requests. Also mod_throttle can track and throttle
42incoming connections by IP address or by authenticated remote user.
39868455 43
ece14ce8
JR
44%description -l cs.UTF-8
45Balíček mod_throttle obsahuje modul, který umožňuje omezit průtok dat,
46která odcházejí z WWW serveru Apache. Limity mohou být nastaveny pro
47jednotlivé virtuální weby, adresáře, umístění nebo autentizované
48uživatele.
15d1b3fb 49
ece14ce8
JR
50%description -l de.UTF-8
51Mod_throttle kann verwendet werden, um die Datenmenge zu beschränken,
52die Ihr Web-Server behandelt. Diese Einschränkungen können für
15d1b3fb 53einzelne virtuelle Rechner, Verzeichnisse, Speicherstellen oder
54authentifizierte Benutzer eingestellt werden.
55
ece14ce8 56%description -l es.UTF-8
15d1b3fb 57Mod_throttle puede usarse para limitar la cantidad de datos que su
ece14ce8 58servidor web va a servir. Estos límites se pueden configurar para
d9b7adbf 59hosts virtuales individuales, directorios, lugares o usuarios
15d1b3fb 60autenticados.
61
ece14ce8
JR
62%description -l fr.UTF-8
63Mod_throttle peut être utilisé pour limiter la quantité de données
64servies par votre serveur Web. Ces limites peuvent être définies pour
65des hôtes virtuels individuels, répertoires, emplacements ou
66utilisateurs authentifiés.
15d1b3fb 67
ece14ce8
JR
68%description -l it.UTF-8
69Mod_throttle può essere usato per limitare la quantità di dati che il
70server Web dovrà servire. Queste limitazioni possono essere
15d1b3fb 71configurate per singoli host virtuali, directory, indirizzi o utenti
72autenticati.
73
ece14ce8
JR
74%description -l ja.UTF-8
75Mod_throttle によって Web サーバーが処理するデータ量を制限できます
76これらの制限は、個々の仮想ホスト、ディレクトリ、場所、または
77認証ユーザー用について設定できます。
15d1b3fb 78
ece14ce8
JR
79%description -l pl.UTF-8
80Ten moduł Apache ma służyć do zmniejszania obciążenia serwera i ruchu
8d9664c4 81generowanego przez popularne hosty wirtualne, katalogi, pliki lub
ece14ce8
JR
82użytkowników zgodnie z obsługiwanymi polisami, które decydują kiedy
83opóźnić lub odrzucić zapytanie. mod_throttle może także śledzić i
84tłumić połączenia przychodzące z danego adresu IP lub danego,
85autentykującego się, użytkownika.
8eed4cfc 86
ece14ce8
JR
87%description -l pt_BR.UTF-8
88Descompressão "On-the-fly" de arquivos HTML para o Apache.
b1cd24bd 89
ece14ce8
JR
90%description -l sv.UTF-8
91Mod_throttle kan användas för att begränsa mängden data som din
92webbserver skickar. Dessa gränser kan sättas för enskilda virtuella
93värdar, kataloger, platser eller autenticerade användare.
15d1b3fb 94
39868455 95%prep
6d6464d3 96%setup -q -n mod_%{mod_name}-%{version}
ae19f32d 97%{?with_ipv6:%patch0 -p1}
39868455 98
99%build
6d6464d3 100%{apxs} -o mod_%{mod_name}.so -c mod_%{mod_name}.c
39868455 101
102%install
103rm -rf $RPM_BUILD_ROOT
f6e6d022 104install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,%{_pkglogdir}}
39868455 105
6d6464d3 106install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
39868455 107
ae19f32d
ER
108echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
109 $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
110
6d6464d3 111sed -e 's/<!--#/<!--/g' index.shtml > mod_%{mod_name}.html
39868455 112
f6e6d022
ER
113> $RPM_BUILD_ROOT%{_pkglogdir}/mod_throttle.runtime
114
8d9664c4
JB
115%clean
116rm -rf $RPM_BUILD_ROOT
117
39868455 118%post
814fc43d 119%service -q apache restart
39868455 120
d7729c21 121%postun
39868455 122if [ "$1" = "0" ]; then
814fc43d 123 %service -q apache restart
39868455 124fi
125
ae19f32d
ER
126%triggerpostun -- apache1-mod_%{mod_name} < 3.1.2-1.1
127# check that they're not using old apache.conf
128if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
129 %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
130fi
131
39868455 132%files
133%defattr(644,root,root,755)
0854ba96 134%doc *.txt *.html
389d149c 135%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
6d6464d3 136%attr(755,root,root) %{_pkglibdir}/*
f6e6d022 137%attr(660,root,http) %ghost %{_pkglogdir}/*
This page took 0.129167 seconds and 4 git commands to generate.