security/libssh2: sync with upstream

Taken from: FreeBSD
This commit is contained in:
Franco Fichtner 2024-11-04 08:53:12 +01:00
parent fbe151d5e8
commit 817ec5e3b7
3 changed files with 46 additions and 34 deletions

View file

@ -1,10 +1,13 @@
PORTNAME= libssh2
PORTVERSION= 1.11.0
PORTREVISION= 1
DISTVERSION= 1.11.1
PORTEPOCH= 3
CATEGORIES= security devel
MASTER_SITES= https://www.libssh2.org/download/ \
LOCAL/sbz
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/ \
https://www.libssh2.org/download/
PATCH_SITES= https://github.com/libssh2/libssh2/commit/
PATCHFILES= 5d03b4f94ac6740e0085a6acda6fc417ca6ecc83.patch:-p1 \
d4e43c7b69d10b6cfaaa53787addfd4beac7a3ce.patch:-p1
MAINTAINER= sbz@FreeBSD.org
COMMENT= Library implementing the SSH2 protocol
@ -13,37 +16,32 @@ WWW= https://www.libssh2.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler:c11 cpe libtool pathfix
USES= cmake:testing cpe pathfix pkgconfig tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
INSTALL_TARGET= install-strip
TEST_TARGET= check
OPTIONS_DEFINE= GCRYPT TRACE ZLIB
OPTIONS_DEFAULT= ZLIB
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_USES_OFF= ssl
GCRYPT_CONFIGURE_ON= --with-crypto=libgcrypt
GCRYPT_CONFIGURE_OFF= --with-crypto=openssl
GCRYPT_CPPFLAGS= -I${LOCALBASE}/include
GCRYPT_LIBS= -L${LOCALBASE}/lib
TRACE_CONFIGURE_ENABLE= debug
ZLIB_CONFIGURE_WITH= libz
GCRYPT_CMAKE_ON= -DCRYPTO_BACKEND=Libgcrypt
.include <bsd.port.pre.mk>
OPENSSL_USES= ssl
OPENSSL_CMAKE_ON= -DCRYPTO_BACKEND=OpenSSL
post-patch:
@${REINPLACE_CMD} -e '/Libs:/s/@LIBS@//' \
${WRKSRC}/libssh2.pc.in
.if ! ${PORT_OPTIONS:MGCRYPT}
. if ${SSL_DEFAULT} == base
@${REINPLACE_CMD} -e 's/LIBSREQUIRED="$$LIBSREQUIRED$${LIBSREQUIRED:+ }libssl libcrypto"/LIBS="$$LIBS -lssl -lcrypto"/' \
${WRKSRC}/configure
. endif
.endif
STATIC_CMAKE_BOOL= BUILD_STATIC_LIBS
.include <bsd.port.post.mk>
TRACE_CMAKE_BOOL= ENABLE_DEBUG_LOGGING
.include <bsd.port.mk>

View file

@ -1,3 +1,7 @@
TIMESTAMP = 1685548702
SHA256 (libssh2-1.11.0.tar.gz) = 3736161e41e2693324deb38c26cfdc3efe6209d634ba4258db1cecff6a5ad461
SIZE (libssh2-1.11.0.tar.gz) = 1053562
TIMESTAMP = 1730400101
SHA256 (libssh2-1.11.1.tar.xz) = 9954cb54c4f548198a7cbebad248bdc87dd64bd26185708a294b2b50771e3769
SIZE (libssh2-1.11.1.tar.xz) = 721700
SHA256 (5d03b4f94ac6740e0085a6acda6fc417ca6ecc83.patch) = 8bf8dd96324f5e934cba3f850a70887f769dcef255f93f13b30f354c1c5e009f
SIZE (5d03b4f94ac6740e0085a6acda6fc417ca6ecc83.patch) = 3073
SHA256 (d4e43c7b69d10b6cfaaa53787addfd4beac7a3ce.patch) = c9feb7d3d8c2b1619cb7bf2be2aa86830bf9f27b0ba470a192d33e510a23b3f3
SIZE (d4e43c7b69d10b6cfaaa53787addfd4beac7a3ce.patch) = 2684

View file

@ -1,7 +1,14 @@
include/libssh2.h
include/libssh2_publickey.h
include/libssh2_sftp.h
lib/libssh2.a
lib/cmake/libssh2/FindLibgcrypt.cmake
lib/cmake/libssh2/FindMbedTLS.cmake
lib/cmake/libssh2/FindWolfSSL.cmake
lib/cmake/libssh2/libssh2-config-version.cmake
lib/cmake/libssh2/libssh2-config.cmake
lib/cmake/libssh2/libssh2-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/libssh2/libssh2-targets.cmake
%%STATIC%%lib/libssh2.a
lib/libssh2.so
lib/libssh2.so.1
lib/libssh2.so.1.0.1
@ -106,6 +113,7 @@ share/man/man3/libssh2_session_banner_get.3.gz
share/man/man3/libssh2_session_banner_set.3.gz
share/man/man3/libssh2_session_block_directions.3.gz
share/man/man3/libssh2_session_callback_set.3.gz
share/man/man3/libssh2_session_callback_set2.3.gz
share/man/man3/libssh2_session_disconnect.3.gz
share/man/man3/libssh2_session_disconnect_ex.3.gz
share/man/man3/libssh2_session_flag.3.gz
@ -146,6 +154,8 @@ share/man/man3/libssh2_sftp_open_ex.3.gz
share/man/man3/libssh2_sftp_open_ex_r.3.gz
share/man/man3/libssh2_sftp_open_r.3.gz
share/man/man3/libssh2_sftp_opendir.3.gz
share/man/man3/libssh2_sftp_posix_rename.3.gz
share/man/man3/libssh2_sftp_posix_rename_ex.3.gz
share/man/man3/libssh2_sftp_read.3.gz
share/man/man3/libssh2_sftp_readdir.3.gz
share/man/man3/libssh2_sftp_readdir_ex.3.gz