aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorlinuxgeek2472012-08-22 12:06:01 -0400
committerAdam Vandenberg2012-08-22 09:18:06 -0700
commitb58fde5e5a1626d55cdace82ea589a9c1d8ac960 (patch)
treeb345307c130dcee52baebc65f3e8dd58f8fbb4c9 /Library
parentfd3dd1efb2fa48e83ed348f1e7c4ba7325a7cdde (diff)
downloadhomebrew-b58fde5e5a1626d55cdace82ea589a9c1d8ac960.tar.bz2
snort 2.9.3.1
Closes #14380. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/snort.rb13
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*