diff options
| author | Rohan Singh | 2012-04-20 14:18:18 +0200 |
|---|---|---|
| committer | Jack Nagel | 2012-04-20 13:46:01 -0500 |
| commit | 4748b071937e916dce311ff2b0e9fca6962e4a2e (patch) | |
| tree | 196081516caee3ba193a6dfabd6d48cfe2a836b7 /Library/Formula | |
| parent | 52409ff0e688f6f668022aef5943a77db2055553 (diff) | |
| download | homebrew-4748b071937e916dce311ff2b0e9fca6962e4a2e.tar.bz2 | |
tcpflow 1.2.6
tcpflow has been moved to Github, and is now at 1.2.6.
Closes #11771.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tcpflow.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Library/Formula/tcpflow.rb b/Library/Formula/tcpflow.rb index 47b3b5079..39691a1a2 100644 --- a/Library/Formula/tcpflow.rb +++ b/Library/Formula/tcpflow.rb @@ -1,9 +1,9 @@ require 'formula' class Tcpflow < Formula - homepage 'http://afflib.org/software/tcpflow' - url 'http://afflib.org/downloads/tcpflow-1.1.0.tar.gz' - md5 '9b836b16575679e9d10f39ac7a98efbe' + homepage 'https://github.com/simsong/tcpflow' + url 'https://github.com/downloads/simsong/tcpflow/tcpflow-1.2.6.tar.gz' + md5 '7562f8a1a65f1ce1238be84a1fe83bf6' # Patch from MacPorts def patches; DATA; end @@ -15,7 +15,7 @@ class Tcpflow < Formula cp Dir["#{MacOS.xcode_prefix}/usr/share/libtool/config/config.*"], "." end - system "./configure", "--disable-debug", "--disable-dependency-tracking", + system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "--mandir=#{man}" system "make install" @@ -23,18 +23,18 @@ class Tcpflow < Formula end __END__ ---- a/src/util.cpp 2012-02-07 14:42:10.000000000 +1100 -+++ b/src/util.cpp 2012-02-07 14:42:12.000000000 +1100 -@@ -114,6 +114,12 @@ +--- a/src/tcpip.cpp ++++ b/src/tcpip.cpp +@@ -541,6 +541,12 @@ unsigned int tcpdemux::get_max_fds(void) + perror("getrlimit"); exit(1); } - ++ +#if defined(__APPLE__) -+ if (limit.rlim_max > OPEN_MAX) { -+ limit.rlim_max = OPEN_MAX; -+ } ++ if (limit.rlim_max > OPEN_MAX) { ++ limit.rlim_max = OPEN_MAX; ++ } +#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; |
