2021-01-17 04:51:22 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
|
2017-12-11 23:23:02 +01:00
|
|
|
, doxygen, perl, valgrind
|
|
|
|
, curl, geoip, libxml2, lmdb, lua, pcre, yajl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libmodsecurity";
|
2021-04-17 17:31:04 +02:00
|
|
|
version = "3.0.4";
|
2017-12-11 23:23:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SpiderLabs";
|
|
|
|
repo = "ModSecurity";
|
|
|
|
fetchSubmodules = true;
|
2017-12-17 11:04:11 +01:00
|
|
|
rev = "v${version}";
|
2021-04-17 17:31:04 +02:00
|
|
|
sha256 = "07vry10cdll94sp652hwapn0ppjv3mb7n2s781yhy7hssap6f2vp";
|
2017-12-11 23:23:02 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config doxygen ];
|
2017-12-11 23:23:02 +01:00
|
|
|
|
2019-05-21 20:31:29 +02:00
|
|
|
buildInputs = [ perl valgrind curl geoip libxml2 lmdb lua pcre yajl ];
|
2017-12-11 23:23:02 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-static"
|
|
|
|
"--with-curl=${curl.dev}"
|
|
|
|
"--with-libxml=${libxml2.dev}"
|
|
|
|
"--with-pcre=${pcre.dev}"
|
|
|
|
"--with-yajl=${yajl}"
|
|
|
|
];
|
|
|
|
|
2019-05-21 20:31:29 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-12-11 23:23:02 +01:00
|
|
|
description = ''
|
2017-12-17 11:04:11 +01:00
|
|
|
ModSecurity v3 library component.
|
2017-12-11 23:23:02 +01:00
|
|
|
'';
|
|
|
|
longDescription = ''
|
|
|
|
Libmodsecurity is one component of the ModSecurity v3 project. The
|
|
|
|
library codebase serves as an interface to ModSecurity Connectors taking
|
|
|
|
in web traffic and applying traditional ModSecurity processing. In
|
|
|
|
general, it provides the capability to load/interpret rules written in
|
|
|
|
the ModSecurity SecRules format and apply them to HTTP content provided
|
|
|
|
by your application via Connectors.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://modsecurity.org/";
|
2017-12-11 23:23:02 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|