git: 30dff11224a4 - main - net-mgmt/centreon-clib: Update version 24.09.0=>24.10.0

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 01 Nov 2026 19:00:27 UTC
The branch main has been updated by bofh:

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

commit 30dff11224a4cd06c81df100b5337438c4867a7e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2026-11-01 18:47:18 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2026-11-01 18:59:57 +0000

    net-mgmt/centreon-clib: Update version 24.09.0=>24.10.0
    
    Changelog: https://github.com/centreon/centreon-collect/releases/tag/24.10.0
---
 net-mgmt/centreon-clib/Makefile                   |  4 +++-
 net-mgmt/centreon-clib/distinfo                   |  6 ++---
 net-mgmt/centreon-clib/files/patch-CMakeLists.txt | 28 +++++++++++++++++++----
 net-mgmt/centreon-clib/files/patch-src_process.cc |  6 ++---
 4 files changed, 33 insertions(+), 11 deletions(-)

diff --git a/net-mgmt/centreon-clib/Makefile b/net-mgmt/centreon-clib/Makefile
index 95f397103b5b..6f0fb050b65a 100644
--- a/net-mgmt/centreon-clib/Makefile
+++ b/net-mgmt/centreon-clib/Makefile
@@ -10,6 +10,8 @@ WWW=		https://www.centreon.com/
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+LIB_DEPENDS=	libfmt.so:devel/libfmt
+
 USES=		cmake compiler:c++11-lang
 
 USE_GITHUB=	yes
@@ -19,7 +21,7 @@ GH_PROJECT=	centreon-collect
 WRKSRC_SUBDIR=	clib
 
 COLLECT_MAJOR=24
-COLLECT_MINOR=09
+COLLECT_MINOR=10
 COLLECT_PATCH=0
 
 CMAKE_ARGS=	-DCMAKE_INSTALL_PREFIX=${PREFIX} \
diff --git a/net-mgmt/centreon-clib/distinfo b/net-mgmt/centreon-clib/distinfo
index 07ab4acbc291..e05a371dead9 100644
--- a/net-mgmt/centreon-clib/distinfo
+++ b/net-mgmt/centreon-clib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1792789240
-SHA256 (centreon-centreon-collect-centreon-collect-24.09.0_GH0.tar.gz) = 9ba2123ea478e62ce93f366e00fc5c364ce7496379d4f5022d207e0d23b52b9b
-SIZE (centreon-centreon-collect-centreon-collect-24.09.0_GH0.tar.gz) = 5531250
+TIMESTAMP = 1793558114
+SHA256 (centreon-centreon-collect-centreon-collect-24.10.0_GH0.tar.gz) = 56d82f83491cafe728ee751c66a8a38278fee701a01e8eef8539bc53cab0e851
+SIZE (centreon-centreon-collect-centreon-collect-24.10.0_GH0.tar.gz) = 5850589
diff --git a/net-mgmt/centreon-clib/files/patch-CMakeLists.txt b/net-mgmt/centreon-clib/files/patch-CMakeLists.txt
index eb0bc6ace758..c8fdbd4ae799 100644
--- a/net-mgmt/centreon-clib/files/patch-CMakeLists.txt
+++ b/net-mgmt/centreon-clib/files/patch-CMakeLists.txt
@@ -1,11 +1,31 @@
---- CMakeLists.txt.orig	2026-09-20 15:03:41 UTC
+--- CMakeLists.txt.orig	2024-10-30 15:32:39 UTC
 +++ CMakeLists.txt
-@@ -216,7 +216,7 @@ install(
+@@ -27,7 +27,7 @@ set(SCRIPT_DIR "${PROJECT_SOURCE_DIR}/script")
+ set(SCRIPT_DIR "${PROJECT_SOURCE_DIR}/script")
+ 
+ # Version.
+-set(CLIB_VERSION "${COLLECT_MAJOR}.${COLLECT_MINOR}.${COLLECT_PATCH}")
++set(CLIB_VERSION "24.10.0")
+ 
+ # Include module to check existing libraries.
+ include(CheckLibraryExists)
+@@ -110,6 +110,10 @@ endif()
+                   "be disabled.")
+ endif()
+ 
++if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
++  find_package(fmt CONFIG REQUIRED)
++endif()
++
+ # Set sources.
+ set(SOURCES
+     "${SRC_DIR}/library.cc"
+@@ -165,7 +169,7 @@ install(
  # Install header files for devel.
  install(
    DIRECTORY "${INCLUDE_DIR}/"
 -  DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/centreon-clib"
 +  DESTINATION "${CMAKE_INSTALL_PREFIX}/include/centreon-clib"
    COMPONENT "development"
-   FILES_MATCHING PATTERN "*.hh"
- )
+   FILES_MATCHING
+   PATTERN "*.hh")
diff --git a/net-mgmt/centreon-clib/files/patch-src_process.cc b/net-mgmt/centreon-clib/files/patch-src_process.cc
index 02789bd1d7f3..b888d8dbdc7e 100644
--- a/net-mgmt/centreon-clib/files/patch-src_process.cc
+++ b/net-mgmt/centreon-clib/files/patch-src_process.cc
@@ -1,8 +1,8 @@
---- src/process.cc.orig	2021-05-04 21:18:25 UTC
+--- src/process.cc.orig	2024-10-30 15:32:39 UTC
 +++ src/process.cc
 @@ -16,6 +16,9 @@
- ** For more information : contact@centreon.com
- */
+  * For more information : contact@centreon.com
+  */
  
 +#if defined(__FreeBSD__) || defined (__DragonFly__)
 +#include <array>