git: 59c213f707f4 - main - sysutils/munin-node: Fix plugins/zfs_compress if label contains . (dot)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 16 Mar 2025 19:49:50 UTC
The branch main has been updated by diizzy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=59c213f707f464043ee069568957d574e235af71
commit 59c213f707f464043ee069568957d574e235af71
Author: takefu <takefu@airport.fm>
AuthorDate: 2025-03-16 18:24:29 +0000
Commit: Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-03-16 19:49:33 +0000
sysutils/munin-node: Fix plugins/zfs_compress if label contains . (dot)
Fixes "[ERROR] config error" that occurs if "." (dot) is in label
PR: 281118
Reported by: takefu <takefu@airport.fm>
Tested by: John W. O'Brien <john@saltant.com>
Approved by: portmgr (maintainer timeout, 3+ months)
---
sysutils/munin-node/Makefile | 2 +-
sysutils/munin-node/plugins/zfs_compress | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysutils/munin-node/Makefile b/sysutils/munin-node/Makefile
index a99f645a69db..4646c977c85a 100644
--- a/sysutils/munin-node/Makefile
+++ b/sysutils/munin-node/Makefile
@@ -1,6 +1,6 @@
PORTNAME= munin
PORTVERSION= ${MUNIN_VERSION}
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= sysutils perl5
PKGNAMESUFFIX= -node
diff --git a/sysutils/munin-node/plugins/zfs_compress b/sysutils/munin-node/plugins/zfs_compress
index e42604ab41f0..3fd9f0edab05 100644
--- a/sysutils/munin-node/plugins/zfs_compress
+++ b/sysutils/munin-node/plugins/zfs_compress
@@ -13,7 +13,7 @@ EOM
listing=$(zfs get -t filesystem -H compressratio)
while read -r label _ ratio _; do
- clean_label=$(echo "${label}" | sed -e 's|/|__|g')
+ clean_label=$(echo "${label}" | sed -e 's|/|__|g' -e 's|\.|_|g' )
echo "${clean_label}.label ${label}"
echo "${clean_label}.value ${ratio%x}"
done <<eot