libssh2: bump to 1.11.1 (#10976)

This commit is contained in:
kenmays
2024-11-04 22:44:39 -08:00
committed by GitHub
parent 19573cdf2d
commit 07afbe72c7
3 changed files with 107 additions and 29 deletions

View File

@@ -6,16 +6,18 @@ COPYRIGHT="2004-2007 Sara Golemon
2005,2006 Mikhail Gusarov 2005,2006 Mikhail Gusarov
2006-2007 The Written Word, Inc. 2006-2007 The Written Word, Inc.
2007 Eli Fant 2007 Eli Fant
2009-2014 Daniel Stenberg 2009-2023 Daniel Stenberg
2008, 2009 Simon Josefsson" 2008, 2009 Simon Josefsson
2000 Markus Friedl
2015 Microsoft Corp."
LICENSE="BSD (3-clause)" LICENSE="BSD (3-clause)"
REVISION="5" REVISION="1"
SOURCE_URI="https://www.libssh2.org/download/libssh2-$portVersion.tar.gz" SOURCE_URI="https://www.libssh2.org/download/libssh2-$portVersion.tar.gz"
CHECKSUM_SHA256="d5fb8bd563305fd1074dda90bd053fb2d29fc4bce048d182f96eaa466dfadafd" CHECKSUM_SHA256="d9ec76cbe34db98eec3539fe2c899d26b0c837cb3eb466a56b0f109cabf658f7"
PATCHES="libssh2-$portVersion.patchset" PATCHES="libssh2-$portVersion.patchset"
ARCHITECTURES="all" ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86" SECONDARY_ARCHITECTURES="x86"
PROVIDES=" PROVIDES="
libssh2$secondaryArchSuffix = $portVersion compat >= 1.4 libssh2$secondaryArchSuffix = $portVersion compat >= 1.4
@@ -57,7 +59,9 @@ BUILD()
{ {
CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS" \ CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS" \
LDFLAGS="-lposix_error_mapper -lnetwork" \ LDFLAGS="-lposix_error_mapper -lnetwork" \
runConfigure ./configure runConfigure ./configure \
--disable-static \
--disable-docker-tests
make $jobArgs make $jobArgs
} }
@@ -66,7 +70,7 @@ INSTALL()
{ {
make install make install
rm $libDir/libssh2.la $libDir/libssh2.a rm $libDir/libssh2.la
prepareInstalledDevelLibs libssh2 prepareInstalledDevelLibs libssh2
fixPkgconfig fixPkgconfig
@@ -76,3 +80,8 @@ INSTALL()
$developDir \ $developDir \
$manDir $manDir
} }
TEST()
{
make check
}

View File

@@ -0,0 +1,91 @@
From f6ff6eed807494e4fc205df37151b378d7e7bf68 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 13 Jun 2014 17:19:49 +0000
Subject: haiku patch
diff --git a/configure.ac b/configure.ac
index 21ae441..4afdcb9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,7 @@ dnl Our configure and build reentrant settings
CURL_CONFIGURE_REENTRANT
# Some systems (Solaris?) have socket() in -lsocket.
-AC_SEARCH_LIBS(socket, socket)
+AC_SEARCH_LIBS(socket,[socket network])
# Solaris has inet_addr() in -lnsl.
AC_SEARCH_LIBS(inet_addr, nsl)
--
2.45.2
From bac932ae90ba0eb6f76c1dc11b61a8e9c876164f Mon Sep 17 00:00:00 2001
From: Ken Mays <kmays2000@gmail.com>
Date: Thu, 28 Aug 2014 16:32:12 +0000
Subject: Fix for libssh2 1.11.0 scp/sftp examples on Haiku
diff --git a/example/scp_write_nonblock.c b/example/scp_write_nonblock.c
index f3d2b48..171d6f9 100644
--- a/example/scp_write_nonblock.c
+++ b/example/scp_write_nonblock.c
@@ -8,6 +8,10 @@
#include "libssh2_setup.h"
#include <libssh2.h>
+#ifdef __HAIKU__
+#include <sys/select.h>
+#endif
+
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
diff --git a/example/sftp_RW_nonblock.c b/example/sftp_RW_nonblock.c
index 776a7d6..1a1ed17 100644
--- a/example/sftp_RW_nonblock.c
+++ b/example/sftp_RW_nonblock.c
@@ -14,6 +14,10 @@
#include <libssh2.h>
#include <libssh2_sftp.h>
+#ifdef __HAIKU__
+#include <sys/select.h>
+#endif
+
#ifdef _WIN32
#define write(f, b, c) write((f), (b), (unsigned int)(c))
#endif
diff --git a/example/sftp_write_nonblock.c b/example/sftp_write_nonblock.c
index d7671b6..9d801c2 100644
--- a/example/sftp_write_nonblock.c
+++ b/example/sftp_write_nonblock.c
@@ -33,6 +33,10 @@
#include <stdio.h>
#include <time.h> /* for time() */
+#ifdef __HAIKU__
+#include <sys/select.h>
+#endif
+
static const char *pubkey = "/home/username/.ssh/id_rsa.pub";
static const char *privkey = "/home/username/.ssh/id_rsa";
static const char *username = "username";
diff --git a/example/sftp_write_sliding.c b/example/sftp_write_sliding.c
index 4390246..9ed9ce9 100644
--- a/example/sftp_write_sliding.c
+++ b/example/sftp_write_sliding.c
@@ -34,6 +34,10 @@
#include <time.h> /* for time() */
#include <string.h>
+#ifdef __HAIKU__
+#include <sys/select.h>
+#endif
+
static const char *pubkey = "/home/username/.ssh/id_rsa.pub";
static const char *privkey = "/home/username/.ssh/id_rsa";
static const char *username = "username";
--
2.45.2

View File

@@ -1,22 +0,0 @@
From e49e613c4094031e5706925471a53b579dbe5f74 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 13 Jun 2014 17:19:49 +0000
Subject: haiku patch
diff --git a/configure.ac b/configure.ac
index d6bdab4..069c2f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,7 +61,7 @@ dnl Our configure and build reentrant settings
CURL_CONFIGURE_REENTRANT
# Some systems (Solaris?) have socket() in -lsocket.
-AC_SEARCH_LIBS(socket, socket)
+AC_SEARCH_LIBS(socket,[socket network])
# Solaris has inet_addr() in -lnsl.
AC_SEARCH_LIBS(inet_addr, nsl)
--
2.7.0