ports/164248: sw-bug ports/ntop does not load py-mako
Michael Scheidell
scheidell at secnap.net
Tue Jan 17 16:00:26 UTC 2012
>Number: 164248
>Category: ports
>Synopsis: sw-bug ports/ntop does not load py-mako
>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 Jan 17 16:00:25 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Michael Scheidell
>Release: FreeBSD 7.4-RELEASE-p3 i386
>Organization:
SECNAP Network Security
>Environment:
lots of them.
>Description:
nmap needs py-mako to display Regional Host Traffic Maps
>How-To-Repeat:
nagigate to Summary, Traffic Maps, Region view and if you don't have py-mako installed, you get an error
>Fix:
left default Off, and did NOT do a portsbump, since this by default changes nothing.
you can portsbump if you like.
below patch:
- Adds knob for py-mako so OP can include py-mako dependency
--- nmap.txt begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/ntop/Makefile,v
retrieving revision 1.100
diff -u -u -r1.100 Makefile
--- Makefile 14 Jan 2012 18:00:18 -0000 1.100
+++ Makefile 17 Jan 2012 15:44:00 -0000
@@ -53,10 +53,12 @@
## Available knobs:
## WITH_PCAP_PORT: Use libpcap from ports.
## WITH_XMLDUMP: Enable XML Dump support.
+## WITH_MAKO: Enable Host Map, Region View (installs py-mako)
##
OPTIONS= PCAP_PORT "Use libpcap from ports." Off \
XMLDUMP "Enable XML Dump support." Off \
- JUMBO_FRAMES "Jumbo Frames. Experimental." Off
+ JUMBO_FRAMES "Jumbo Frames. Experimental." Off \
+ MAKO "Install py-mako for Host Map, Region View " Off
.include <bsd.port.pre.mk>
@@ -81,6 +83,10 @@
# see http://www.cyberciti.biz/faq/freebsd-jumbo-frames-networking-configration/
.endif
+.if defined(WITH_MAKO)
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako
+.endif
+
.if ${OSVERSION} < 700000
BROKEN= does not configure on 6.X
.endif
--- nmap.txt ends here ---
______________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r).
For Information please see http://www.spammertrap.com/
______________________________________________________________________
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list