[44365] trunk/dports/net/tcpflow
jmr at macports.org
jmr at macports.org
Fri Dec 26 23:19:28 PST 2008
Revision: 44365
http://trac.macports.org/changeset/44365
Author: jmr at macports.org
Date: 2008-12-26 23:19:27 -0800 (Fri, 26 Dec 2008)
Log Message:
-----------
tcpflow: fix setrlimit problem on Leopard
Modified Paths:
--------------
trunk/dports/net/tcpflow/Portfile
Added Paths:
-----------
trunk/dports/net/tcpflow/files/
trunk/dports/net/tcpflow/files/patch-src_util.c.diff
Modified: trunk/dports/net/tcpflow/Portfile
===================================================================
--- trunk/dports/net/tcpflow/Portfile 2008-12-27 03:51:59 UTC (rev 44364)
+++ trunk/dports/net/tcpflow/Portfile 2008-12-27 07:19:27 UTC (rev 44365)
@@ -4,7 +4,7 @@
name tcpflow
version 0.21
-revision 1
+revision 2
categories net security
maintainers simon openmaintainer
description TCP flow recorder
@@ -24,6 +24,8 @@
checksums md5 45a5aef6f043312315b7f342afc4a9c5
depends_lib port:libpcap
+patchfiles patch-src_util.c.diff
+
configure.args --mandir=${prefix}/share/man
platform darwin {
Added: trunk/dports/net/tcpflow/files/patch-src_util.c.diff
===================================================================
--- trunk/dports/net/tcpflow/files/patch-src_util.c.diff (rev 0)
+++ trunk/dports/net/tcpflow/files/patch-src_util.c.diff 2008-12-27 07:19:27 UTC (rev 44365)
@@ -0,0 +1,15 @@
+--- src/util.c.orig 2001-08-09 05:39:40.000000000 +1000
++++ src/util.c 2008-12-27 18:12:52.000000000 +1100
+@@ -181,6 +181,12 @@ int get_max_fds(void)
+ 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081226/824e3cd8/attachment.html>
More information about the macports-changes
mailing list