From 988465f8548462b152159dd37a0374f4e323a5b1 Mon Sep 17 00:00:00 2001 From: James Dinsdale Date: Mon, 16 Nov 2015 12:03:23 +0000 Subject: [PATCH] Add naxsi module formula --- Formula/naxsi-nginx-module.rb | 17 +++++++++++++++++ Formula/nginx-full.rb | 1 + 2 files changed, 18 insertions(+) create mode 100644 Formula/naxsi-nginx-module.rb diff --git a/Formula/naxsi-nginx-module.rb b/Formula/naxsi-nginx-module.rb new file mode 100644 index 0000000..eacba31 --- /dev/null +++ b/Formula/naxsi-nginx-module.rb @@ -0,0 +1,17 @@ +class NaxsiNginxModule < Formula + desc "NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX" + homepage "https://github.com/nbs-system/naxsi" + url "https://github.com/nbs-system/naxsi/archive/0.54.tar.gz" + sha1 "d5db25db19a564358af7763d4935e978d05bf6f5" + head "https://github.com/nbs-system/naxsi.git" + + def install + cd "naxsi_src" do + (share+"naxsi-nginx-module").install Dir["*"] + end + + cd "naxsi_config" do + (etc+"nginx").install Dir["*"] + end + end +end diff --git a/Formula/nginx-full.rb b/Formula/nginx-full.rb index 7922e05..fd1bea9 100644 --- a/Formula/nginx-full.rb +++ b/Formula/nginx-full.rb @@ -75,6 +75,7 @@ def self.third_party_modules "mod-zip" => "Compile with support for HTTP Zip module", "mogilefs" => "Compile with support for HTTP MogileFS module", "mp4-h264" => "Compile with support for HTTP MP4/H264 module", + "naxsi" => "Compile with support for Naxsi module", "notice" => "Compile with support for HTTP Notice module", "php-session" => "Compile with support for Parse PHP Sessions module", "push-stream" => "Compile with support for http push stream module",