git: 14e5ed0dd6c5 - main - net-mgmt/centreon-clib: Update version 21.10.1=>22.04.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Sep 2026 15:20:17 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=14e5ed0dd6c5291601b349705cecd7faaf36ece7
commit 14e5ed0dd6c5291601b349705cecd7faaf36ece7
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2026-09-20 15:08:42 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2026-09-20 15:19:49 +0000
net-mgmt/centreon-clib: Update version 21.10.1=>22.04.0
Changelog: https://github.com/centreon/centreon-collect/releases/tag/22.04.0
---
net-mgmt/centreon-clib/Makefile | 17 +++++-
net-mgmt/centreon-clib/distinfo | 6 +-
net-mgmt/centreon-clib/files/patch-CMakeLists.txt | 22 ++++----
net-mgmt/centreon-clib/pkg-plist | 69 +++++++++++------------
4 files changed, 61 insertions(+), 53 deletions(-)
diff --git a/net-mgmt/centreon-clib/Makefile b/net-mgmt/centreon-clib/Makefile
index 9331fa5b6c18..e89b9e465dcc 100644
--- a/net-mgmt/centreon-clib/Makefile
+++ b/net-mgmt/centreon-clib/Makefile
@@ -1,5 +1,5 @@
PORTNAME= centreon-clib
-DISTVERSION= 21.10.1
+DISTVERSION= ${COLLECT_MAJOR}.${COLLECT_MINOR}.${COLLECT_PATCH}
CATEGORIES= net-mgmt
MAINTAINER= bofh@FreeBSD.org
@@ -15,11 +15,22 @@ USE_GITHUB= yes
GH_ACCOUNT= centreon
GH_PROJECT= centreon-collect
-WRKSRC_SUBDIR= ${PORTNAME}
+WRKSRC_SUBDIR= clib
-CMAKE_ARGS= -DWITH_PREFIX=${PREFIX} \
+COLLECT_MAJOR=22
+COLLECT_MINOR=04
+COLLECT_PATCH=0
+
+CMAKE_ARGS= -DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DWITH_PREFIX_INC=${PREFIX}/include/centreon \
-DWITH_PKGCONFIG_DIR=${PREFIX}/libdata/pkgconfig
CXXFLAGS+= -std=c++11
+post-patch:
+ @${REINPLACE_CMD} -e 's|$${COLLECT_MAJOR}|${COLLECT_MAJOR}|g; s|$${COLLECT_MINOR}|${COLLECT_MINOR}|g; s|$${COLLECT_PATCH}|${COLLECT_PATCH}|g' \
+ ${WRKSRC}/CMakeLists.txt \
+ ${WRKSRC}/cmake/package.cmake
+ @${REINPLACE_CMD} -e 's|@COLLECT_MAJOR@|${COLLECT_MAJOR}|g; s|@COLLECT_MINOR@|${COLLECT_MINOR}|g; s|@COLLECT_PATCH@|${COLLECT_PATCH}|g' \
+ ${WRKSRC}/inc/com/centreon/clib/version.hh.in
+
.include <bsd.port.mk>
diff --git a/net-mgmt/centreon-clib/distinfo b/net-mgmt/centreon-clib/distinfo
index df4fa95c1bea..3825bcbac519 100644
--- a/net-mgmt/centreon-clib/distinfo
+++ b/net-mgmt/centreon-clib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1788288636
-SHA256 (centreon-centreon-collect-21.10.1_GH0.tar.gz) = 7e1f93b8b0847241014541ddc367f1fab1d844b8e37808c2ed8ea931cdd07061
-SIZE (centreon-centreon-collect-21.10.1_GH0.tar.gz) = 4363139
+TIMESTAMP = 1788534652
+SHA256 (centreon-centreon-collect-22.04.0_GH0.tar.gz) = 4006d21f9be3e2d885f74b5235838812c8950f7e9a52df79968b6406d67b10f8
+SIZE (centreon-centreon-collect-22.04.0_GH0.tar.gz) = 4234165
diff --git a/net-mgmt/centreon-clib/files/patch-CMakeLists.txt b/net-mgmt/centreon-clib/files/patch-CMakeLists.txt
index 28bcbf90529a..eb0bc6ace758 100644
--- a/net-mgmt/centreon-clib/files/patch-CMakeLists.txt
+++ b/net-mgmt/centreon-clib/files/patch-CMakeLists.txt
@@ -1,13 +1,11 @@
---- CMakeLists.txt.orig 2026-08-30 15:23:13 UTC
+--- CMakeLists.txt.orig 2026-09-20 15:03:41 UTC
+++ CMakeLists.txt
-@@ -40,7 +40,9 @@ include(CheckLibraryExists)
-
- # Include module to check existing libraries.
- include(CheckLibraryExists)
--include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
-+if(EXISTS "${CMAKE_BINARY_DIR}/conan_paths.cmake")
-+ include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
-+endif()
- # Include module CTest if necessary.
- if (WITH_TESTING)
- include(CTest)
+@@ -216,7 +216,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"
+ )
diff --git a/net-mgmt/centreon-clib/pkg-plist b/net-mgmt/centreon-clib/pkg-plist
index dc534b5a8c81..e731279c3614 100644
--- a/net-mgmt/centreon-clib/pkg-plist
+++ b/net-mgmt/centreon-clib/pkg-plist
@@ -1,36 +1,35 @@
-include/centreon/com/centreon/clib.hh
-include/centreon/com/centreon/clib/version.hh
-include/centreon/com/centreon/delayed_delete.hh
-include/centreon/com/centreon/exceptions/basic.hh
-include/centreon/com/centreon/exceptions/interruption.hh
-include/centreon/com/centreon/handle.hh
-include/centreon/com/centreon/handle_action.hh
-include/centreon/com/centreon/handle_listener.hh
-include/centreon/com/centreon/handle_manager.hh
-include/centreon/com/centreon/hash.hh
-include/centreon/com/centreon/io/directory_entry.hh
-include/centreon/com/centreon/io/file_entry.hh
-include/centreon/com/centreon/io/file_stream.hh
-include/centreon/com/centreon/library.hh
-include/centreon/com/centreon/logging/backend.hh
-include/centreon/com/centreon/logging/engine.hh
-include/centreon/com/centreon/logging/file.hh
-include/centreon/com/centreon/logging/logger.hh
-include/centreon/com/centreon/logging/syslogger.hh
-include/centreon/com/centreon/logging/temp_logger.hh
-include/centreon/com/centreon/misc/argument.hh
-include/centreon/com/centreon/misc/command_line.hh
-include/centreon/com/centreon/misc/get_options.hh
-include/centreon/com/centreon/misc/stringifier.hh
-include/centreon/com/centreon/namespace.hh
-include/centreon/com/centreon/process.hh
-include/centreon/com/centreon/process_listener.hh
-include/centreon/com/centreon/process_manager.hh
-include/centreon/com/centreon/shared_mutex.hh
-include/centreon/com/centreon/task.hh
-include/centreon/com/centreon/task_manager.hh
-include/centreon/com/centreon/timestamp.hh
-include/centreon/com/centreon/unique_array_ptr.hh
-include/centreon/com/centreon/unordered_hash.hh
+include/centreon-clib/com/centreon/clib.hh
+include/centreon-clib/com/centreon/clib/version.hh
+include/centreon-clib/com/centreon/delayed_delete.hh
+include/centreon-clib/com/centreon/exceptions/basic.hh
+include/centreon-clib/com/centreon/exceptions/interruption.hh
+include/centreon-clib/com/centreon/handle.hh
+include/centreon-clib/com/centreon/handle_action.hh
+include/centreon-clib/com/centreon/handle_listener.hh
+include/centreon-clib/com/centreon/handle_manager.hh
+include/centreon-clib/com/centreon/hash.hh
+include/centreon-clib/com/centreon/io/directory_entry.hh
+include/centreon-clib/com/centreon/io/file_entry.hh
+include/centreon-clib/com/centreon/io/file_stream.hh
+include/centreon-clib/com/centreon/library.hh
+include/centreon-clib/com/centreon/logging/backend.hh
+include/centreon-clib/com/centreon/logging/engine.hh
+include/centreon-clib/com/centreon/logging/file.hh
+include/centreon-clib/com/centreon/logging/logger.hh
+include/centreon-clib/com/centreon/logging/syslogger.hh
+include/centreon-clib/com/centreon/logging/temp_logger.hh
+include/centreon-clib/com/centreon/misc/argument.hh
+include/centreon-clib/com/centreon/misc/command_line.hh
+include/centreon-clib/com/centreon/misc/get_options.hh
+include/centreon-clib/com/centreon/misc/stringifier.hh
+include/centreon-clib/com/centreon/namespace.hh
+include/centreon-clib/com/centreon/process.hh
+include/centreon-clib/com/centreon/process_listener.hh
+include/centreon-clib/com/centreon/process_manager.hh
+include/centreon-clib/com/centreon/shared_mutex.hh
+include/centreon-clib/com/centreon/task.hh
+include/centreon-clib/com/centreon/task_manager.hh
+include/centreon-clib/com/centreon/timestamp.hh
+include/centreon-clib/com/centreon/unique_array_ptr.hh
+include/centreon-clib/com/centreon/unordered_hash.hh
lib/libcentreon_clib.so
-libdata/pkgconfig/centreon-clib.pc