- HTTP group
[packages/apache-mod_dosevasive.git] / apache-mod_dosevasive.spec
CommitLineData
0e69a3f9 1# TODO: cp spec name to apache-mod_evasive.spec as it is now official name
22275aca
MK
2# see http://www.nuclearelephant.com/projects/dosevasive/
3%define mod_name evasive
1298aca4 4%define apxs /usr/sbin/apxs
741150b4 5Summary: Apache DoS Evasive Maneuvers Module
e64ebfb3 6Summary(pl.UTF-8): Moduł manewrów omijających ataki DoS dla Apache
1298aca4 7Name: apache-mod_%{mod_name}
22275aca
MK
8Version: 1.10.1
9Release: 1
80232990 10License: GPL v2+
843a59d9 11Group: Networking/Daemons/HTTP
22275aca
MK
12Source0: http://www.nuclearelephant.com/projects/mod_evasive/mod_%{mod_name}_%{version}.tar.gz
13# Source0-md5: 784fca4a124f25ccff5b48c7a69a65e5
6e5789f3 14Source1: %{name}.conf
22275aca 15URL: http://www.nuclearelephant.com/projects/mod_evasive/
8d97abbe 16BuildRequires: %{apxs}
c6d05e64 17BuildRequires: apache-devel >= 2.0
063ec093 18BuildRequires: rpmbuild(macros) >= 1.268
6ef41fca 19BuildRequires: zlib-devel
c6d05e64 20Requires: apache(modules-api) = %apache_modules_api
0e69a3f9
ER
21Provides: apache-mod_dosevasive
22Obsoletes: apache-mod_dosevasive
1298aca4 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
c6d05e64
ER
25%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
26%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
1298aca4 27
28%description
22275aca 29mod_(dos)evasive is an evasive maneuvers module for Apache to provide
741150b4
JB
30evasive action in the event of an HTTP DoS or DDoS attack or brute
31force attack. It is also designed to be a detection and network
32management tool, and can be easily configured to talk to ipchains,
33firewalls, routers, and etcetera. mod_dosevasive presently reports
34abuses via email and syslog facilities.
1298aca4 35
905acbaa
JR
36%description -l pl.UTF-8
37mod_(dos)evasive to moduł manewrów omijających dla Apache, zapewniający
38akcje omijające w przypadku ataków DoS, DDoS lub brute force na usługę
39HTTP. Został zaprojektowany także jako narzędzie do wykrywania i
40zarządzania siecią, może być łatwo skonfigurowany do współpracy z
741150b4 41ipchains, firewallami, routerami itp. mod_dosevasive obecnie raportuje
905acbaa 42nadużycia pocztą elektroniczną i poprzez sysloga.
1298aca4 43
44%prep
80232990 45%setup -q -n mod_%{mod_name}
1298aca4 46
47%build
80232990 48%{apxs} -c mod_%{mod_name}20.c -lz
1298aca4 49
50%install
51rm -rf $RPM_BUILD_ROOT
52install -d $RPM_BUILD_ROOT%{_pkglibdir}
403a0fa4 53install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
1298aca4 54
80232990 55install .libs/mod_%{mod_name}20.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
c7570040 56install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/80_mod_%{mod_name}.conf
1298aca4 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%post
063ec093 62%service -q httpd restart
1298aca4 63
33bdd6f6 64%postun
1298aca4 65if [ "$1" = "0" ]; then
063ec093 66 %service -q httpd restart
1298aca4 67fi
68
69%files
70%defattr(644,root,root,755)
71%doc README
c7570040 72%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
77e63fe7 73%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.07191 seconds and 4 git commands to generate.