Add mod_evasive

This commit is contained in:
Rob Vermaas 2012-07-31 15:51:31 +02:00
parent 2faada9f30
commit eb29e0449b
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, fetchurl, apacheHttpd }:
stdenv.mkDerivation {
name = "mod_evasive_1.10.1";
src = fetchurl {
url = http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz;
sha256 = "0rsnx50rjv6xygbp9r0gyss7xqdkcb0hy3wh9949jf1im8wm3i07";
};
buildInputs = [ apacheHttpd ];
buildPhase = ''
export APACHE_LIBEXECDIR=$out/modules
export makeFlagsArray=(APACHE_LIBEXECDIR=$out/modules)
apxs -ca mod_evasive20.c
'';
installPhase = ''
mkdir -p $out/modules
cp .libs/mod_evasive20.so $out/modules
'';
meta = {
homepage = "http://www.zdziarski.com/blog/?page_id=442";
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.";
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -5224,6 +5224,8 @@ let
memcached = callPackage ../servers/memcached {};
mod_evasive = callPackage ../servers/http/apache-modules/mod_evasive { };
mod_python = callPackage ../servers/http/apache-modules/mod_python { };
mod_fastcgi = callPackage ../servers/http/apache-modules/mod_fastcgi { };