Index: Makefile
===================================================================
RCS file: /cvs/ports/net/darkstat/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile	2006/06/18 17:26:20	1.1.1.1
+++ Makefile	2006/07/10 16:34:30
@@ -2,10 +2,11 @@
 
 COMMENT=		"network statistics gatherer with graphs"
 
-DISTNAME=		darkstat-3.0.471
+DISTNAME=		darkstat-3.0.524
 CATEGORIES=		net www
 
 HOMEPAGE=		http://dmr.ath.cx/net/darkstat/
+MAINTAINER=		Chris Kuethe <ckuethe@openbsd.org>
 
 # BSD with some code GPL'ed
 PERMIT_PACKAGE_CDROM=	Yes
@@ -18,8 +19,6 @@
 EXTRACT_SUFX=		.tar.bz2
 
 CONFIGURE_STYLE=	gnu
-
-ALL_TARGET=		# Empty
 
 NO_REGRESS=		Yes
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/darkstat/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo	2006/06/18 17:26:20	1.1.1.1
+++ distinfo	2006/07/10 16:34:30
@@ -1,4 +1,4 @@
-MD5 (darkstat-3.0.471.tar.bz2) = be61f5cccf3d87a5b2f69ace8a60d766
-RMD160 (darkstat-3.0.471.tar.bz2) = 8d945d819fc3be819663ad2ec04239fc3fda015c
-SHA1 (darkstat-3.0.471.tar.bz2) = b7c9f36d267ce3d1657eb11fb82ad31c790ac863
-SIZE (darkstat-3.0.471.tar.bz2) = 69974
+MD5 (darkstat-3.0.524.tar.bz2) = f4a18ccb9c77c3d2317c1a041519a21e
+RMD160 (darkstat-3.0.524.tar.bz2) = 42380b23902cef4cc348fd1f736542dd17296b54
+SHA1 (darkstat-3.0.524.tar.bz2) = df4822961ee2320fb4d5eeaed1083f1a157478c2
+SIZE (darkstat-3.0.524.tar.bz2) = 74605
Index: patches/patch-cap_c
===================================================================
RCS file: patch-cap_c
diff -N patch-cap_c
--- /dev/null	Sat Aug 30 18:16:59 1997
+++ patch-cap_c	Mon Jul 10 16:34:30 2006
@@ -0,0 +1,26 @@
+$OpenBSD$
+--- cap.c.orig	Wed Jun 21 07:58:41 2006
++++ cap.c	Mon Jul 10 10:24:21 2006
+@@ -134,6 +134,22 @@ cap_init(const char *device, const char 
+       err(1, "ioctl(pcap_fd, BIOCSRTIMEOUT)"); }
+ #endif
+ 
++#ifdef BIOCSETWF
++{
++   /* Deny all writes to the socket */
++   struct bpf_insn bpf_wfilter[] = { BPF_STMT(BPF_RET+BPF_K, 0) };
++   int wf_len = sizeof(bpf_wfilter) / sizeof(struct bpf_insn);
++   struct bpf_program pr;
++
++   pr.bf_len = wf_len;
++   pr.bf_insns = bpf_wfilter;
++
++   if (ioctl(pcap_fd, BIOCSETWF, &pr) == -1)
++      err(1, "ioctl(pcap_fd, BIOCSETFW)");
++   verbosef("Filtered out BPF writes");
++}
++#endif
++
+ #ifdef BIOCLOCK
+    if (ioctl(pcap_fd, BIOCLOCK) == -1)
+       err(1, "ioctl(pcap_fd, BIOCLOCK)");
Index: patches/patch-dns_c
===================================================================
RCS file: patch-dns_c
diff -N patch-dns_c
--- /dev/null	Sat Aug 30 18:16:59 1997
+++ patch-dns_c	Mon Jul 10 16:34:30 2006
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- dns.c.orig	Sun Jul  2 11:26:45 2006
++++ dns.c	Sun Jul  2 11:26:58 2006
+@@ -39,7 +39,7 @@ union dns_reply {
+    struct {
+       in_addr_t ip;
+       int error;              /* h_errno, or 0 if no error */
+-      char name[];            /* the rest of the buffer is the name */
++      char *name;            /* the rest of the buffer is the name */
+    } hdr;
+ };
+ 
