diff options
| author | Misty De Meo | 2012-01-03 12:46:38 -0600 |
|---|---|---|
| committer | Misty De Meo | 2012-01-03 12:46:38 -0600 |
| commit | 5d462465d9f2d32d2425238af0404989b89d8050 (patch) | |
| tree | 95afcf6f27014f55d4dface18196d0ec430166f4 /Library | |
| parent | f82133151e291aacc561d6b6383ac2e75a13631a (diff) | |
| download | homebrew-5d462465d9f2d32d2425238af0404989b89d8050.tar.bz2 | |
tcpflow 1.0.6, new maintainer
tcpflow is now maintained by Simson Garfinkel, who has released a new
version.
Closes #9386.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tcpflow.rb | 48 |
1 files changed, 14 insertions, 34 deletions
diff --git a/Library/Formula/tcpflow.rb b/Library/Formula/tcpflow.rb index 0f848cfc8..66accd92b 100644 --- a/Library/Formula/tcpflow.rb +++ b/Library/Formula/tcpflow.rb @@ -1,13 +1,13 @@ require 'formula' class Tcpflow < Formula - url 'http://www.circlemud.org/pub/jelson/tcpflow/tcpflow-0.21.tar.gz' - homepage 'http://www.circlemud.org/~jelson/software/tcpflow/' - md5 '45a5aef6f043312315b7f342afc4a9c5' + url 'http://afflib.org/downloads/tcpflow-1.0.6.tar.gz' + homepage 'http://afflib.org/software/tcpflow' + md5 '05febeeabbbc56686dabb509fbb02e86' def patches # Patch from MacPorts - DATA + { :p0 => DATA } end def install @@ -24,40 +24,20 @@ class Tcpflow < Formula end __END__ ---- a/src/util.c 2001-08-09 05:39:40.000000000 +1000 -+++ b/src/util.c 2008-12-27 18:12:52.000000000 +1100 -@@ -181,6 +181,12 @@ int get_max_fds(void) +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); } +#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; - ---- a/src/datalink.c 2002-03-29 18:19:03.000000000 -0500 -+++ b/src/datalink.c 2010-08-06 17:40:55.000000000 -0400 -@@ -49,6 +49,9 @@ - * DLT_NULL is used by the localhost interface. */ - #define NULL_HDRLEN 4 - -+/* loopback family */ -+#define AF_LOOPBACK 0x2000000 -+ - void dl_null(u_char *user, const struct pcap_pkthdr *h, const u_char *p) - { - u_int caplen = h->caplen; -@@ -72,7 +75,7 @@ - /* make sure this is AF_INET */ - memcpy((char *)&family, (char *)p, sizeof(family)); - family = ntohl(family); -- if (family != AF_INET) { -+ if (family != AF_INET && family != AF_LOOPBACK) { - DEBUG(6) ("warning: received non-AF_INET null frame (type %d)", family); - return; - } + if (max_desired_fds) limit.rlim_cur = max_desired_fds; + else limit.rlim_cur = limit.rlim_max; |
