From vd@datamax.bg  Fri Jun  3 09:16:02 2005
Return-Path: <vd@datamax.bg>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 14F2516A41C
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 Jun 2005 09:16:02 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AED9443D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 Jun 2005 09:16:01 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1])
	by jengal.datamax.bg (Postfix) with QMQP id A6C9187CD
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  3 Jun 2005 12:16:00 +0300 (EEST)
Received: (nullmailer pid 83656 invoked by uid 1004);
	Fri, 03 Jun 2005 09:16:00 -0000
Message-Id: <20050603091600.GA83390@sinanica.bg.datamax>
Date: Fri, 3 Jun 2005 12:16:00 +0300
From: Vasil Dimov <vd@datamax.bg>
Reply-To: vd@datamax.bg
To: FreeBSD-gnats-submit@freebsd.org
Subject: net-mgmt/iftop: Avoid buggy fork resolver, take maintainership
X-Send-Pr-Version: 3.113

>Number:         81830
>Category:       ports
>Synopsis:       net-mgmt/iftop: Avoid buggy fork resolver, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jylefort
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 03 09:20:01 GMT 2005
>Closed-Date:    Wed Jun 08 11:59:58 GMT 2005
>Last-Modified:  Wed Jun 08 11:59:58 GMT 2005
>Originator:     Vasil Dimov
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
DataMax
>Environment:

System: FreeBSD sinanica.bg.datamax 5.4-STABLE FreeBSD 5.4-STABLE #6: Tue May 10 12:46:25 EEST 2005     root@sinanica.bg.datamax:/usr/obj/usr/src/sys/SINANICA-SMP  i386

>Description:

* force iftop to use its netdb_1thread resolver, instead of the buggy
  "fork" one  which leaves 2 alive processes (holding /dev/bpf?) after
  exiting
* remove voodoo.oberon.net from MASTER_SITES. Archive is unfetchable
  from there.
* change comment and description to match iftop.spec
* take maintainership

>How-To-Repeat:

>Fix:

--- iftop_resolver.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/iftop/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile	21 Apr 2005 17:44:07 -0000	1.13
+++ Makefile	3 Jun 2005 08:43:46 -0000
@@ -7,15 +7,16 @@
 
 PORTNAME=	iftop
 PORTVERSION=	0.16
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
-MASTER_SITES=	http://www.ex-parrot.com/~pdw/iftop/download/ \
-		http://voodoo.oberon.net/
+MASTER_SITES=	http://www.ex-parrot.com/~pdw/iftop/download/
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Network utility for real-time bandwidth usage information
+MAINTAINER=	vd@datamax.bg
+COMMENT=	Display bandwidth usage on an interface by host
 
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ARGS=	--with-resolver=netdb_1thread
 USE_REINPLACE=	yes
 
 MAN8=		iftop.8
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/net-mgmt/iftop/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr	1 Jun 2003 01:53:14 -0000	1.1
+++ pkg-descr	3 Jun 2005 08:43:46 -0000
@@ -1,4 +1,13 @@
-iftop provides real-time bandwidth usage information on a
-specified interface, listed by host pairs.
+iftop listens to network traffic on a named interface,  or
+on  the  first  interface  it can find which looks like an
+external interface if none is specified,  and  displays  a
+table of current bandwidth usage by pairs of hosts.  iftop
+must be run with sufficient  permissions  to  monitor  all
+network  traffic  on  the  interface; see pcap(3) for more
+information, but on most systems this means that  it  must
+be run as root.
 
 WWW: http://www.ex-parrot.com/~pdw/iftop/
+
+- Vasil Dimov
+vd@datamax.bg
--- iftop_resolver.diff ends here ---
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jylefort 
Responsible-Changed-By: jylefort 
Responsible-Changed-When: Fri Jun 3 13:14:29 GMT 2005 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81830 
State-Changed-From-To: open->closed 
State-Changed-By: jylefort 
State-Changed-When: Wed Jun 8 11:59:53 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81830 
>Unformatted:
