From b58fde5e5a1626d55cdace82ea589a9c1d8ac960 Mon Sep 17 00:00:00 2001 From: linuxgeek247 Date: Wed, 22 Aug 2012 12:06:01 -0400 Subject: snort 2.9.3.1 Closes #14380. Signed-off-by: Adam Vandenberg --- Library/Formula/snort.rb | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/snort.rb b/Library/Formula/snort.rb index 9132c1817..5c8be6539 100644 --- a/Library/Formula/snort.rb +++ b/Library/Formula/snort.rb @@ -2,16 +2,14 @@ require 'formula' class Snort < Formula homepage 'http://www.snort.org' - url 'http://www.snort.org/dl/snort-current/snort-2.9.3.tar.gz' - md5 'e128f5d5d14dad335dc0c549c7fe2e98' + url 'http://www.snort.org/dl/snort-current/snort-2.9.3.1.tar.gz' + sha1 '25dfea22a988dd1dc09a1716d8ebfcf2b7d61c19' depends_on 'daq' depends_on 'libdnet' depends_on 'pcre' - def options - [['--enable-debug', "Compile Snort with --enable-debug and --enable-debug-msgs"]] - end + option 'enable-debug', "Compile Snort with --enable-debug and --enable-debug-msgs" def install args = %W[--prefix=#{prefix} @@ -30,7 +28,7 @@ class Snort < Formula --enable-react --enable-flexresp3] - if ARGV.include?('--enable-debug') + if build.include? 'enable-debug' args << "--enable-debug" args << "--enable-debug-msgs" else @@ -41,8 +39,7 @@ class Snort < Formula system "make install" end - def caveats - <<-EOS.undent + def caveats; <<-EOS.undent For snort to be functional, you need to update the permissions for /dev/bpf* so that they can be read by non-root users. This can be done manually using: sudo chmod 644 /dev/bpf* -- cgit v1.2.3