git: aff61c1df832 - main - devel/sonar-scanner-cli: Disable kubernetes scanning.

From: Alexander Leidinger <netchild_at_FreeBSD.org>
Date: Fri, 22 Nov 2024 14:44:44 UTC
The branch main has been updated by netchild:

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

commit aff61c1df832794e8ecbea87d108257936852033
Author:     Alexander Leidinger <netchild@FreeBSD.org>
AuthorDate: 2024-11-22 14:42:24 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2024-11-22 14:44:39 +0000

    devel/sonar-scanner-cli: Disable kubernetes scanning.
    
    This throws an exception on FreeBSD (it doesn't respect the
    sonar.scanner.os setting) and aborts the scan.
---
 devel/sonar-scanner-cli/Makefile               | 2 +-
 devel/sonar-scanner-cli/files/sonar-scanner.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/sonar-scanner-cli/Makefile b/devel/sonar-scanner-cli/Makefile
index c880c791247b..6df429d6d74a 100644
--- a/devel/sonar-scanner-cli/Makefile
+++ b/devel/sonar-scanner-cli/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	sonar-scanner-cli
 DISTVERSION=	6.2.1.4610
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel security www java
 MASTER_SITES=	https://binaries.sonarsource.com/Distribution/${PORTNAME}/
 
diff --git a/devel/sonar-scanner-cli/files/sonar-scanner.in b/devel/sonar-scanner-cli/files/sonar-scanner.in
index 8e6d1a588a9d..020742cd75f3 100644
--- a/devel/sonar-scanner-cli/files/sonar-scanner.in
+++ b/devel/sonar-scanner-cli/files/sonar-scanner.in
@@ -1,4 +1,4 @@
 #!/bin/sh
 
-exec /bin/sh %%PREFIX%%/%%APP_DIR%%/bin/sonar-scanner -Dsonar.scanner.os=linux -Dsonar.scanner.javaExePath=%%LOCALBASE%%/bin/java "$@"
+exec /bin/sh %%PREFIX%%/%%APP_DIR%%/bin/sonar-scanner -Dsonar.scanner.os=linux -Dsonar.scanner.javaExePath=%%LOCALBASE%%/bin/java -Dsonar.kubernetes.activate=false "$@"