ports/153775: net/ntop port has problems compiling rrdtool1.4
Michael Scheidell
scheidell at secnap.net
Fri Jan 7 21:00:13 UTC 2011
>Number: 153775
>Category: ports
>Synopsis: net/ntop port has problems compiling rrdtool1.4
>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: Fri Jan 07 21:00:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Michael Scheidell
>Release: 7.3 amd
>Organization:
SECNAP Network Security
>Environment:
7.3 amd, 7.3 i386, etc
>Description:
#1 Could never get rrdtool14 (from ../rrdtool) to compile
#2, when starting, was missing /var/db/ntop/rrd directory
this small patch changes rrdtool to use ../rrdtool12 and creates the needed rrd directory.
for some reason, even when I manually installed rrdtool12:
cd ../rrdtool12 && make install the build_depends didn't see it
(actually tested by making a ports package and trying to install from that also. syntax should work, but this patch should fix it)
and, ntop does not need the more complex (and uninstallable ) rrdtool14.
I didn't bump the ports version, since:
A) if you have it running, why upgrade?
B) hoping you spend more efforts on ntop 3.4 :-)
>How-To-Repeat:
try to install ntop.
>Fix:
diff -bBru /tmp/Makefile ./
--- /tmp/Makefile 2011-01-07 13:45:22.000000000 -0700
+++ ./Makefile 2011-01-07 13:44:54.000000000 -0700
@@ -24,7 +24,7 @@
LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm \
event-1.4:${PORTSDIR}/devel/libevent
-BUILD_DEPENDS= rrdtool>=1.2:${PORTSDIR}/databases/rrdtool \
+BUILD_DEPENDS= rrdtool>=1.2:${PORTSDIR}/databases/rrdtool12 \
geoiplookup:${PORTSDIR}/net/GeoIP
RUN_DEPENDS= dot:${PORTSDIR}/graphics/graphviz \
${LOCALBASE}/lib/X11/fonts/URW/a010013l.afm:${PORTSDIR}/x11-fonts/urwfonts
@@ -115,6 +115,7 @@
post-install:
@${MKDIR} ${DBDIR}/ntop
+ @${MKDIR} ${DBDIR}/ntop/rrd
@${CHOWN} -R nobody:nobody ${DBDIR}/ntop
@${INSTALL} -d ${ETCDIR}/l7-patterns
@cd ${WRKSRC}/l7-patterns/&&${COPYTREE_SHARE} . ${ETCDIR}/l7-patterns
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list