snort 2.9.3.1

Closes Homebrew/homebrew#14380.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
linuxgeek247 2012-08-22 12:06:01 -04:00 committed by Adam Vandenberg
parent 03b17093be
commit d4f4719de4

View file

@ -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*