91e4acf537
Closes Homebrew/homebrew#10020. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
41 lines
1.1 KiB
Ruby
41 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class Tcpflow < Formula
|
|
homepage 'http://afflib.org/software/tcpflow'
|
|
url 'http://afflib.org/downloads/tcpflow-1.1.0.tar.gz'
|
|
md5 '9b836b16575679e9d10f39ac7a98efbe'
|
|
|
|
def patches
|
|
# Patch from MacPorts
|
|
{ :p0 => DATA }
|
|
end
|
|
|
|
def install
|
|
if MacOS.leopard?
|
|
cp Dir["#{MacOS.xcode_prefix}/usr/share/libtool/config.*"], "."
|
|
else
|
|
cp Dir["#{MacOS.xcode_prefix}/usr/share/libtool/config/config.*"], "."
|
|
end
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}", "--mandir=#{man}"
|
|
system "make install"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
--- 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) {
|
|
+ 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;
|