2017-12-11 22:23:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
|
|
|
|
, doxygen, perl, valgrind
|
|
|
|
, curl, geoip, libxml2, lmdb, lua, pcre, yajl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libmodsecurity";
|
2019-05-21 19:31:29 +01:00
|
|
|
version = "3.0.3";
|
2017-12-11 22:23:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SpiderLabs";
|
|
|
|
repo = "ModSecurity";
|
|
|
|
fetchSubmodules = true;
|
2017-12-17 10:04:11 +00:00
|
|
|
rev = "v${version}";
|
2019-05-21 19:31:29 +01:00
|
|
|
sha256 = "00g2407g2679zv73q67zd50z0f1g1ij734ssv2pp77z4chn5dzib";
|
2017-12-11 22:23:02 +00:00
|
|
|
};
|
|
|
|
|
2019-05-21 19:31:29 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig doxygen ];
|
2017-12-11 22:23:02 +00:00
|
|
|
|
2019-05-21 19:31:29 +01:00
|
|
|
buildInputs = [ perl valgrind curl geoip libxml2 lmdb lua pcre yajl ];
|
2017-12-11 22:23:02 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-static"
|
|
|
|
"--with-curl=${curl.dev}"
|
|
|
|
"--with-libxml=${libxml2.dev}"
|
|
|
|
"--with-pcre=${pcre.dev}"
|
|
|
|
"--with-yajl=${yajl}"
|
|
|
|
];
|
|
|
|
|
2019-05-21 19:31:29 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-12-11 22:23:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''
|
2017-12-17 10:04:11 +00:00
|
|
|
ModSecurity v3 library component.
|
2017-12-11 22:23:02 +00: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.
|
|
|
|
'';
|
|
|
|
homepage = https://modsecurity.org/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ izorkin ];
|
|
|
|
};
|
|
|
|
}
|