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