diff options
Diffstat (limited to 'Library/Formula/snort.rb')
| -rw-r--r-- | Library/Formula/snort.rb | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/Library/Formula/snort.rb b/Library/Formula/snort.rb index b746882f1..472799b12 100644 --- a/Library/Formula/snort.rb +++ b/Library/Formula/snort.rb @@ -1,26 +1,32 @@ -require 'formula' +require "formula" class Snort < Formula - homepage 'http://www.snort.org' + homepage "https://www.snort.org" + revision 1 stable do - url 'https://www.snort.org/downloads/snort/snort-2.9.6.2.tar.gz' - sha1 '09068bc88dbb3fe47b2bff5803a7b3ef0c98395b' + url "https://www.snort.org/downloads/snort/snort-2.9.6.2.tar.gz" + sha1 "09068bc88dbb3fe47b2bff5803a7b3ef0c98395b" fails_with :clang end devel do - url 'https://www.snort.org/downloads/snortdev/snort-2.9.7.0_beta.tar.gz' - sha1 '723a8cf0f7cb2000145c916fbeacb8cfca92ae77' + url "https://www.snort.org/downloads/snortdev/snort-2.9.7.0_rc.tar.gz" + sha1 "945090c3a1a726f9e05c4538903492928dba901f" + + depends_on "luajit" end - depends_on 'daq' - depends_on 'libdnet' - depends_on 'pcre' + depends_on "daq" + depends_on "libdnet" + depends_on "pcre" + depends_on "openssl" - option 'enable-debug', "Compile Snort with --enable-debug and --enable-debug-msgs" + option "enable-debug", "Compile Snort with --enable-debug and --enable-debug-msgs" def install + openssl = Formula["openssl"] + args = %W[--prefix=#{prefix} --disable-dependency-tracking --enable-gre @@ -29,13 +35,15 @@ class Snort < Formula --enable-ppm --enable-perfprofiling --enable-zlib + --with-openssl-includes=#{openssl.opt_include} + --with-openssl-libraries=#{openssl.opt_lib} --enable-active-response --enable-normalizer --enable-reload --enable-react --enable-flexresp3] - if build.include? 'enable-debug' + if build.include? "enable-debug" args << "--enable-debug" args << "--enable-debug-msgs" else @@ -43,7 +51,7 @@ class Snort < Formula end system "./configure", *args - system "make install" + system "make", "install" end def caveats; <<-EOS.undent |
