diff options
| author | Jannis Leidel | 2010-02-11 23:33:40 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-11 15:09:07 -0800 |
| commit | 8179a28767178fb2b7e2d9b30b88cfd680bbb4d1 (patch) | |
| tree | ef57463bda157f722054d2a0a04ff2f6fe982515 /Library/Formula/tcpflow.rb | |
| parent | 1a5b5773c83abbd2f4a123817d91afa3625a6f1f (diff) | |
| download | homebrew-8179a28767178fb2b7e2d9b30b88cfd680bbb4d1.tar.bz2 | |
Added formula for tcpflow.
"tcpflow is a program that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis or debugging."
http://www.circlemud.org/~jelson/software/tcpflow/
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/tcpflow.rb')
| -rw-r--r-- | Library/Formula/tcpflow.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/tcpflow.rb b/Library/Formula/tcpflow.rb new file mode 100644 index 000000000..bdd9329d4 --- /dev/null +++ b/Library/Formula/tcpflow.rb @@ -0,0 +1,37 @@ +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' + + depends_on 'libpcap' + + def patches + DATA + end + + def install + FileUtils.cp "/Developer/usr/share/libtool/config/config.guess", "config.guess" + FileUtils.cp "/Developer/usr/share/libtool/config/config.sub", "config.sub" + system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--mandir=#{man}" + system "make install" + end +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) + 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; |
