Update of /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/net
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5688/10.4-transitional/unstable/main/finkinfo/net

Modified Files:
        dnstop.info dnstop.patch 
Log Message:
New upstream version; fixed display in live capture mode

Index: dnstop.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/net/dnstop.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dnstop.patch        29 Dec 2005 12:44:55 -0000      1.2
+++ dnstop.patch        2 May 2006 22:22:51 -0000       1.3
@@ -1,25 +1,53 @@
-diff -ru dnstop-20050203/Makefile dnstop-20050203-patched/Makefile
---- dnstop-20050203/Makefile   2005-02-03 19:17:46.000000000 +0100
-+++ dnstop-20050203-patched/Makefile   2005-02-19 14:35:32.000000000 +0100
+diff -ru dnstop-20060424/Makefile dnstop-20060424-patched/Makefile
+--- dnstop-20060424/Makefile   2005-02-03 19:18:13.000000000 +0100
++++ dnstop-20060424-patched/Makefile   2006-05-02 23:25:29.000000000 +0200
 @@ -12,7 +12,7 @@
  all: $(PROG)
  
  $(PROG): $(PROG).o
 -      $(CC) $(CFLAGS) -o $@ $(PROG).o -lpcap -lcurses $(XTRALIBS)
-+      $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROG).o -lpcap -lncurses
++      $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROG).o -lpcap -lcurses
  
  clean:
        rm -f $(PROG) $(PROG).o $(PROG).core $(PROG).c~
-diff -ru dnstop-20050203/dnstop.c dnstop-20050203-patched/dnstop.c
---- dnstop-20050203/dnstop.c   2005-01-21 21:51:31.000000000 +0100
-+++ dnstop-20050203-patched/dnstop.c   2005-02-19 14:35:32.000000000 +0100
-@@ -26,6 +26,9 @@
+diff -ru dnstop-20060424/dnstop.c dnstop-20060424-patched/dnstop.c
+--- dnstop-20060424/dnstop.c   2005-04-05 22:43:53.000000000 +0200
++++ dnstop-20060424-patched/dnstop.c   2006-05-03 00:13:42.000000000 +0200
+@@ -25,6 +25,9 @@
+ #include <assert.h>
  #include <arpa/inet.h>
  #include <arpa/nameser.h>
++#ifdef __APPLE__
++#include <arpa/nameser_compat.h>
++#endif
  
-+#include <nameser.h>
-+#include <nameser8_compat.h>
-+
  #include <sys/socket.h>
  #include <net/if_arp.h>
- #include <net/if.h>
+@@ -1235,6 +1238,12 @@
+       fprintf(stderr, "pcap_setfilter failed\n");
+       exit(1);
+     }
++    x = pcap_setnonblock(pcap, 1, errbuf);
++    if (x < 0) {
++      fprintf(stderr, "pcap_setnonblock failed: %s\n", errbuf);
++      exit(1);
++    }
++
+     switch (pcap_datalink(pcap)) {
+     case DLT_EN10MB:
+       handle_datalink = handle_ether;
+@@ -1266,9 +1275,11 @@
+     if (interactive) {
+       init_curses();
+       while (0 == Quit) {
+-          if (readfile_state < 2)
+-              if (readfile_state || pcap_select(pcap, 1, 0))
+-                  x = pcap_dispatch(pcap, 50, handle_pcap, NULL);
++          if (readfile_state < 2) {
++              if (!readfile_state)
++                  pcap_select(pcap, 1, 0);
++              x = pcap_dispatch(pcap, 50, handle_pcap, NULL);
++          }
+           if (0 == x && 1 == readfile_state) {
+               /* block on keyboard until user quits */
+               readfile_state++;

Index: dnstop.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/net/dnstop.info,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- dnstop.info 29 Dec 2005 12:44:55 -0000      1.3
+++ dnstop.info 2 May 2006 22:22:51 -0000       1.4
@@ -1,12 +1,18 @@
 Package: dnstop
-Version: 20050405
-Revision: 22
+Version: 20060424
+Revision: 21
 Maintainer: Max Horn <[EMAIL PROTECTED]>
-BuildDepends: libncurses5, libpcap
-Depends: libpcap-shlibs, ncurses, libncurses5-shlibs
-GCC: 3.3
+BuildDepends: <<
+  libpcap,
+  libncurses5
+<<
+Depends: <<
+  libpcap-shlibs,
+  ncurses,
+  libncurses5-shlibs
+<<
 Source:  http://dnstop.measurement-factory.com/src/%n-%v.tar.gz
-Source-MD5: 408514bc835e8c69fe8e791ab79d3699
+Source-MD5: 795d53432f493336e144d2919455d527
 Patch: %n.patch
 CompileScript: make
 InstallScript: <<
@@ -16,6 +22,13 @@
   install -m 644 dnstop.8 %i/share/man/man8
 <<
 DocFiles: CHANGES LICENSE
-Description: Displays various tables of DNS traffic on your network 
+Description: Displays DNS traffic on your network 
+DescPort: <<
+ Due to the way pcap / the bdf devices work under OS X (or other BSDs), dnstop
+ requires a patch to make it work correctly when doing a live capture. Without
+ the patch, it won't update its display correctly.
+ See <http://www.tcpdump.org/lists/workers/2002/09/msg00033.html> for some
+ information, and also capture_loop.c from ethereal.
+<<
 Homepage: http://dnstop.measurement-factory.com/
 License: BSD



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to