Date: Tue, 2 Feb 2021 08:14:06 +0000 (UTC) From: Rodrigo Osorio <rodrigo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r563789 - in head/net-mgmt/smokeping: . files Message-ID: <202102020814.1128E63N095428@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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@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}) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102020814.1128E63N095428>