From 91e4acf53788d95113c812ae5128b4b7327b257a Mon Sep 17 00:00:00 2001 From: Stefan Saasen Date: Tue, 7 Feb 2012 14:51:27 +1100 Subject: [PATCH] tcpflow 1.1.0 Closes Homebrew/homebrew#10020. Signed-off-by: Jack Nagel --- Formula/tcpflow.rb | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Formula/tcpflow.rb b/Formula/tcpflow.rb index 66accd92bd..e860ad38c0 100644 --- a/Formula/tcpflow.rb +++ b/Formula/tcpflow.rb @@ -1,9 +1,9 @@ require 'formula' class Tcpflow < Formula - url 'http://afflib.org/downloads/tcpflow-1.0.6.tar.gz' homepage 'http://afflib.org/software/tcpflow' - md5 '05febeeabbbc56686dabb509fbb02e86' + url 'http://afflib.org/downloads/tcpflow-1.1.0.tar.gz' + md5 '9b836b16575679e9d10f39ac7a98efbe' def patches # Patch from MacPorts @@ -24,13 +24,11 @@ class Tcpflow < Formula end __END__ -Index: src/util.c -=================================================================== ---- src/util.c.orig 2011-09-25 08:25:23.000000000 -0500 -+++ src/util.c 2011-10-01 20:54:36.000000000 -0500 -@@ -199,6 +199,12 @@ - exit(1); - } +--- src/util.cpp.orig 2012-02-07 14:42:10.000000000 +1100 ++++ src/util.cpp 2012-02-07 14:42:12.000000000 +1100 +@@ -114,6 +114,12 @@ + exit(1); + } +#if defined(__APPLE__) + if (limit.rlim_max > OPEN_MAX) { @@ -38,6 +36,6 @@ Index: src/util.c + } +#endif + - /* set the current to the maximum or specified value */ - if (max_desired_fds) limit.rlim_cur = max_desired_fds; - else limit.rlim_cur = limit.rlim_max; + /* set the current to the maximum or specified value */ + if (max_desired_fds) limit.rlim_cur = max_desired_fds; + else limit.rlim_cur = limit.rlim_max;