ports/154800: [PATCH] net/ntop missing some run depends

M scheidell at secnap.net
Tue Feb 15 14:20:09 UTC 2011


>Number:         154800
>Category:       ports
>Synopsis:       [PATCH] net/ntop missing some run depends
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 15 14:20:04 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     M
>Release:        7.3 amd and 8.1 amd
>Organization:
SECNAP Network Security
>Environment:
lots of them
>Description:
Thanks for getting ntop up to 4.0!.  ntop is great, and the 3.x was 'spotty'

ntop is missing some run depends, so, if you 'package' ntop, it doesn't draw in all the dependencies it needs.

also, and I could not understand how to fix:

/var/db/ntop is NOT chowned to nobody like it should, but makefile looks ok.

>How-To-Repeat:
system1:

cd /usr/ports/net/ntop

make package
copy tbz to system2:

pkg_add ntop*


start ntop on machine 2:


you get:


 Shared object "libGeoIP.so.5" not found, required by "ntop"

/libexec/ld-elf.so.1: Shared object "librrd_th.so.5" not found, required by "ntop"

once you fix that, you get this:

Feb 15 08:54:41 scanner2 ntop[66502]:   **ERROR** RRD: Disabled - unable to create base directory (err 13, /var/db/ntop/rrd)
Feb 15 08:55:21 scanner2 ntop[66502]:   **ERROR** calloc(1,80) @ util.c:6361 returned NULL [no more memory?]


>Fix:
fix problem #1 with this patch.

problem #2? don't know, chown by hand!

 diff -bBru /tmp/Makefile Makefile 
--- /tmp/Makefile	2011-02-11 08:34:48.000000000 -0500
+++ Makefile	2011-02-15 08:57:35.000000000 -0500
@@ -7,6 +7,7 @@
 
 PORTNAME=	ntop
 PORTVERSION=	4.0.1
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.gz
@@ -19,7 +20,9 @@
 BUILD_DEPENDS=	rrdtool>=1.2:${PORTSDIR}/databases/rrdtool \
 		geoiplookup:${PORTSDIR}/net/GeoIP
 RUN_DEPENDS=	dot:${PORTSDIR}/graphics/graphviz \
-		${LOCALBASE}/lib/X11/fonts/URW/a010013l.afm:${PORTSDIR}/x11-fonts/urwfonts
+		${LOCALBASE}/lib/X11/fonts/URW/a010013l.afm:${PORTSDIR}/x11-fonts/urwfonts \
+		rrdtool>=1.2:${PORTSDIR}/databases/rrdtool \
+		geoiplookup:${PORTSDIR}/net/GeoIP
 
 DBDIR?=		/var/db
 


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list