diff options
-rw-r--r-- | package/lftp/Makefile | 4 | ||||
-rw-r--r-- | package/lftp/patches/patch-src_FileCopy_cc | 11 | ||||
-rw-r--r-- | package/lftp/patches/patch-src_NetAccess_cc | 11 | ||||
-rw-r--r-- | package/lftp/patches/patch-src_ResMgr_cc | 11 | ||||
-rw-r--r-- | package/lftp/patches/patch-src_Speedometer_cc | 11 | ||||
-rw-r--r-- | package/lftp/patches/patch-src_lftp_ssl_cc | 38 |
6 files changed, 40 insertions, 46 deletions
diff --git a/package/lftp/Makefile b/package/lftp/Makefile index b160c8697..993df08b3 100644 --- a/package/lftp/Makefile +++ b/package/lftp/Makefile @@ -4,9 +4,9 @@ include $(ADK_TOPDIR)/rules.mk PKG_NAME:= lftp -PKG_VERSION:= 4.7.7 +PKG_VERSION:= 4.9.2 PKG_RELEASE:= 1 -PKG_HASH:= 4483df04502660dcc65a11cf09d530e31bea99483d69328c1c5cbaa41d6619b4 +PKG_HASH:= c517c4f4f9c39bd415d7313088a2b1e313b2d386867fe40b7692b83a20f0670d PKG_DESCR:= ftp and http client PKG_SECTION:= net/http PKG_DEPENDS:= libncurses libexpat diff --git a/package/lftp/patches/patch-src_FileCopy_cc b/package/lftp/patches/patch-src_FileCopy_cc deleted file mode 100644 index a8b1d0d41..000000000 --- a/package/lftp/patches/patch-src_FileCopy_cc +++ /dev/null @@ -1,11 +0,0 @@ ---- lftp-4.7.7.orig/src/FileCopy.cc 2017-03-07 08:35:47.000000000 +0100 -+++ lftp-4.7.7/src/FileCopy.cc 2017-06-05 21:33:11.719033961 +0200 -@@ -36,7 +36,7 @@ - #include <sys/types.h> - #include <sys/stat.h> - #include <fcntl.h> --#include <math.h> -+#include <cmath> - #include <stddef.h> - #include "FileCopy.h" - #include "url.h" diff --git a/package/lftp/patches/patch-src_NetAccess_cc b/package/lftp/patches/patch-src_NetAccess_cc deleted file mode 100644 index 2ed120587..000000000 --- a/package/lftp/patches/patch-src_NetAccess_cc +++ /dev/null @@ -1,11 +0,0 @@ ---- lftp-4.7.7.orig/src/NetAccess.cc 2016-12-15 13:25:36.000000000 +0100 -+++ lftp-4.7.7/src/NetAccess.cc 2017-06-05 22:14:19.905585919 +0200 -@@ -21,7 +21,7 @@ - - #include <errno.h> - #include <assert.h> --#include <math.h> -+#include <cmath> - #include <sys/types.h> - - #include "NetAccess.h" diff --git a/package/lftp/patches/patch-src_ResMgr_cc b/package/lftp/patches/patch-src_ResMgr_cc deleted file mode 100644 index ad66c2883..000000000 --- a/package/lftp/patches/patch-src_ResMgr_cc +++ /dev/null @@ -1,11 +0,0 @@ ---- lftp-4.7.7.orig/src/ResMgr.cc 2017-02-07 17:57:49.000000000 +0100 -+++ lftp-4.7.7/src/ResMgr.cc 2017-06-05 21:24:11.348321502 +0200 -@@ -23,7 +23,7 @@ - #include <ctype.h> - #include <unistd.h> - #include <stdlib.h> --#include <math.h> -+#include <cmath> - #include <sys/types.h> - #include <sys/stat.h> - #include <errno.h> diff --git a/package/lftp/patches/patch-src_Speedometer_cc b/package/lftp/patches/patch-src_Speedometer_cc deleted file mode 100644 index a5c3ec73e..000000000 --- a/package/lftp/patches/patch-src_Speedometer_cc +++ /dev/null @@ -1,11 +0,0 @@ ---- lftp-4.7.7.orig/src/Speedometer.cc 2016-02-20 14:57:53.000000000 +0100 -+++ lftp-4.7.7/src/Speedometer.cc 2017-06-05 21:41:06.185512853 +0200 -@@ -18,7 +18,7 @@ - */ - - #include <config.h> --#include <math.h> -+#include <cmath> - #include <stdlib.h> - #include "Speedometer.h" - #include "misc.h" diff --git a/package/lftp/patches/patch-src_lftp_ssl_cc b/package/lftp/patches/patch-src_lftp_ssl_cc new file mode 100644 index 000000000..d8569322e --- /dev/null +++ b/package/lftp/patches/patch-src_lftp_ssl_cc @@ -0,0 +1,38 @@ +--- lftp-4.9.2.orig/src/lftp_ssl.cc 2020-01-29 21:36:37.000000000 +0100 ++++ lftp-4.9.2/src/lftp_ssl.cc 2024-02-22 14:42:11.060809468 +0100 +@@ -34,7 +34,7 @@ + #include "misc.h" + #include "network.h" + #include "buffer.h" +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER + #define X509_STORE_CTX_get_by_subject X509_STORE_get_by_subject + #endif + extern "C" { +@@ -775,7 +775,7 @@ error: + #elif USE_OPENSSL + //static int lftp_ssl_passwd_callback(char *buf,int size,int rwflag,void *userdata); + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000L) + // for compatibility with older versions + X509_OBJECT *X509_OBJECT_new() + { +@@ -840,7 +840,7 @@ lftp_ssl_openssl_instance::lftp_ssl_open + ssl_ctx=SSL_CTX_new(); + X509_set_default_verify_paths(ssl_ctx->cert); + #else +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER + SSLeay_add_ssl_algorithms(); + #endif + ssl_ctx=SSL_CTX_new(SSLv23_client_method()); +@@ -1080,7 +1080,7 @@ void lftp_ssl_openssl::copy_sid(const lf + + const char *lftp_ssl_openssl::strerror() + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER + SSL_load_error_strings(); + #endif + int error=ERR_get_error(); |