megacmd: Enable WebDAV support

This commit is contained in:
Tee KOBAYASHI 2023-01-12 10:12:11 +09:00 committed by xtkoba
parent b244fa8b32
commit 864e197c34
3 changed files with 34 additions and 1 deletions

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Provides non UI access to MEGA services"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.5.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=git+https://github.com/meganz/MEGAcmd
TERMUX_PKG_GIT_BRANCH=${TERMUX_PKG_VERSION}_Linux
# dbus is required for $PREFIX/var/lib/dbus/machine-id

View File

@ -0,0 +1,14 @@
https://github.com/termux/termux-packages/issues/14467
https://github.com/meganz/MEGAcmd/issues/507
--- a/sdk/include/megaapi_impl.h
+++ b/sdk/include/megaapi_impl.h
@@ -3296,7 +3296,7 @@
void setMaxBufferSize(unsigned int bufferSize);
void setMaxOutputSize(unsigned int outputSize);
- static const unsigned int MAX_BUFFER_SIZE = 2097152;
+ static const unsigned int MAX_BUFFER_SIZE = (1 << 25);
static const unsigned int MAX_OUTPUT_SIZE = 16384;
protected:

View File

@ -0,0 +1,19 @@
https://github.com/termux/termux-packages/issues/14467
https://github.com/meganz/MEGAcmd/issues/395
--- a/src/megacmdcommonutils.h
+++ b/src/megacmdcommonutils.h
@@ -16,6 +16,13 @@
* program.
*/
+#ifdef HAVE_CONFIG_H
+#include "mega/config.h"
+#endif
+#ifndef HAVE_LIBUV
+#error HAVE_LIBUV not defined.
+#endif
+
#ifndef MEGACMDCOMMONUTILS_H
#define MEGACMDCOMMONUTILS_H