diff options
author | Jaka Hudoklin <jakahudoklin@gmail.com> | 2015-09-23 20:28:29 +0200 |
---|---|---|
committer | Jaka Hudoklin <jakahudoklin@gmail.com> | 2015-09-23 20:35:27 +0200 |
commit | 56b1f7934c9b07243e1c12a80f9125c74f6ad23b (patch) | |
tree | 6383e8809dac5917a5468066b301714612d5d27d /pkgs/tools | |
parent | 0d32d4cd8475461978b9a985a8449d74044d43fe (diff) | |
download | nixlib-56b1f7934c9b07243e1c12a80f9125c74f6ad23b.tar nixlib-56b1f7934c9b07243e1c12a80f9125c74f6ad23b.tar.gz nixlib-56b1f7934c9b07243e1c12a80f9125c74f6ad23b.tar.bz2 nixlib-56b1f7934c9b07243e1c12a80f9125c74f6ad23b.tar.lz nixlib-56b1f7934c9b07243e1c12a80f9125c74f6ad23b.tar.xz nixlib-56b1f7934c9b07243e1c12a80f9125c74f6ad23b.tar.zst nixlib-56b1f7934c9b07243e1c12a80f9125c74f6ad23b.zip |
modsecurity: init at 2.9.0
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/modsecurity/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/tools/security/modsecurity/default.nix b/pkgs/tools/security/modsecurity/default.nix new file mode 100644 index 000000000000..5ed6c9ecdc4a --- /dev/null +++ b/pkgs/tools/security/modsecurity/default.nix @@ -0,0 +1,45 @@ +{ stdenv, lib, fetchurl +, curl, apacheHttpd, pcre, apr, aprutil, libxml2 }: + +with lib; + +stdenv.mkDerivation rec { + name = "modsecurity-${version}"; + version = "2.9.0"; + + src = fetchurl { + url = "https://www.modsecurity.org/tarball/${version}/${name}.tar.gz"; + sha256 = "e2bbf789966c1f80094d88d9085a81bde082b2054f8e38e0db571ca49208f434"; + }; + + buildInputs = [ curl apacheHttpd pcre apr aprutil libxml2 ]; + configureFlags = [ + "--enable-standalone-module" + "--enable-static" + "--with-curl=${curl}" + "--with-apxs=${apacheHttpd}/bin/apxs" + "--with-pcre=${pcre}" + "--with-apr=${apr}" + "--with-apu=${aprutil}/bin/apu-1-config" + "--with-libxml=${libxml2}" + ]; + + outputs = ["out" "nginx"]; + + preBuild = '' + substituteInPlace apache2/Makefile.in --replace "install -D " "# install -D" + ''; + + postInstall = '' + mkdir -p $nginx + cp -R * $nginx + ''; + + meta = { + description = "Open source, cross-platform web application firewall (WAF)"; + license = licenses.asl20; + homepage = https://www.modsecurity.org/; + maintainers = with maintainers; [offline]; + platforms = with platforms; linux; + }; +} |