Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
2.4
:
Modules
>
apache2-mod_evasive
> apache2-mod_evasive.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File apache2-mod_evasive.spec of Package apache2-mod_evasive
# # spec file for package apache2-bw_mod (Version 0.6) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org # # norootforbuild Name: apache2-mod_evasive BuildRequires: apache2-devel %define modname mod_evasive %define apxs /usr/sbin/apxs2 %define apache apache2 %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) %define apache_includedir %(%{apxs} -q INCLUDEDIR) %define apache_serverroot %(%{apxs} -q PREFIX) %define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) Version: 1.10.1 Release: 1 License: GPLv2 Group: Productivity/Networking/Web/Servers Requires: apache2 %{apache_mmn} Autoreqprov: on Summary: module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack Url: http://www.zdziarski.com/projects/mod_evasive/ Source0: http://www.zdziarski.com/projects/mod_evasive/%{modname}_%{version}.tar.gz Source1: mod_evasive.conf Patch0: mod_evasive-void.patch Patch1: apache24.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack. It is also designed to be a detection and network management tool, and can be easily configured to talk to ipchains, firewalls, routers, and etcetera. mod_evasive presently reports abuses via email and syslog facilities. %debug_package %prep %setup -n %{modname} %patch0 %patch1 -p1 %build %{apxs} -a -c %{modname}20.c %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir} mkdir -p $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/ cp -p .libs/%{modname}20.so $RPM_BUILD_ROOT/%{apache_libexecdir}/%{modname}20.so cp %{S:1} $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/%{modname}.conf %files %defattr(-,root,root) %doc CHANGELOG LICENSE README test.pl %{apache_libexecdir}/*.so %{apache_sysconfdir}/conf.d/%{modname}.conf %changelog * Sun Oct 12 2008 Carsten Schoene <cs@linux-administrator.com> - initial package (1.10.1)