[packages/smokeping] Up to 2.9.0
arekm
arekm at pld-linux.org
Thu Nov 19 21:46:53 CET 2026
commit 38ee835269c7d4ed72c95308532a16900a579e33
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 19 21:46:11 2026 +0100
Up to 2.9.0
Backport upstream fixes for rrdtool 1.10 graph COMMENT escaping, the
SSH probe with OpenSSH 10 and AnotherCurl with curl 8. Accept
LC_ALL=C.UTF-8, which rpm builds export. Drop the duplicate
self-trigger rejected by rpm 6.
anothercurl-help-all.patch | 34 +++++++++++++++++++++++++
fix-paths.patch | 61 +++++++++++++++++++++++----------------------
locale-c-utf8.patch | 15 +++++++++++
rrdtool-escape-colons.patch | 55 ++++++++++++++++++++++++++++++++++++++++
smokeping.spec | 36 +++++++++++---------------
ssh-probe-no-dsa.patch | 45 +++++++++++++++++++++++++++++++++
6 files changed, 195 insertions(+), 51 deletions(-)
---
diff --git a/smokeping.spec b/smokeping.spec
index e35df61..f82cebb 100644
--- a/smokeping.spec
+++ b/smokeping.spec
@@ -1,12 +1,12 @@
Summary: Smokeping - a latency grapher that uses rrdtool
Summary(pl.UTF-8): Smokeping - narzędzie do tworzenia wykresów opóźnień sieci
Name: smokeping
-Version: 2.8.2
+Version: 2.9.0
Release: 1
License: GPL v2+
Group: Networking/Utilities
-Source0: http://oss.oetiker.ch/smokeping/pub/%{name}-%{version}.tar.gz
-# Source0-md5: cce2bf3f59736ecf77e59d64db60e3fb
+Source0: https://oss.oetiker.ch/smokeping/pub/%{name}-%{version}.tar.gz
+# Source0-md5: edcdc8427f426dbb057523d1ecf74956
Source1: %{name}.init
Source2: %{name}-apache.conf
Source3: %{name}-config
@@ -15,8 +15,12 @@ Source5: %{name}.tmpfiles
Source6: %{name}-httpd.conf
Patch0: fix-paths.patch
Patch1: no-thirdparty.patch
-URL: http://oss.oetiker.ch/smokeping/
-BuildRequires: autoconf
+Patch2: rrdtool-escape-colons.patch
+Patch3: ssh-probe-no-dsa.patch
+Patch4: anothercurl-help-all.patch
+Patch5: locale-c-utf8.patch
+URL: https://oss.oetiker.ch/smokeping/
+BuildRequires: autoconf >= 2.71
BuildRequires: automake
BuildRequires: perl-Config-Grammar
BuildRequires: perl-rrdtool
@@ -24,7 +28,6 @@ BuildRequires: perl-tools-pod
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
-Requires(post): sed >= 4.0
Requires(post,preun): /sbin/chkconfig
Requires(postun): /usr/sbin/groupdel
Requires(postun): /usr/sbin/userdel
@@ -37,7 +40,6 @@ Requires(pre): /usr/sbin/usermod
Requires(postun): findutils
Requires: perl-Config-Grammar
Requires: rc-scripts >= 0.4.1.23
-Requires: rrdtool >= 1.2
Suggests: bind-utils
Suggests: curl
Suggests: echoping
@@ -100,6 +102,10 @@ Interfejs WWW (CGI) do smokepinga.
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
#sed -i -e 's,^Net::.*$,,' PERL_MODULES
@@ -134,6 +140,8 @@ rm -rf $RPM_BUILD_ROOT/etc/smokeping/examples
mv $RPM_BUILD_ROOT%{_prefix}/lib/{*.pm,Smokeping} $RPM_BUILD_ROOT%{_datadir}/%{name}
mv $RPM_BUILD_ROOT{%{_prefix}/htdocs/{css,js},%{_cgi_bindir}}
+# exec wrapper for upstream's layout (bin/smokeping_cgi); smokeping.cgi is installed directly
+rm $RPM_BUILD_ROOT%{_prefix}/htdocs/smokeping.fcgi.dist
mv $RPM_BUILD_ROOT%{_bindir}/smokeping_cgi $RPM_BUILD_ROOT%{_cgi_bindir}/smokeping.cgi
mv $RPM_BUILD_ROOT%{_mandir}/man1/{smokeping_cgi.1,smokeping.cgi.1}
@@ -187,20 +195,6 @@ fi
%triggerun cgi -- lighttpd
%webapp_unregister lighttpd %{_webapp}
-%triggerpostun -- %{name} < 2.0.5-0.3
-# we put trigger on main package, because we can't trigger in new package
-# this will create .rpmnew files when one installs -cgi package. but that's more than okay
-if [ -f /etc/httpd/httpd.conf/99_%{name}.conf.rpmsave ]; then
- install -d %{_wwwconfdir}
- mv -f /etc/httpd/httpd.conf/99_%{name}.conf.rpmsave %{_wwwconfdir}/httpd.conf
-fi
-
-%service -q httpd reload
-
-%banner -e %{name} << EOF
-The CGI program is available as %{name}-cgi package.
-EOF
-
%triggerpostun -- %{name} < 2.4.2-3
find /var/lib/smokeping/rrd -type f -user root -group root -name \*.rrd -mtime -7 -exec chown smokeping \{\} \;
find /var/lib/smokeping/rrd -type d -user root -group root -exec chown smokeping \{\} \;
diff --git a/anothercurl-help-all.patch b/anothercurl-help-all.patch
new file mode 100644
index 0000000..95e9b3f
--- /dev/null
+++ b/anothercurl-help-all.patch
@@ -0,0 +1,34 @@
+From 58fe1afc1a46a67828c77034ceb09c2a13bcd9f5 Mon Sep 17 00:00:00 2001
+From: "Avinash H. Duduskar" <2946372+Strykar at users.noreply.github.com>
+Date: Tue, 4 Nov 2025 17:41:06 +0530
+Subject: [PATCH] Update curl help command to include 'all' option (#456)
+
+* Update curl help command to include 'all' option
+
+Replace the help invocation in AnotherCurl.pm's test_usage method from --help to --help all as done for Curl.pm - https://github.com/oetiker/SmokePing/commit/3a290ee5e603782c5ba3bc4ec7294c8971cc88c4#diff-d824598c322769fb5417e2cd01c675df6c77eaec0deb3b17b61eb30738252568R220
+
+Fixes https://github.com/oetiker/SmokePing/issues/442
+
+* Fix AnotherCurl.pm to use --help all
+
+---------
+
+Co-authored-by: Tobias Oetiker <tobi at oetiker.ch>
+---
+ CHANGES | 1 +
+ lib/Smokeping/probes/AnotherCurl.pm | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/lib/Smokeping/probes/AnotherCurl.pm b/lib/Smokeping/probes/AnotherCurl.pm
+index 952197c1..f18a3673 100644
+--- a/lib/Smokeping/probes/AnotherCurl.pm
++++ b/lib/Smokeping/probes/AnotherCurl.pm
+@@ -216,7 +216,7 @@ sub test_usage {
+
+ my $arghashref = $self->features;
+ my %arghash = %$arghashref;
+- my $curl_man = `$bin --help`;
++ my $curl_man = `$bin --help all`;
+
+ for my $feature (keys %arghash) {
+ next if $curl_man =~ /\Q$arghash{$feature}/;
diff --git a/fix-paths.patch b/fix-paths.patch
index 892095a..b144626 100644
--- a/fix-paths.patch
+++ b/fix-paths.patch
@@ -1,6 +1,6 @@
-diff -ur smokeping-2.8.2.org/bin/smokeinfo smokeping-2.8.2/bin/smokeinfo
---- smokeping-2.8.2.org/bin/smokeinfo 2021-08-10 12:00:33.000000000 +0200
-+++ smokeping-2.8.2/bin/smokeinfo 2023-04-02 18:16:09.223051686 +0200
+diff -ur smokeping-2.9.0.org/bin/smokeinfo smokeping-2.9.0/bin/smokeinfo
+--- smokeping-2.9.0.org/bin/smokeinfo 2025-02-19 14:45:40.000000000 +0100
++++ smokeping-2.9.0/bin/smokeinfo 2026-11-19 21:30:55.302160766 +0100
@@ -2,8 +2,7 @@
use strict;
use warnings;
@@ -11,9 +11,9 @@ diff -ur smokeping-2.8.2.org/bin/smokeinfo smokeping-2.8.2/bin/smokeinfo
use Smokeping::Info;
use Getopt::Long 2.25 qw(:config no_ignore_case);
-diff -ur smokeping-2.8.2.org/bin/smokeping smokeping-2.8.2/bin/smokeping
---- smokeping-2.8.2.org/bin/smokeping 2021-08-13 08:11:39.000000000 +0200
-+++ smokeping-2.8.2/bin/smokeping 2023-04-02 18:16:09.223051686 +0200
+diff -ur smokeping-2.9.0.org/bin/smokeping smokeping-2.9.0/bin/smokeping
+--- smokeping-2.9.0.org/bin/smokeping 2025-02-19 14:45:40.000000000 +0100
++++ smokeping-2.9.0/bin/smokeping 2026-11-19 21:30:55.302398489 +0100
@@ -4,13 +4,11 @@
use strict;
use warnings;
@@ -30,9 +30,9 @@ diff -ur smokeping-2.8.2.org/bin/smokeping smokeping-2.8.2/bin/smokeping
=head1 NAME
-diff -ur smokeping-2.8.2.org/bin/smokeping_cgi smokeping-2.8.2/bin/smokeping_cgi
---- smokeping-2.8.2.org/bin/smokeping_cgi 2021-08-13 08:11:39.000000000 +0200
-+++ smokeping-2.8.2/bin/smokeping_cgi 2023-04-02 18:16:58.269718358 +0200
+diff -ur smokeping-2.9.0.org/bin/smokeping_cgi smokeping-2.9.0/bin/smokeping_cgi
+--- smokeping-2.9.0.org/bin/smokeping_cgi 2025-02-19 14:45:40.000000000 +0100
++++ smokeping-2.9.0/bin/smokeping_cgi 2026-11-19 21:30:55.302580259 +0100
@@ -4,9 +4,7 @@
use strict;
use warnings;
@@ -53,21 +53,22 @@ diff -ur smokeping-2.8.2.org/bin/smokeping_cgi smokeping-2.8.2/bin/smokeping_cgi
while (my $q = new CGI::Fast) {
-diff -ur smokeping-2.8.2.org/bin/tSmoke smokeping-2.8.2/bin/tSmoke
---- smokeping-2.8.2.org/bin/tSmoke 2021-08-13 08:11:39.000000000 +0200
-+++ smokeping-2.8.2/bin/tSmoke 2023-04-02 18:16:09.223051686 +0200
-@@ -52,9 +52,7 @@
+diff -ur smokeping-2.9.0.org/bin/tSmoke smokeping-2.9.0/bin/tSmoke
+--- smokeping-2.9.0.org/bin/tSmoke 2025-02-19 14:45:40.000000000 +0100
++++ smokeping-2.9.0/bin/tSmoke 2026-11-19 21:31:02.139153009 +0100
+@@ -52,10 +52,7 @@
#
# Point the lib variables to your implementation
-use lib (split /:/, q{}); # PERL5LIB
--use FindBin;use lib "$FindBin::RealBin/../lib";use lib "$FindBin::RealBin/../thirdparty/lib/perl5"; # LIBDIR
+-use FindBin;
+-use lib "$FindBin::RealBin/../lib";use lib "$FindBin::RealBin/../thirdparty/lib/perl5"; # LIBDIR
-
+use lib "/usr/share/smokeping";
use Smokeping;
use Net::SMTP;
-@@ -63,7 +61,7 @@
+@@ -64,7 +61,7 @@
use RRDs;
# Point to your Smokeping config file
@@ -76,21 +77,21 @@ diff -ur smokeping-2.8.2.org/bin/tSmoke smokeping-2.8.2/bin/tSmoke
# global variables
my $cfg;
-diff -ur smokeping-2.8.2.org/etc/basepage.html.dist smokeping-2.8.2/etc/basepage.html.dist
---- smokeping-2.8.2.org/etc/basepage.html.dist 2019-09-23 09:46:17.000000000 +0200
-+++ smokeping-2.8.2/etc/basepage.html.dist 2023-04-02 18:16:09.226385019 +0200
+diff -ur smokeping-2.9.0.org/etc/basepage.html.dist smokeping-2.9.0/etc/basepage.html.dist
+--- smokeping-2.9.0.org/etc/basepage.html.dist 2025-02-19 14:42:28.000000000 +0100
++++ smokeping-2.9.0/etc/basepage.html.dist 2026-11-19 21:31:02.145564395 +0100
@@ -4,8 +4,8 @@
+ <link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH1gQSFA8qQC+y8wAAAB10RVh0Q29tbWVudABDcmVhdGVkIHdpdGggVGhlIEdJTVDvZCVuAAABd0lEQVQoz5WSy07CQBSGTzuF6Y1buQSiCYSgYli7MC54AZc+gC/CE7kzrPQBjDsNIdF4I8oCwr1gO51OOy4aAbGS+K/OTM6X85/5R2g0GvAfSesHjPyj3LyasrIKxch3fXHiSN0Fvv4wbCZuAobsnld7Scw4wIhEhiSCEc/IbgqzZicTMuG0NEpi9jhRLzuZOUXBJRK4ITOfr1yIy6oYIwDQ7KSX3QDgcWFgR9ZtrwCLIQAoJ8j2pVG9Xg8qDsJe0j5MWcW4g5FvMUQ8cRvQXeAplXY0mlfpftI+zpu1tBURed/CHhdCAADoWfiml3gxlYUraZKXVdxKwq6lPx8mqvM97QcQaEalV1O57cffTGVXdzKKa8isNdI3l/6tzly+eM4BQDlOQl4pVEECLDSHUowUNCqsdedVelYZAEB7rIUkfVKYHaQs4okTIjEuJKJePMoCY1fvRghwN9R9gIJKs4orCtxm6Gmq3I/01lDnob+1PdbWR/+lL5mtm+fskIeBAAAAAElFTkSuQmCC" rel="icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width, initial-scale=1">
- <META http-equiv="Refresh" content="<##step##>">
<title>SmokePing Latency Page for <##title##></title>
- <link rel="stylesheet" type="text/css" href="css/smokeping-print.css" media="print">
- <link rel="stylesheet" type="text/css" href="css/smokeping-screen.css" media="screen">
+ <link rel="stylesheet" type="text/css" href="/smokeping/css/smokeping-print.css" media="print">
+ <link rel="stylesheet" type="text/css" href="/smokeping/css/smokeping-screen.css" media="screen">
- </head>
- <body id="body">
-
-@@ -47,10 +47,10 @@
+ <script>
+ window.options = {
+ step: <##step##>
+@@ -56,10 +56,10 @@
<p><small>Maintained by <a href="mailto:<##contact##>"><##owner##></a></small></p>
</div>
@@ -105,9 +106,9 @@ diff -ur smokeping-2.8.2.org/etc/basepage.html.dist smokeping-2.8.2/etc/basepage
</body>
</html>
-diff -ur smokeping-2.8.2.org/lib/Smokeping/Examples.pm smokeping-2.8.2/lib/Smokeping/Examples.pm
---- smokeping-2.8.2.org/lib/Smokeping/Examples.pm 2011-10-05 11:51:46.000000000 +0200
-+++ smokeping-2.8.2/lib/Smokeping/Examples.pm 2023-04-02 18:16:42.016385025 +0200
+diff -ur smokeping-2.9.0.org/lib/Smokeping/Examples.pm smokeping-2.9.0/lib/Smokeping/Examples.pm
+--- smokeping-2.9.0.org/lib/Smokeping/Examples.pm 2025-02-19 14:42:28.000000000 +0100
++++ smokeping-2.9.0/lib/Smokeping/Examples.pm 2026-11-19 21:30:55.303681510 +0100
@@ -12,7 +12,7 @@
This module generates L<smokeping_examples> and the example
configuration files distributed with Smokeping. It is supposed to be
@@ -126,10 +127,10 @@ diff -ur smokeping-2.8.2.org/lib/Smokeping/Examples.pm smokeping-2.8.2/lib/Smoke
configuration template in the Smokeping distribution so that the example
files are complete.
-diff -ur smokeping-2.8.2.org/lib/Smokeping.pm smokeping-2.8.2/lib/Smokeping.pm
---- smokeping-2.8.2.org/lib/Smokeping.pm 2021-08-13 08:19:27.000000000 +0200
-+++ smokeping-2.8.2/lib/Smokeping.pm 2023-04-02 18:16:09.226385019 +0200
-@@ -3871,7 +3871,7 @@
+diff -ur smokeping-2.9.0.org/lib/Smokeping.pm smokeping-2.9.0/lib/Smokeping.pm
+--- smokeping-2.9.0.org/lib/Smokeping.pm 2025-02-19 14:45:53.000000000 +0100
++++ smokeping-2.9.0/lib/Smokeping.pm 2026-11-19 21:30:55.304209182 +0100
+@@ -3930,7 +3930,7 @@
*** Probes ***
+FPing
diff --git a/locale-c-utf8.patch b/locale-c-utf8.patch
new file mode 100644
index 0000000..2282ef5
--- /dev/null
+++ b/locale-c-utf8.patch
@@ -0,0 +1,15 @@
+Smokeping dies under LC_ALL=C.UTF-8 (set by rpm build scripts and many containers)
+although that locale formats numbers exactly like C.
+
+--- smokeping-2.9.0.org/lib/Smokeping.pm 2025-02-19 14:45:53.000000000 +0100
++++ smokeping-2.9.0/lib/Smokeping.pm 2026-11-19 21:34:37.679995235 +0100
+@@ -38,7 +38,8 @@
+ my $xssBadRx = qr/[<>%&'";]/;
+
+ $ENV{'LC_NUMERIC'}='C';
+-if (setlocale(LC_NUMERIC,"") ne "C") {
++# C.UTF-8 formats numbers exactly like C
++if (setlocale(LC_NUMERIC,"") !~ /^C(?:\.utf-?8)?$/i) {
+ if ($ENV{'LC_ALL'} eq 'C') {
+ # This has got to be a bug in perl/mod_perl, apache or libc
+ die("Your internationalization implementation on your operating system is "
diff --git a/rrdtool-escape-colons.patch b/rrdtool-escape-colons.patch
new file mode 100644
index 0000000..6c700fb
--- /dev/null
+++ b/rrdtool-escape-colons.patch
@@ -0,0 +1,55 @@
+rrdtool 1.10 reports $RRDs::VERSION 1.10003, so the 1.199908 check skips
+escaping ":" in COMMENT and every graph fails with "Unused Arguments".
+https://github.com/oetiker/SmokePing/commit/54e23d2e48841e1579853dd45d0ed934965ef80a
+
+--- smokeping-2.9.0.org/lib/Smokeping.pm 2025-02-19 14:45:53.000000000 +0100
++++ smokeping-2.9.0/lib/Smokeping.pm 2026-11-19 21:31:31.895410671 +0100
+@@ -876,9 +876,7 @@
+ POSIX::strftime($cfg->{Presentation}{overview}{strftime},
+ localtime(time)) : scalar localtime(time);
+
+- if ( $RRDs::VERSION >= 1.199908 ){
+- $date =~ s|:|\\:|g;
+- }
++ $date =~ s|:|\\:|g;
+ foreach my $prop (sort {exists $tree->{$a}{_order} ? ($tree->{$a}{_order} <=> $tree->{$b}{_order}) : ($a cmp $b)}
+ grep { ref $tree->{$_} eq 'HASH' and not /^__/ }
+ keys %$tree) {
+@@ -1341,11 +1339,8 @@
+ );
+ }
+
+- my $BS = '';
+- if ( $RRDs::VERSION >= 1.199908 ){
+- $ProbeDesc =~ s|:|\\:|g;
+- $BS = '\\';
+- }
++ $ProbeDesc =~ s|:|\\:|g;
++ my $BS = '\\';
+
+ for (@tasks) {
+ my ($desc,$start,$end) = @{$_};
+@@ -1354,9 +1349,7 @@
+ my $sigtime = ($end and $end =~ /^\d+$/) ? $end : time;
+ my $date = $cfg->{Presentation}{detail}{strftime} ?
+ POSIX::strftime($cfg->{Presentation}{detail}{strftime}, localtime($sigtime)) : scalar localtime($sigtime);
+- if ( $RRDs::VERSION >= 1.199908 ){
+- $date =~ s|:|\\:|g;
+- }
++ $date =~ s|:|\\:|g;
+ $end ||= 'last';
+ $start = exp2seconds($start) if $mode =~ /[s]/;
+
+--- smokeping-2.9.0.org/lib/Smokeping/Graphs.pm 2025-02-19 14:42:28.000000000 +0100
++++ smokeping-2.9.0/lib/Smokeping/Graphs.pm 2026-11-19 21:31:31.896568989 +0100
+@@ -198,9 +198,7 @@
+ my $sigtime = ($end and $end =~ /^\d+$/) ? $end : time;
+ my $date = $cfg->{Presentation}{detail}{strftime} ?
+ POSIX::strftime($cfg->{Presentation}{detail}{strftime}, localtime($sigtime)) : scalar localtime($sigtime);
+- if ( $RRDs::VERSION >= 1.199908 ){
+- $date =~ s|:|\\:|g;
+- }
++ $date =~ s|:|\\:|g;
+ $end ||= 'last';
+ $start = Smokeping::exp2seconds($start) if $mode =~ /[s]/;
+
diff --git a/ssh-probe-no-dsa.patch b/ssh-probe-no-dsa.patch
new file mode 100644
index 0000000..194fb2a
--- /dev/null
+++ b/ssh-probe-no-dsa.patch
@@ -0,0 +1,45 @@
+From a7e83c1e2f11210fc4e2f198de088f28ebc18259 Mon Sep 17 00:00:00 2001
+From: Gabriel Filion <lelutin at users.noreply.github.com>
+Date: Sun, 24 Aug 2025 12:39:20 -0400
+Subject: [PATCH] Ssh probe ed25519 (#450)
+
+* SSH.pm: remove dsa, openssh removed support
+
+* SSH probe: add ed25519 type host keys to ssh-keyscan
+
+this key type has been around for a good number of years already so it
+would be nice to make the probe support it.
+
+---------
+
+Co-authored-by: StalkR <stalkr at stalkr.net>
+---
+ lib/Smokeping/probes/SSH.pm | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/lib/Smokeping/probes/SSH.pm b/lib/Smokeping/probes/SSH.pm
+index dec4c13e..08407393 100644
+--- a/lib/Smokeping/probes/SSH.pm
++++ b/lib/Smokeping/probes/SSH.pm
+@@ -57,8 +57,8 @@ sub new($$$)
+
+ # no need for this if we run as a cgi
+ unless ( $ENV{SERVER_SOFTWARE} ) {
+-
+- my $call = "$self->{properties}{binary} -t dsa,rsa,ecdsa $self->{properties}{init_host}";
++
++ my $call = "$self->{properties}{binary} -t rsa,ecdsa,ed25519 $self->{properties}{init_host}";
+ my $return = `$call 2>&1`;
+ if ($return =~ m/$ssh_re/s){
+ print "### parsing ssh-keyscan output...OK\n";
+@@ -152,8 +152,8 @@ sub targetvars {
+ return $class->_makevars($class->SUPER::targetvars, {
+ keytype => {
+ _doc => "Type of key, used in ssh-keyscan -t I<keytype>",
+- _re => "[ecdr]sa*",
+- _example => 'dsa',
++ _re => "(rsa|ecdsa|ed25519)",
++ _example => 'ecdsa',
+ _default => 'rsa',
+ },
+ port => {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/smokeping.git/commitdiff/38ee835269c7d4ed72c95308532a16900a579e33
More information about the pld-cvs-commit
mailing list