homebrew-core/Formula/snort.rb
Jeremy Whitlock 04546d87bc snort 2.9.0.5
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-08-27 21:25:45 -05:00

28 lines
893 B
Ruby

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