- fix broken layout in mrtg

PR:		ports/162224
Submitted by:	Alexey V. Panfilov <ports@subnets.ru> (maintainer)
Feature safe:	yes
This commit is contained in:
Olli Hauer 2011-11-13 18:41:50 +00:00
parent 9b8c49fab3
commit 46d5bb1c08
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285713
2 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= mrtg
PORTVERSION= 2.17.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net-mgmt ipv6
MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \
@ -79,10 +80,14 @@ PORTEXAMPLES= *
.if defined(WITH_IPV6)
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-Socket-INET6
.endif
.if defined(WITH_SNMP)
RUN_DEPENDS+= ${SITE_PERL}/Net/SNMP.pm:${PORTSDIR}/net-mgmt/p5-Net-SNMP
.endif
post-extract:
@${FIND} ${WRKSRC} -type f -name "*.orig" -delete
post-patch:
@${RM} ${WRKSRC}/lib/mrtg2/BER.pm ${WRKSRC}/lib/mrtg2/SNMP_*.pm

View File

@ -0,0 +1,14 @@
PR: ports/162224
Fix: http://oss.oetiker.ch/mrtg-trac/changeset/349
===================================================================
--- ./bin/mrtg.orig 2011-02-18 15:34:27.000000000 +0100
+++ ./bin/mrtg 2011-11-13 19:11:44.000000000 +0100
@@ -1748,7 +1748,7 @@
print HTML "
<!-- Begin $sample{$peri} -->
<div class=\"graph\">
- <h2>".&$LOC("$sample{$peri}").&$LOC(' Average\)')."</h2>
+ <h2>".&$LOC("$sample{$peri}").&$LOC(' Average)')."</h2>
<img src=\"$imagepath$router-$full{$peri}.${main::GRAPHFMT}\" title=\"$full{$peri}\" alt=\"$full{$peri}\" />
<table>
<tr>