git: 48c20105d0dd - main - net/nfstrace: Fix remaining CMake 4 build errors

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Fri, 25 Sep 2026 12:08:05 UTC
The branch main has been updated by ehaupt:

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

commit 48c20105d0dd985ec9153aeb7da8c957e29dcfb4
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2026-09-25 12:07:48 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2026-09-25 12:07:48 +0000

    net/nfstrace: Fix remaining CMake 4 build errors
    
    The previous fix updated only the top-level CMakeLists.txt. Update the
    minimum CMake version in the two analyzer subdirectories as well.
    
    PR:             298743
---
 net/nfstrace/Makefile                                       | 2 +-
 net/nfstrace/files/patch-analyzers_CMakeLists.txt           | 8 ++++++++
 net/nfstrace/files/patch-analyzers_src_watch_CMakeLists.txt | 8 ++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/net/nfstrace/Makefile b/net/nfstrace/Makefile
index 0286afa3d1d4..d45091c30e8a 100644
--- a/net/nfstrace/Makefile
+++ b/net/nfstrace/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	nfstrace
 DISTVERSION=	0.4.3.2
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	net
 
 MAINTAINER=	ehaupt@FreeBSD.org
diff --git a/net/nfstrace/files/patch-analyzers_CMakeLists.txt b/net/nfstrace/files/patch-analyzers_CMakeLists.txt
new file mode 100644
index 000000000000..2ea8c494a60e
--- /dev/null
+++ b/net/nfstrace/files/patch-analyzers_CMakeLists.txt
@@ -0,0 +1,8 @@
+--- analyzers/CMakeLists.txt.orig	2017-01-31 21:48:12 UTC
++++ analyzers/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 2.8.12)
++cmake_minimum_required (VERSION 3.5)
+ 
+ # build analyzers ==============================================================
+ add_library (testanalyzer MODULE src/test/test_analyzer.cpp)
diff --git a/net/nfstrace/files/patch-analyzers_src_watch_CMakeLists.txt b/net/nfstrace/files/patch-analyzers_src_watch_CMakeLists.txt
new file mode 100644
index 000000000000..eeb2712c46be
--- /dev/null
+++ b/net/nfstrace/files/patch-analyzers_src_watch_CMakeLists.txt
@@ -0,0 +1,8 @@
+--- analyzers/src/watch/CMakeLists.txt.orig	2017-01-31 21:48:12 UTC
++++ analyzers/src/watch/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 2.8.12)
++cmake_minimum_required (VERSION 3.5)
+ project (watch)
+ 
+ # check system dependencies instructions =======================================