ports/112025: Update port: net-mgmt/nagiosgraph (add fix for Nagios 2.9)
Denis Shaposhnikov
dsh at vlink.ru
Mon Apr 23 10:40:03 UTC 2007
>Number: 112025
>Category: ports
>Synopsis: Update port: net-mgmt/nagiosgraph (add fix for Nagios 2.9)
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 23 10:40:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Denis Shaposhnikov
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD neva.vlink.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Fri Mar 16 09:20:13 MSK 2007 dsh at neva.vlink.ru:/var/FreeBSD/obj/var/FreeBSD/src/sys/MYNERIC i386
>Description:
I've added a patch to remove perfdata.log after processing it. This
prevent unlimited growing of this file because nobody else delete it.
>How-To-Repeat:
>Fix:
diff -Nru --exclude=.svn nagiosgraph.orig/Makefile nagiosgraph/Makefile
--- nagiosgraph.orig/Makefile Mon Apr 23 14:34:11 2007
+++ nagiosgraph/Makefile Mon Apr 23 08:41:08 2007
@@ -7,7 +7,7 @@
PORTNAME= nagiosgraph
PORTVERSION= 0.8.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff -Nru --exclude=.svn nagiosgraph.orig/files/patch-insert.pl nagiosgraph/files/patch-insert.pl
--- nagiosgraph.orig/files/patch-insert.pl Thu Jan 1 03:00:00 1970
+++ nagiosgraph/files/patch-insert.pl Mon Apr 23 08:41:08 2007
@@ -0,0 +1,22 @@
+Index: insert.pl
+===================================================================
+--- insert.pl (.../vendor/nagiosgraph/0.8.2/insert.pl) (revision 1211)
++++ insert.pl (.../trunk/src/nagiosgraph/insert.pl) (revision 1211)
+@@ -148,9 +148,14 @@
+ if ( $ARGV[0] ) {
+ @inputlines = $ARGV[0];
+ } elsif ( defined $Config{perflog} ) {
+- open PERFLOG, $Config{perflog};
+- @inputlines = <PERFLOG>;
+- close PERFLOG
++ if (-s $Config{perflog}) {
++ my $worklog = $Config{perflog} . ".nagiosgraph";
++ rename($Config{perflog}, $worklog);
++ open PERFLOG, $worklog;
++ @inputlines = <PERFLOG>;
++ close PERFLOG;
++ unlink($worklog);
++ }
+ }
+
+ # Quit if there are no data to process
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list