git.iko.soy/typeable/nixpkgs
on master help sign in
libmodsecurity: init at 3.0.0-2017-11-17 (#32075)
commitcfe1a52f226b53b41b99606481dd60a3364e8bf2 authorIzorkin <Izorkin@gmail.com> dateTue 12 Dec 2017, 01:23 (9 years ago) parente4b3222
2 files changed+49
pkgs/tools/security/libmodsecurity/default.nix+47 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/libmodsecurity/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
2+, doxygen, perl, valgrind
3+, curl, geoip, libxml2, lmdb, lua, pcre, yajl }:
4+
5+stdenv.mkDerivation rec {
6+ name = "libmodsecurity-${version}";
7+ version = "3.0.0-2017-11-17";
8+
9+ src = fetchFromGitHub {
10+ owner = "SpiderLabs";
11+ repo = "ModSecurity";
12+ fetchSubmodules = true;
13+ rev = "81e1cdced3c0266d4b02a68e5f99c30a9c992303";
14+ sha256 = "120bpvjq6ws2lv4vw98rx2s0c9yn0pfhlaphlgfv2rxqm3q7yhrr";
15+ };
16+
17+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
18+
19+ buildInputs = [ doxygen perl valgrind curl geoip libxml2 lmdb lua pcre yajl];
20+
21+ configureFlags = [
22+ "--enable-static"
23+ "--with-curl=${curl.dev}"
24+ "--with-libxml=${libxml2.dev}"
25+ "--with-pcre=${pcre.dev}"
26+ "--with-yajl=${yajl}"
27+ ];
28+
29+ meta = with stdenv.lib; {
30+ description = ''
31+ Libmodsecurity is one component of the ModSecurity v3 project.
32+ '';
33+ longDescription = ''
34+ Libmodsecurity is one component of the ModSecurity v3 project. The
35+ library codebase serves as an interface to ModSecurity Connectors taking
36+ in web traffic and applying traditional ModSecurity processing. In
37+ general, it provides the capability to load/interpret rules written in
38+ the ModSecurity SecRules format and apply them to HTTP content provided
39+ by your application via Connectors.
40+ '';
41+ homepage = https://modsecurity.org/;
42+ license = licenses.asl20;
43+ platforms = platforms.all;
44+ maintainers = with maintainers; [ izorkin ];
45+ };
46+}
47+
pkgs/top-level/all-packages.nix+2
@@ -11762,6 +11762,8 @@ with pkgs;
1176211762 modules = [ nginxModules.rtmp nginxModules.dav nginxModules.moreheaders nginxModules.shibboleth ];
1176311763 };
1176411764
11765+ libmodsecurity = callPackage ../tools/security/libmodsecurity { };
11766+
1176511767 ngircd = callPackage ../servers/irc/ngircd { };
1176611768
1176711769 nix-binary-cache = callPackage ../servers/http/nix-binary-cache {};