diff options
author | miwi <miwi@FreeBSD.org> | 2007-04-24 17:20:53 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-04-24 17:20:53 +0800 |
commit | 1245ad1e4971b7bd16ae8af4a4370388962d8b52 (patch) | |
tree | 26d53f2fcbde7f2df37123343f295ed89d7c82df /net-mgmt | |
parent | 17ca7f582bda8c315d3911ca6cf5d0b68307b807 (diff) | |
download | freebsd-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')
-rw-r--r-- | net-mgmt/nagiosgraph/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/nagiosgraph/files/patch-insert.pl | 22 |
2 files changed, 23 insertions, 1 deletions
diff --git a/net-mgmt/nagiosgraph/Makefile b/net-mgmt/nagiosgraph/Makefile index 4eb1a15394a9..387b629947d6 100644 --- a/net-mgmt/nagiosgraph/Makefile +++ b/net-mgmt/nagiosgraph/Makefile @@ -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 --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 |