2011-06-22 05:40:08 +00:00
|
|
|
class Daq < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Network intrusion prevention and detection system"
|
2015-06-05 18:03:16 +00:00
|
|
|
homepage "https://www.snort.org/"
|
2015-08-03 09:21:18 +00:00
|
|
|
url "https://www.snort.org/downloads/snort/daq-2.0.6.tar.gz"
|
|
|
|
sha256 "b40e1d1273e08aaeaa86e69d4f28d535b7e53bdb3898adf539266b63137be7cb"
|
2011-06-22 05:40:08 +00:00
|
|
|
|
2014-11-06 02:03:19 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-09-24 05:04:41 +00:00
|
|
|
sha256 "9c2720bd46954e9f2631801d8f8283974436a82827f01c9e954e319f0b9f7e88" => :el_capitan
|
2015-08-03 09:39:59 +00:00
|
|
|
sha256 "02d198f42f56471feaf127824230d7ea752490b3c7f5a34f8b50ff0a85062f01" => :yosemite
|
|
|
|
sha256 "8ce4fbbbb9f6189f6ee51d3223a81ebc7ea76069353bd284822989d6ccc364a5" => :mavericks
|
|
|
|
sha256 "bced15005e13eaa11ec6d47afbb1137f61231a191fb05a295e2762cc6cc8ef29" => :mountain_lion
|
2014-11-06 02:03:19 +00:00
|
|
|
end
|
|
|
|
|
2011-06-22 05:40:08 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2014-11-06 01:28:59 +00:00
|
|
|
"--disable-silent-rules",
|
2011-06-22 05:40:08 +00:00
|
|
|
"--prefix=#{prefix}"
|
2014-11-06 01:28:59 +00:00
|
|
|
system "make", "install"
|
2011-06-22 05:40:08 +00:00
|
|
|
end
|
2015-06-05 18:03:16 +00:00
|
|
|
|
|
|
|
test do
|
2015-08-29 08:06:01 +00:00
|
|
|
(testpath/"test.c").write <<-EOS.undent
|
|
|
|
#include <daq.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
DAQ_Module_Info_t* list;
|
|
|
|
int size = daq_get_module_list(&list);
|
|
|
|
daq_free_module_list(list, size);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
system ENV.cc, "test.c", "-L#{lib}", "-ldaq", "-o", "test"
|
|
|
|
system "./test"
|
2015-06-05 18:03:16 +00:00
|
|
|
end
|
2011-06-22 05:40:08 +00:00
|
|
|
end
|