Add a patch taken from CVS to fix EXEC actions handling with monitoring
thresholds, and bump PORTREVISION.
This commit is contained in:
parent
0de8d1407f
commit
135b9bec7f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189784
2 changed files with 20 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= cricket
|
||||
PORTVERSION= 1.0.5
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
|
19
net-mgmt/cricket/files/patch-lib-Monitor.pm
Normal file
19
net-mgmt/cricket/files/patch-lib-Monitor.pm
Normal file
|
@ -0,0 +1,19 @@
|
|||
--- lib/Monitor.pm.orig 2004/02/19 15:58:07 1.31
|
||||
+++ lib/Monitor.pm 2007/01/21 04:17:22 1.32
|
||||
@@ -526,14 +526,15 @@
|
||||
sub alarmExec {
|
||||
my ($args, $action) = @_;
|
||||
my $alarmArgs = $$args[7];
|
||||
- system($alarmArgs->[0]);
|
||||
|
||||
if ($action eq 'ADD') {
|
||||
+ system($alarmArgs->[0]);
|
||||
Info("Monitor: Triggered event with system command '".
|
||||
$alarmArgs->[0]."' .");
|
||||
}
|
||||
|
||||
else {
|
||||
+ system($alarmArgs->[1]);
|
||||
Info("Monitor: Cleared event with shell command '".
|
||||
$alarmArgs->[1]."' .");
|
||||
}
|
Loading…
Reference in a new issue