svn commit: r563789 - in head/net-mgmt/smokeping: . files
Rodrigo Osorio
rodrigo at FreeBSD.org
Tue Feb 2 08:14:07 UTC 2021
Author: rodrigo
Date: Tue Feb 2 08:14:06 2021
New Revision: 563789
URL: https://svnweb.freebsd.org/changeset/ports/563789
Log:
net-mgmt/smokeping: fix mail loop issue
Integrate upstream patch[1] to fix mail loop issue #183[2].
This is a one-line patch without complexity who can be removed
as soon as the upstream releases a new version.
[1] https://github.com/oetiker/SmokePing/commit/e9004e8bbeb30d33778afaf70a5f8b95ff38d6ba
[2] https://github.com/oetiker/SmokePing/issues/183
PR: 253161
Submitted by: OlivierW <olivierw1+bugzilla-freebsd at hotmail.com>
Modified:
head/net-mgmt/smokeping/Makefile
head/net-mgmt/smokeping/files/patch-lib_Smokeping.pm
Modified: head/net-mgmt/smokeping/Makefile
==============================================================================
--- head/net-mgmt/smokeping/Makefile Tue Feb 2 07:50:22 2021 (r563788)
+++ head/net-mgmt/smokeping/Makefile Tue Feb 2 08:14:06 2021 (r563789)
@@ -3,7 +3,7 @@
PORTNAME= smokeping
PORTVERSION= 2.7.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt www
MAINTAINER= rodrigo at FreeBSD.org
Modified: head/net-mgmt/smokeping/files/patch-lib_Smokeping.pm
==============================================================================
--- head/net-mgmt/smokeping/files/patch-lib_Smokeping.pm Tue Feb 2 07:50:22 2021 (r563788)
+++ head/net-mgmt/smokeping/files/patch-lib_Smokeping.pm Tue Feb 2 08:14:06 2021 (r563789)
@@ -1,5 +1,14 @@
---- lib/Smokeping.pm.orig 2018-02-02 21:14:55 UTC
+--- lib/Smokeping.pm.orig 2021-02-01 12:05:21 UTC
+++ lib/Smokeping.pm
+@@ -1889,7 +1889,7 @@ sub check_alerts {
+ $gotalert = $match unless $gotalert;
+ my $edgetrigger = $alert->{edgetrigger} eq 'yes';
+ my $what;
+- if ($edgetrigger and $prevmatch != $match) {
++ if ($edgetrigger and ($prevmatch ? 0 : 1 ) != ($match ? 0 : 1)) {
+ $what = ($prevmatch == 0 ? "was raised" : "was cleared");
+ }
+ if (not $edgetrigger and $match) {
@@ -4306,7 +4306,7 @@ sub main (;$) {
if(defined $opt{'check'}) { verify_cfg($cfgfile); exit 0; }
if($opt{reload}) {
More information about the svn-ports-all
mailing list