aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/nagiosgraph/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-04-24 17:20:53 +0800
committermiwi <miwi@FreeBSD.org>2007-04-24 17:20:53 +0800
commit1245ad1e4971b7bd16ae8af4a4370388962d8b52 (patch)
tree26d53f2fcbde7f2df37123343f295ed89d7c82df /net-mgmt/nagiosgraph/files
parent17ca7f582bda8c315d3911ca6cf5d0b68307b807 (diff)
downloadfreebsd-ports-gnome-1245ad1e4971b7bd16ae8af4a4370388962d8b52.tar.gz
freebsd-ports-gnome-1245ad1e4971b7bd16ae8af4a4370388962d8b52.tar.zst
freebsd-ports-gnome-1245ad1e4971b7bd16ae8af4a4370388962d8b52.zip
- Fix build
PR: 112025 Submitted by: Denis Shaposhnikov <dsh@vlink.ru> (maintainer)
Diffstat (limited to 'net-mgmt/nagiosgraph/files')
-rw-r--r--net-mgmt/nagiosgraph/files/patch-insert.pl22
1 files changed, 22 insertions, 0 deletions
diff --git a/net-mgmt/nagiosgraph/files/patch-insert.pl b/net-mgmt/nagiosgraph/files/patch-insert.pl
new file mode 100644
index 000000000000..252d0e4f0d0a
--- /dev/null
+++ b/net-mgmt/nagiosgraph/files/patch-insert.pl
@@ -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