NetBSD Problem Report #38930

From www@NetBSD.org  Tue Jun 10 14:12:36 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id E5F6B63B91E
	for <gnats-bugs@gnats.netbsd.org>; Tue, 10 Jun 2008 14:12:36 +0000 (UTC)
Message-Id: <20080610141236.9CFC563B8BC@narn.NetBSD.org>
Date: Tue, 10 Jun 2008 14:12:36 +0000 (UTC)
From: bartosz.kuzma@gmail.com
Reply-To: bartosz.kuzma@gmail.com
To: gnats-bugs@NetBSD.org
Subject: net/darkstat updated to 3.0.708
X-Send-Pr-Version: www-1.0

>Number:         38930
>Category:       pkg
>Synopsis:       net/darkstat updated to 3.0.708
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 10 14:15:00 +0000 2008
>Closed-Date:    Wed Jun 11 13:29:13 +0000 2008
>Last-Modified:  Wed Jun 11 13:30:02 +0000 2008
>Originator:     Bartosz Kuzma
>Release:        
>Organization:
>Environment:
>Description:
Changes since 3.0.707:
 - Implement limiting of number of ports tracked per host,
   configurable on the commandline (--ports-max)
 - Optionally don't track high ports (--highest-port)
   Thanks Dennis!
 - Fix rare use-after-free resulting from hosts table reduction.
 - Make hosts limit configurable (--hosts-max)
 - Option to read from capfile as alternative to live capture
   (really only useful for development, benchmarking)
 - Add the sniffed interface name to HTML reports.
   Thanks Chris!

 - pkgsrc - add rc.d script
>How-To-Repeat:

>Fix:
Apply the following patch and create new file files/darkstat.sh.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/darkstat/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	14 Oct 2007 02:17:41 -0000	1.6
+++ Makefile	10 Jun 2008 14:07:24 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.6 2007/10/14 02:17:41 obache Exp $
 #

-DISTNAME=		darkstat-3.0.707
+DISTNAME=		darkstat-3.0.708
 CATEGORIES=		net
 MASTER_SITES=		http://dmr.ath.cx/net/darkstat/
 DIST_SUBDIR=		darkstat
@@ -18,6 +18,8 @@

 BUILDLINK_API_DEPENDS.libpcap+=	libpcap>=0.6.0

+RCD_SCRIPTS=		darkstat
+
 post-install:
 	${INSTALL_DATA_DIR} ${PREFIX}/share/darkstat
 	${INSTALL_DATA_DIR} ${PREFIX}/share/darkstat/chroot
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/net/darkstat/PLIST,v
retrieving revision 1.2
diff -u -r1.2 PLIST
--- PLIST	7 Oct 2006 07:49:01 -0000	1.2
+++ PLIST	10 Jun 2008 14:07:24 -0000
@@ -1,6 +1,7 @@
 @comment $NetBSD: PLIST,v 1.2 2006/10/07 07:49:01 obache Exp $
 man/man1/darkstat.1
 sbin/darkstat
+share/examples/rc.d/darkstat
 @exec ${MKDIR} %D/share/darkstat/chroot
 @dirrm share/darkstat/chroot
 @dirrm share/darkstat
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/darkstat/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo	14 Oct 2007 02:17:41 -0000	1.4
+++ distinfo	10 Jun 2008 14:07:24 -0000
@@ -1,5 +1,5 @@
 $NetBSD: distinfo,v 1.4 2007/10/14 02:17:41 obache Exp $

-SHA1 (darkstat/darkstat-3.0.707.tar.bz2) = a5df521ffbd801b32cb52aaa846fea3448f5750f
-RMD160 (darkstat/darkstat-3.0.707.tar.bz2) = 91a19ef837a58f6b464cc24c4dc34bcb8ef15a59
-Size (darkstat/darkstat-3.0.707.tar.bz2) = 90459 bytes
+SHA1 (darkstat/darkstat-3.0.708.tar.bz2) = 3e6185a5a473fdd5d50a15ef717f3c44f62ece33
+RMD160 (darkstat/darkstat-3.0.708.tar.bz2) = c3061997a7070c6da9c99bdec67c90643672952b
+Size (darkstat/darkstat-3.0.708.tar.bz2) = 91765 bytes


files/darkstat.sh

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD$
#

# PROVIDE: darkstat
# REQUIRE: NETWORKING named

. /etc/rc.subr

name="darkstat"
rcvar=$name
command="@PREFIX@/sbin/${name}"

load_rc_config $name
run_rc_command "$1"

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Wed, 11 Jun 2008 13:29:13 +0000
State-Changed-Why:
Patch applied and some modification for DESTDIR support.  Thanks!


From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/38930 CVS commit: pkgsrc/net/darkstat
Date: Wed, 11 Jun 2008 13:27:32 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Wed Jun 11 13:27:32 UTC 2008

 Modified Files:
 	pkgsrc/net/darkstat: Makefile PLIST distinfo

 Log Message:
 Update darkstat to 3.0.708.
 Based on MAINTAINER update request in  PR 38930.
 While here, add DESTDIR support.

 Changes since 3.0.707:
  - Implement limiting of number of ports tracked per host,
    configurable on the commandline (--ports-max)
  - Optionally don't track high ports (--highest-port)
    Thanks Dennis!
  - Fix rare use-after-free resulting from hosts table reduction.
  - Make hosts limit configurable (--hosts-max)
  - Option to read from capfile as alternative to live capture
    (really only useful for development, benchmarking)
  - Add the sniffed interface name to HTML reports.
    Thanks Chris!

  - pkgsrc - add rc.d script


 To generate a diff of this commit:
 cvs rdiff -r1.6 -r1.7 pkgsrc/net/darkstat/Makefile
 cvs rdiff -r1.2 -r1.3 pkgsrc/net/darkstat/PLIST
 cvs rdiff -r1.4 -r1.5 pkgsrc/net/darkstat/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.