git: a6303bbdd81b - main - security/libssh: Update to 0.11.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 08 Sep 2024 18:42:39 UTC
The branch main has been updated by sunpoet:

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

commit a6303bbdd81b34b05673dc1168f468c5c6cccc4a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-08 18:16:54 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-08 18:37:02 +0000

    security/libssh: Update to 0.11.1
    
    - Use complete arguments/options
    - Enable STATIC option by default
    
    Changes:        https://git.libssh.org/projects/libssh.git/tree/CHANGELOG?h=stable-0.11
---
 security/libssh/Makefile  | 61 ++++++++++++++++++++++++++++++-----------------
 security/libssh/distinfo  |  6 ++---
 security/libssh/pkg-plist |  2 +-
 3 files changed, 43 insertions(+), 26 deletions(-)

diff --git a/security/libssh/Makefile b/security/libssh/Makefile
index e824d389136f..8d755f0d040d 100644
--- a/security/libssh/Makefile
+++ b/security/libssh/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	libssh
-DISTVERSION=	0.11.0
+PORTVERSION=	0.11.1
 CATEGORIES=	security devel
-MASTER_SITES=	https://www.libssh.org/files/${DISTVERSION:R}/
+MASTER_SITES=	https://www.libssh.org/files/${PORTVERSION:R}/
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Library implementing the SSH2 protocol
@@ -13,35 +13,52 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 TEST_DEPENDS=	cmocka>=0:sysutils/cmocka
 
 USES=		cmake:testing cpe pathfix tar:xz
-USE_LDCONFIG=	yes
-
-CMAKE_TESTING_ON=	UNIT_TESTING
 
-CMAKE_OFF=	CMAKE_DISABLE_FIND_PACKAGE_Doxygen \
+CMAKE_ARGS=	-DCMAKE_CTEST_ARGUMENTS="-E;'torture_config|torture_misc'" \
+		-DGLOBAL_BIND_CONFIG=${PREFIX}/etc/ssh/libssh_server_config \
+		-DGLOBAL_CLIENT_CONFIG=${PREFIX}/etc/ssh/ssh_config
+CMAKE_OFF=	CLIENT_TESTING \
+		CMAKE_DISABLE_FIND_PACKAGE_Doxygen \
+		FUZZ_TESTING \
+		GSSAPI_TESTING \
+		PICKY_DEVELOPER \
+		SERVER_TESTING \
+		UNIT_TESTING \
+		WITH_ABI_BREAK \
+		WITH_BENCHMARKS \
+		WITH_BLOWFISH_CIPHER \
+		WITH_COVERAGE \
 		WITH_DEBUG_CALLTRACE \
+		WITH_DEBUG_CRYPTO \
+		WITH_DEBUG_PACKET \
 		WITH_EXAMPLES \
-		WITH_SYMBOL_VERSIONING
-
-CMAKE_ARGS=	-DGLOBAL_BIND_CONFIG=${PREFIX}/etc/ssh/libssh_server_config \
-		-DGLOBAL_CLIENT_CONFIG=${PREFIX}/etc/ssh/ssh_config \
-		-DCMAKE_CTEST_ARGUMENTS="-E;'torture_config|torture_misc'"
+		WITH_INSECURE_NONE \
+		WITH_INTERNAL_DOC \
+		WITH_NACL \
+		WITH_PKCS11_PROVIDER \
+		WITH_PKCS11_URI
+CMAKE_ON=	BUILD_SHARED_LIBS \
+		WITH_EXEC \
+		WITH_GEX \
+		WITH_PCAP \
+		WITH_SERVER \
+		WITH_SFTP \
+		WITH_SYMBOL_VERSIONING \
+		WITH_ZLIB
+CMAKE_TESTING_ON=	UNIT_TESTING
+USE_LDCONFIG=	yes
 
-OPTIONS_DEFINE=		GSSAPI STATIC
-OPTIONS_RADIO=		CRYPTO
+OPTIONS_DEFINE=	GSSAPI STATIC
+OPTIONS_RADIO=	CRYPTO
 OPTIONS_RADIO_CRYPTO=	MBEDTLS OPENSSL
-OPTIONS_DEFAULT=	GSSAPI OPENSSL
-OPTIONS_SUB=		yes
-
-CRYPTO_DESC=		Crypto backend
+OPTIONS_DEFAULT=GSSAPI OPENSSL STATIC
+OPTIONS_SUB=	yes
 
 GSSAPI_CMAKE_BOOL=	WITH_GSSAPI
-
-MBEDTLS_LIB_DEPENDS=	libmbedcrypto.so:security/mbedtls
 MBEDTLS_CMAKE_BOOL=	WITH_MBEDTLS
-
+MBEDTLS_LIB_DEPENDS=	libmbedcrypto.so:security/mbedtls
+OPENSSL_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_OpenSSL
 OPENSSL_USES=		ssl
-OPENSSL_CMAKE_OFF=	-DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL:BOOL=True
-
 STATIC_CMAKE_BOOL=	BUILD_STATIC_LIB
 
 post-install-STATIC-on:
diff --git a/security/libssh/distinfo b/security/libssh/distinfo
index 50a7a0d27b5f..0e436ba6518b 100644
--- a/security/libssh/distinfo
+++ b/security/libssh/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1723158351
-SHA256 (libssh-0.11.0.tar.xz) = 860e814579e7606f3fc3db98c5807bef2ab60f793ec871d81bcd23acdcdd3e91
-SIZE (libssh-0.11.0.tar.xz) = 626648
+TIMESTAMP = 1725559589
+SHA256 (libssh-0.11.1.tar.xz) = 14b7dcc72e91e08151c58b981a7b570ab2663f630e7d2837645d5a9c612c1b79
+SIZE (libssh-0.11.1.tar.xz) = 621108
diff --git a/security/libssh/pkg-plist b/security/libssh/pkg-plist
index 160cf89cdfa5..0907bfdd05e4 100644
--- a/security/libssh/pkg-plist
+++ b/security/libssh/pkg-plist
@@ -13,5 +13,5 @@ lib/cmake/libssh/libssh-config.cmake
 %%STATIC%%lib/libssh.a
 lib/libssh.so
 lib/libssh.so.4
-lib/libssh.so.4.10.0
+lib/libssh.so.4.10.1
 libdata/pkgconfig/libssh.pc