View | Details | Raw Unified | Return to bug 282147 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/libssh2/Makefile (-33 / +27 lines)
Lines 1-10 Link Here
1
PORTNAME=	libssh2
1
PORTNAME=	libssh2
2
PORTVERSION=	1.11.0
2
DISTVERSION=	1.11.1
3
PORTREVISION=	1
4
PORTEPOCH=	3
3
PORTEPOCH=	3
5
CATEGORIES=	security devel
4
CATEGORIES=	security devel
6
MASTER_SITES=	https://www.libssh2.org/download/ \
5
MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/ \
7
		LOCAL/sbz
6
		https://www.libssh2.org/download/
8
7
9
MAINTAINER=	sbz@FreeBSD.org
8
MAINTAINER=	sbz@FreeBSD.org
10
COMMENT=	Library implementing the SSH2 protocol
9
COMMENT=	Library implementing the SSH2 protocol
Lines 13-49 WWW= https://www.libssh2.org/ Link Here
13
LICENSE=	BSD3CLAUSE
12
LICENSE=	BSD3CLAUSE
14
LICENSE_FILE=	${WRKSRC}/COPYING
13
LICENSE_FILE=	${WRKSRC}/COPYING
15
14
16
USES=		compiler:c11 cpe libtool pathfix
15
USES=		cmake:testing cpe pathfix pkgconfig tar:xz
17
USE_LDCONFIG=	yes
16
USE_LDCONFIG=	yes
18
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
20
INSTALL_TARGET=	install-strip
21
TEST_TARGET=	check
22
17
23
OPTIONS_DEFINE=	GCRYPT TRACE ZLIB
18
CMAKE_OFF=	BUILD_EXAMPLES \
24
OPTIONS_DEFAULT=	ZLIB
19
		BUILD_TESTING \
20
		RUN_DOCKER_TESTS \
21
		RUN_SSHD_TESTS
25
22
26
TRACE_DESC=	Enable debug packet traces
23
CMAKE_ON=	ZLIB_CMAKE_BOOL
24
25
OPTIONS_DEFINE=		STATIC TRACE
26
OPTIONS_SINGLE=		SSL
27
OPTIONS_SINGLE_SSL=	GCRYPT OPENSSL
28
OPTIONS_DEFAULT=	OPENSSL ZLIB
29
OPTIONS_SUB=		yes
30
31
TRACE_DESC=		Enable debug packet traces
27
32
28
GCRYPT_LIB_DEPENDS=	libgcrypt.so:security/libgcrypt
33
GCRYPT_LIB_DEPENDS=	libgcrypt.so:security/libgcrypt
29
GCRYPT_USES_OFF=	ssl
34
GCRYPT_CMAKE_ON=	-DCRYPTO_BACKEND=Libgcrypt
30
GCRYPT_CONFIGURE_ON=	--with-crypto=libgcrypt
35
31
GCRYPT_CONFIGURE_OFF=	--with-crypto=openssl
36
OPENSSL_USES=		ssl
32
GCRYPT_CPPFLAGS=	-I${LOCALBASE}/include
37
OPENSSL_CMAKE_ON=	-DCRYPTO_BACKEND=OpenSSL
33
GCRYPT_LIBS=		-L${LOCALBASE}/lib
38
34
TRACE_CONFIGURE_ENABLE=	debug
39
STATIC_CMAKE_BOOL=	BUILD_STATIC_LIBS
35
ZLIB_CONFIGURE_WITH=	libz
40
36
41
TRACE_CMAKE_BOOL=	ENABLE_DEBUG_LOGGING
37
.include <bsd.port.pre.mk>
42
38
43
.include <bsd.port.mk>
39
post-patch:
40
	@${REINPLACE_CMD} -e '/Libs:/s/@LIBS@//' \
41
		${WRKSRC}/libssh2.pc.in
42
.if ! ${PORT_OPTIONS:MGCRYPT}
43
.  if ${SSL_DEFAULT} == base
44
	@${REINPLACE_CMD} -e 's/LIBSREQUIRED="$$LIBSREQUIRED$${LIBSREQUIRED:+ }libssl libcrypto"/LIBS="$$LIBS -lssl -lcrypto"/' \
45
		${WRKSRC}/configure
46
.  endif
47
.endif
48
49
.include <bsd.port.post.mk>
(-)b/security/libssh2/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1685548702
1
TIMESTAMP = 1729096176
2
SHA256 (libssh2-1.11.0.tar.gz) = 3736161e41e2693324deb38c26cfdc3efe6209d634ba4258db1cecff6a5ad461
2
SHA256 (libssh2-1.11.1.tar.xz) = 9954cb54c4f548198a7cbebad248bdc87dd64bd26185708a294b2b50771e3769
3
SIZE (libssh2-1.11.0.tar.gz) = 1053562
3
SIZE (libssh2-1.11.1.tar.xz) = 721700
(-)b/security/libssh2/pkg-plist (-1 / +11 lines)
Lines 1-7 Link Here
1
include/libssh2.h
1
include/libssh2.h
2
include/libssh2_publickey.h
2
include/libssh2_publickey.h
3
include/libssh2_sftp.h
3
include/libssh2_sftp.h
4
lib/libssh2.a
4
lib/cmake/libssh2/FindLibgcrypt.cmake
5
lib/cmake/libssh2/FindMbedTLS.cmake
6
lib/cmake/libssh2/FindWolfSSL.cmake
7
lib/cmake/libssh2/libssh2-config-version.cmake
8
lib/cmake/libssh2/libssh2-config.cmake
9
lib/cmake/libssh2/libssh2-targets-%%CMAKE_BUILD_TYPE%%.cmake
10
lib/cmake/libssh2/libssh2-targets.cmake
11
%%STATIC%%lib/libssh2.a
5
lib/libssh2.so
12
lib/libssh2.so
6
lib/libssh2.so.1
13
lib/libssh2.so.1
7
lib/libssh2.so.1.0.1
14
lib/libssh2.so.1.0.1
Lines 106-111 share/man/man3/libssh2_session_banner_get.3.gz Link Here
106
share/man/man3/libssh2_session_banner_set.3.gz
113
share/man/man3/libssh2_session_banner_set.3.gz
107
share/man/man3/libssh2_session_block_directions.3.gz
114
share/man/man3/libssh2_session_block_directions.3.gz
108
share/man/man3/libssh2_session_callback_set.3.gz
115
share/man/man3/libssh2_session_callback_set.3.gz
116
share/man/man3/libssh2_session_callback_set2.3.gz
109
share/man/man3/libssh2_session_disconnect.3.gz
117
share/man/man3/libssh2_session_disconnect.3.gz
110
share/man/man3/libssh2_session_disconnect_ex.3.gz
118
share/man/man3/libssh2_session_disconnect_ex.3.gz
111
share/man/man3/libssh2_session_flag.3.gz
119
share/man/man3/libssh2_session_flag.3.gz
Lines 146-151 share/man/man3/libssh2_sftp_open_ex.3.gz Link Here
146
share/man/man3/libssh2_sftp_open_ex_r.3.gz
154
share/man/man3/libssh2_sftp_open_ex_r.3.gz
147
share/man/man3/libssh2_sftp_open_r.3.gz
155
share/man/man3/libssh2_sftp_open_r.3.gz
148
share/man/man3/libssh2_sftp_opendir.3.gz
156
share/man/man3/libssh2_sftp_opendir.3.gz
157
share/man/man3/libssh2_sftp_posix_rename.3.gz
158
share/man/man3/libssh2_sftp_posix_rename_ex.3.gz
149
share/man/man3/libssh2_sftp_read.3.gz
159
share/man/man3/libssh2_sftp_read.3.gz
150
share/man/man3/libssh2_sftp_readdir.3.gz
160
share/man/man3/libssh2_sftp_readdir.3.gz
151
share/man/man3/libssh2_sftp_readdir_ex.3.gz
161
share/man/man3/libssh2_sftp_readdir_ex.3.gz

Return to bug 282147