aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Whitlock2011-06-21 23:45:27 -0600
committerJack Nagel2011-08-27 21:25:45 -0500
commit371ad0bcbd96d266973c53ba75bd50d323dd3dc0 (patch)
treed61a2941246618bda7b0ae8d0cc5136f8926fa6e
parentcf653d155722c1e83139756a199a6a2a624da38f (diff)
downloadhomebrew-371ad0bcbd96d266973c53ba75bd50d323dd3dc0.tar.bz2
snort 2.9.0.5
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/snort.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/snort.rb b/Library/Formula/snort.rb
new file mode 100644
index 000000000..f45d93802
--- /dev/null
+++ b/Library/Formula/snort.rb
@@ -0,0 +1,28 @@
+require 'formula'
+
+class Snort < Formula
+ url 'http://www.snort.org/dl/snort-current/snort-2.9.0.5.tar.gz'
+ homepage 'http://www.snort.org'
+ md5 'a7e6f0b013f767d09c99f8f91757e355'
+
+ depends_on 'daq'
+ depends_on 'libdnet'
+ depends_on 'pcre'
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}", "--enable-ipv6", "--enable-zlib",
+ "--enable-mpls", "--enable-targetbased", "--enable-ppm",
+ "--enable-perfprofiling"
+ system "make install"
+ end
+
+ 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*
+ or you could create a startup item to do this for you.
+ EOS
+ end
+end