]> git.pld-linux.org Git - packages/php-pear-HTTP_FloodControl.git/blame - php-pear-HTTP_FloodControl.spec
- rel 3
[packages/php-pear-HTTP_FloodControl.git] / php-pear-HTTP_FloodControl.spec
CommitLineData
3e629c7a
AG
1%include /usr/lib/rpm/macros.php
2%define _class HTTP
3%define _subclass FloodControl
4%define _status alpha
5%define _pearname HTTP_FloodControl
6Summary: %{_pearname} - detect and protect from attempts to flood a site
7Summary(pl.UTF-8): %{_pearname} - detekcja i ochrona przed atakami typu flood
8Name: php-pear-%{_pearname}
9Version: 0.1.1
8d9ab7ff 10Release: 3
3e629c7a
AG
11License: LGPL
12Group: Development/Languages/PHP
13Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14# Source0-md5: 848fc5590d607b12f480faaf84fbf7c5
15URL: http://pear.php.net/package/HTTP_FloodControl/
16BuildRequires: php-pear-PEAR
17BuildRequires: rpm-php-pearprov >= 4.4.2-11
18Requires: php-pear
f90484bd 19Requires: php-pear-PEAR-core
3e629c7a
AG
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23# exclude optional dependencies
24%define _noautoreq 'pear(DB.*)' 'pear(MDB.*)' 'pear(MDB2.*)'
25
26%description
27The HTTP_FloodControl package can be used to detect and protect a Web
28site from attempts to flood it with too many requests. It also allows
29to protect the site from automatic downloading many pages or files
30from the same IP address, session ID or other unique identifier.
31
32The detection of flood is determine according to a set of parameters
33indicating the maximal allowed number of requests for the certain time
34interval. It is possible to set several parameters at once in order to
35perform more effective protection.
36
37The package uses various storage containers (regular files, DB, MDB,
38MDB2) to handle counter logs.
39
40In PEAR status of this package is: %{_status}.
41
42%description -l pl.UTF-8
43Klasa HTTP_FloodControl może być użytka do wykrycia i ochrony strony
44Web przed próbami przepełnienia ich zbyt dużą ilością zapytań. Pozwala
45także na ochronę serwisu przed automatycznym sciąganiem wielu stron
46przez klienta identyfikowanego na podstawie adresu IP, identyfikatora
47sesji bądź innego unikalnego identyfikatora.
48
49Flood wykrywany jest na podstawie zestawu parametrów określających
50maksymalną dozwoloną liczbę zapytań w zadanym przedziale czasowym.
51Możliwe jest określenie wielu parametrów jednocześnie w celu
52zapewnienia skutecznej ochrony.
53
54Pakiet ten może skorzystać z różnych kontenerów danych (pliki, DB,
55MDB, MDB2) w celu przechowywania informacji o licznach logów.
56
57Ta klasa ma w PEAR status: %{_status}.
58
59%prep
60%pear_package_setup
61
62%install
63rm -rf $RPM_BUILD_ROOT
f90484bd 64install -d $RPM_BUILD_ROOT%{php_pear_dir}/HTTP
3e629c7a 65%pear_package_install
f90484bd 66mv -f $RPM_BUILD_ROOT%{php_pear_dir}/{Flood*,HTTP}
3e629c7a
AG
67
68%clean
69rm -rf $RPM_BUILD_ROOT
70
71%post
72if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
73 cat %{_docdir}/%{name}-%{version}/optional-packages.txt
74fi
75
76%files
77%defattr(644,root,root,755)
78%doc install.log optional-packages.txt
79%{php_pear_dir}/.registry/*.reg
f90484bd
AG
80%{php_pear_dir}/HTTP/FloodControl/
81%{php_pear_dir}/HTTP/FloodControl.php
This page took 0.067964 seconds and 4 git commands to generate.