summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorIzorkin <Izorkin@gmail.com>2017-12-12 01:23:02 +0300
committerJoachim F <joachifm@users.noreply.github.com>2017-12-11 22:23:02 +0000
commitcfe1a52f226b53b41b99606481dd60a3364e8bf2 (patch)
tree17e0252a7de1f64c24d5cf6897dd74e410cc09c8 /pkgs
parente4b32222a3ef6ac0c0c4895e468b2e1c4e7d9708 (diff)
downloadnixlib-cfe1a52f226b53b41b99606481dd60a3364e8bf2.tar
nixlib-cfe1a52f226b53b41b99606481dd60a3364e8bf2.tar.gz
nixlib-cfe1a52f226b53b41b99606481dd60a3364e8bf2.tar.bz2
nixlib-cfe1a52f226b53b41b99606481dd60a3364e8bf2.tar.lz
nixlib-cfe1a52f226b53b41b99606481dd60a3364e8bf2.tar.xz
nixlib-cfe1a52f226b53b41b99606481dd60a3364e8bf2.tar.zst
nixlib-cfe1a52f226b53b41b99606481dd60a3364e8bf2.zip
libmodsecurity: init at 3.0.0-2017-11-17 (#32075)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/security/libmodsecurity/default.nix47
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/tools/security/libmodsecurity/default.nix b/pkgs/tools/security/libmodsecurity/default.nix
new file mode 100644
index 000000000000..435b1f151a08
--- /dev/null
+++ b/pkgs/tools/security/libmodsecurity/default.nix
@@ -0,0 +1,47 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
+, doxygen, perl, valgrind
+, curl, geoip, libxml2, lmdb, lua, pcre, yajl }:
+
+stdenv.mkDerivation rec {
+  name = "libmodsecurity-${version}";
+  version = "3.0.0-2017-11-17";
+
+  src = fetchFromGitHub {
+    owner = "SpiderLabs";
+    repo = "ModSecurity";
+    fetchSubmodules = true;
+    rev = "81e1cdced3c0266d4b02a68e5f99c30a9c992303";
+    sha256 = "120bpvjq6ws2lv4vw98rx2s0c9yn0pfhlaphlgfv2rxqm3q7yhrr";
+  };
+
+  nativeBuildInputs = [ autoreconfHook pkgconfig ];
+
+  buildInputs = [ doxygen perl valgrind curl geoip libxml2 lmdb lua pcre yajl];
+
+  configureFlags = [
+    "--enable-static"
+    "--with-curl=${curl.dev}"
+    "--with-libxml=${libxml2.dev}"
+    "--with-pcre=${pcre.dev}"
+    "--with-yajl=${yajl}"
+  ];
+
+  meta = with stdenv.lib; {
+    description = ''
+      Libmodsecurity is one component of the ModSecurity v3 project.
+    '';
+    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 ];
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 20ce40e10746..ba1d35ab5c24 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -11762,6 +11762,8 @@ with pkgs;
     modules = [ nginxModules.rtmp nginxModules.dav nginxModules.moreheaders nginxModules.shibboleth ];
   };
 
+  libmodsecurity = callPackage ../tools/security/libmodsecurity { };
+
   ngircd = callPackage ../servers/irc/ngircd { };
 
   nix-binary-cache = callPackage ../servers/http/nix-binary-cache {};