git: ec60b2c5aab8 - main - sysutils/conky: Update to 1.19.2

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Wed, 17 May 2023 20:24:43 UTC
The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ec60b2c5aab8cf8d270075f742808b7b5a620488

commit ec60b2c5aab8cf8d270075f742808b7b5a620488
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2023-05-17 20:23:13 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2023-05-17 20:23:13 +0000

    sysutils/conky: Update to 1.19.2
    
    Add patch to fix build.
    
    Patch submitted upstream: https://github.com/brndnmtthws/conky/pull/1539
---
 sysutils/conky/Makefile                   |  2 +-
 sysutils/conky/distinfo                   |  6 +++---
 sysutils/conky/files/patch-src_freebsd.cc | 18 ++++++++++++++++++
 3 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/sysutils/conky/Makefile b/sysutils/conky/Makefile
index 01f28d4b8351..f4978a5879fd 100644
--- a/sysutils/conky/Makefile
+++ b/sysutils/conky/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	conky
-PORTVERSION=	1.19.1
+PORTVERSION=	1.19.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	sysutils
 
diff --git a/sysutils/conky/distinfo b/sysutils/conky/distinfo
index d98ba31ca367..fafda699872d 100644
--- a/sysutils/conky/distinfo
+++ b/sysutils/conky/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1681202221
-SHA256 (brndnmtthws-conky-v1.19.1_GH0.tar.gz) = ad2e6b0b616a85b75901213ec648ee10e09198ea1b5bdc545e799431966abd0c
-SIZE (brndnmtthws-conky-v1.19.1_GH0.tar.gz) = 1713862
+TIMESTAMP = 1684307309
+SHA256 (brndnmtthws-conky-v1.19.2_GH0.tar.gz) = 8ad2050665bcaff3010d90df5a17197647a7b74e9d1793fb888b83e3a4b80d31
+SIZE (brndnmtthws-conky-v1.19.2_GH0.tar.gz) = 1715080
diff --git a/sysutils/conky/files/patch-src_freebsd.cc b/sysutils/conky/files/patch-src_freebsd.cc
new file mode 100644
index 000000000000..653f60c006e2
--- /dev/null
+++ b/sysutils/conky/files/patch-src_freebsd.cc
@@ -0,0 +1,18 @@
+--- src/freebsd.cc.orig	2023-05-15 21:39:11 UTC
++++ src/freebsd.cc
+@@ -544,14 +544,12 @@ char get_freq(char *p_client_buffer, size_t client_buf
+ char get_freq(char *p_client_buffer, size_t client_buffer_size,
+               const char *p_format, int divisor, unsigned int cpu) {
+   int freq;
+-  char *freq_sysctl;
++  char freq_sysctl[16] = {0};
+ 
+   if (!p_client_buffer || client_buffer_size <= 0 || !p_format ||
+       divisor <= 0) {
+     return 0;
+   }
+-
+-  char freq_sysctl[16] = {0};
+ 
+   snprintf(freq_sysctl, sizeof(freq_sysctl), "dev.cpu.%d.freq", (cpu - 1));
+