- 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:
parent
9b8c49fab3
commit
46d5bb1c08
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285713
@ -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
|
||||
|
||||
|
14
net-mgmt/mrtg/files/patch-bin__mrtg
Normal file
14
net-mgmt/mrtg/files/patch-bin__mrtg
Normal 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>
|
Loading…
Reference in New Issue
Block a user