Merge pull request #117269 from aanderse/apacheHttpdPackages

This commit is contained in:
Sandro 2021-03-25 12:13:44 +01:00 committed by GitHub
commit fa69c57542
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 37 deletions

View file

@ -1,35 +0,0 @@
{ lib, stdenv, fetchurl, apacheHttpd }:
if lib.versionAtLeast (lib.getVersion apacheHttpd) "2.4" then
throw "mod_evasive is not supported on Apache httpd 2.4"
else
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 = "Evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack";
platforms = lib.platforms.linux;
};
}

View file

@ -18005,7 +18005,7 @@ in
mod_dnssd = callPackage ../servers/http/apache-modules/mod_dnssd { };
mod_evasive = callPackage ../servers/http/apache-modules/mod_evasive { };
mod_evasive = throw "mod_evasive is not supported on Apache httpd 2.4";
mod_perl = callPackage ../servers/http/apache-modules/mod_perl { };
@ -18024,7 +18024,7 @@ in
subversion = pkgs.subversion.override { httpServer = true; inherit apacheHttpd; };
};
apacheHttpdPackages_2_4 = dontRecurseIntoAttrs (apacheHttpdPackagesFor pkgs.apacheHttpd_2_4 pkgs.apacheHttpdPackages_2_4);
apacheHttpdPackages_2_4 = recurseIntoAttrs (apacheHttpdPackagesFor pkgs.apacheHttpd_2_4 pkgs.apacheHttpdPackages_2_4);
apacheHttpdPackages = apacheHttpdPackages_2_4;
appdaemon = callPackage ../servers/home-assistant/appdaemon.nix { };