diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/snort.rb | 13 |
1 files changed, 5 insertions, 8 deletions
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* |
