diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/snort.rb | 28 |
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 |
