aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2014-10-16 23:46:05 +0100
committerJack Nagel2014-10-16 21:10:41 -0500
commit26334dc306d5dcbced022727846d7d4e6d63a317 (patch)
treebd05a26bf9a0cc65261d3e0283b04e873b0ebf20
parent841f0e76a4e4f7007b8bee1c7f332eb3b1279d2c (diff)
downloadhomebrew-26334dc306d5dcbced022727846d7d4e6d63a317.tar.bz2
snort: additional dependencies
Style changes, new devel version & luajit dep and new openssl directory and appropriate configuration options. Closes #33239. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/snort.rb32
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