Files
ports/security/libssh2/Makefile
T
Daniel Engberg 8c7d939b43 security/libssh2: Update to 1.11.1
* Update MASTER_SITES, use GitHub as primary and upstream main website as fallback
* Fixes CVE-2023-48795
* Convert to CMake for faster builds and cleaner port Makefile
* Make static library option (non default)
* Enable OpenSSL support by default (optional)

PR:		282147
Approved by:	portmgr (maintainer timeout, 2+ weeks)
2024-10-31 04:50:27 +01:00

44 lines
1007 B
Makefile

PORTNAME= libssh2
DISTVERSION= 1.11.1
PORTEPOCH= 3
CATEGORIES= security devel
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/ \
https://www.libssh2.org/download/
MAINTAINER= sbz@FreeBSD.org
COMMENT= Library implementing the SSH2 protocol
WWW= https://www.libssh2.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake:testing cpe pathfix pkgconfig tar:xz
USE_LDCONFIG= yes
CMAKE_OFF= BUILD_EXAMPLES \
BUILD_TESTING \
RUN_DOCKER_TESTS \
RUN_SSHD_TESTS
CMAKE_ON= ENABLE_ZLIB_COMPRESSION
OPTIONS_DEFINE= STATIC TRACE
OPTIONS_SINGLE= SSL
OPTIONS_SINGLE_SSL= GCRYPT OPENSSL
OPTIONS_DEFAULT= OPENSSL ZLIB
OPTIONS_SUB= yes
TRACE_DESC= Enable debug packet traces
GCRYPT_LIB_DEPENDS= libgcrypt.so:security/libgcrypt
GCRYPT_CMAKE_ON= -DCRYPTO_BACKEND=Libgcrypt
OPENSSL_USES= ssl
OPENSSL_CMAKE_ON= -DCRYPTO_BACKEND=OpenSSL
STATIC_CMAKE_BOOL= BUILD_STATIC_LIBS
TRACE_CMAKE_BOOL= ENABLE_DEBUG_LOGGING
.include <bsd.port.mk>