diff options
| author | Ben Burkert | 2012-04-06 10:51:17 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-29 11:21:17 -0700 |
| commit | 00a6f13e747cc06bc31b7a9c4f0ae3e149307eed (patch) | |
| tree | a8a880dc869853c27dd113e53f6c118504a33dbf /Library/Formula | |
| parent | 6ade7c4ea5e8cd80847058d06bbd2e6beec7c6c7 (diff) | |
| download | homebrew-00a6f13e747cc06bc31b7a9c4f0ae3e149307eed.tar.bz2 | |
ssldump: increase sample buffer size.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ssldump.rb | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/Library/Formula/ssldump.rb b/Library/Formula/ssldump.rb index c04f5303b..91d573b7e 100644 --- a/Library/Formula/ssldump.rb +++ b/Library/Formula/ssldump.rb @@ -5,23 +5,28 @@ class Ssldump < Formula homepage 'http://www.rtfm.com/ssldump/' md5 'ac8c28fe87508d6bfb06344ec496b1dd' + # reorder include files + # http://sourceforge.net/tracker/index.php?func=detail&aid=1622854&group_id=68993&atid=523055 + # increase pcap sample size from an arbitrary 5000 the max TLS packet size 18432 + def patches + DATA + end + def install ENV["LIBS"] = "-lssl -lcrypto" # .dylib, not .a - inreplace "configure", "if test -f $dir/libpcap.a; then", "if test -f $dir/libpcap.dylib; then" + inreplace "configure", "if test -f $dir/libpcap.a; then", + "if test -f $dir/libpcap.dylib; then" - system "./configure", "osx", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}", + "osx" system "make" bin.install "ssldump" man1.install "ssldump.1" end - - def patches - # reorder include files - # => http://sourceforge.net/tracker/index.php?func=detail&aid=1622854&group_id=68993&atid=523055 - DATA - end end __END__ @@ -39,3 +44,14 @@ __END__ #ifndef _WIN32 #include <sys/param.h> #endif +--- a/base/pcap-snoop.c 2012-04-06 10:35:06.000000000 -0700 ++++ b/base/pcap-snoop.c 2012-04-06 10:45:31.000000000 -0700 +@@ -286,7 +286,7 @@ + err_exit("Aborting",-1); + } + } +- if(!(p=pcap_open_live(interface_name,5000,!no_promiscuous,1000,errbuf))){ ++ if(!(p=pcap_open_live(interface_name,18432,!no_promiscuous,1000,errbuf))){ + fprintf(stderr,"PCAP: %s\n",errbuf); + err_exit("Aborting",-1); + } |
