aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorVictor Luft2015-02-10 12:35:43 -0800
committerMike McQuaid2015-02-11 14:16:04 +0000
commit0b54ee5d2471eebc58816e2b0a255fff7d0f8f8b (patch)
tree6b56121f4b244a0244c7813b6780c8fcade686c7 /Library/Formula
parent8511c814ad69217c4721b27a38d8270e2ad1ff53 (diff)
downloadhomebrew-0b54ee5d2471eebc58816e2b0a255fff7d0f8f8b.tar.bz2
sngrep 0.2.2 (new formula)
Closes #36604. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/sngrep.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/sngrep.rb b/Library/Formula/sngrep.rb
new file mode 100644
index 000000000..83991aa4d
--- /dev/null
+++ b/Library/Formula/sngrep.rb
@@ -0,0 +1,23 @@
+class Sngrep < Formula
+ homepage "https://github.com/irontec/sngrep"
+ url "https://github.com/irontec/sngrep/archive/v0.2.2.tar.gz"
+ sha1 "6d492ba418eafec563ff756dd6d612722c535676"
+
+ depends_on "autoconf" => :build
+ depends_on "automake" => :build
+ depends_on "openssl"
+
+ def install
+ system "./bootstrap.sh"
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--disable-silent-rules",
+ "--prefix=#{prefix}",
+ "--with-openssl=#{Formula["openssl"].opt_prefix}"
+ system "make", "install"
+ end
+
+ test do
+ pipe_output "#{bin}/sngrep -I #{test_fixtures("test.pcap")}", "Q"
+ end
+end