megacmd: moved into MEGAcmd and megasdk
This commit is contained in:
parent
e3f3b5a793
commit
2a9e002d66
5 changed files with 0 additions and 104 deletions
|
@ -1 +0,0 @@
|
|||
megacmd
|
|
@ -1 +0,0 @@
|
|||
megacmd
|
|
@ -1,29 +0,0 @@
|
|||
--- net.cpp 2017-11-18 11:58:03.524955739 +0100
|
||||
+++ src/posix/net.cpp 2017-11-18 11:59:41.082959457 +0100
|
||||
@@ -53,7 +53,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10000000
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000 || defined (LIBRESSL_VERSION_NUMBER)
|
||||
void CurlHttpIO::id_function(CRYPTO_THREADID* id)
|
||||
{
|
||||
CRYPTO_THREADID_set_pointer(id, (void *)THREAD_CLASS::currentThreadId());
|
||||
@@ -137,7 +137,7 @@
|
||||
#if defined(USE_OPENSSL) && !defined(OPENSSL_IS_BORINGSSL)
|
||||
|
||||
if (!CRYPTO_get_locking_callback()
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10000000
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000 || defined (LIBRESSL_VERSION_NUMBER)
|
||||
&& !CRYPTO_THREADID_get_callback())
|
||||
#else
|
||||
&& !CRYPTO_get_id_callback())
|
||||
@@ -147,7 +147,7 @@
|
||||
int numLocks = CRYPTO_num_locks();
|
||||
sslMutexes = new MUTEX_CLASS*[numLocks];
|
||||
memset(sslMutexes, 0, numLocks * sizeof(MUTEX_CLASS*));
|
||||
-#if OPENSSL_VERSION_NUMBER >= 0x10000000
|
||||
+#if OPENSSL_VERSION_NUMBER >= 0x10000000 || defined (LIBRESSL_VERSION_NUMBER)
|
||||
CRYPTO_THREADID_set_callback(CurlHttpIO::id_function);
|
||||
#else
|
||||
CRYPTO_set_id_callback(CurlHttpIO::id_function);
|
|
@ -1,26 +0,0 @@
|
|||
diff --git examples/megacmd/megacmdshell/megacmdshell.cpp examples/megacmd/megacmdshell/megacmdshell.cpp
|
||||
index be281cb7..979ab793 100644
|
||||
--- examples/megacmd/megacmdshell/megacmdshell.cpp
|
||||
+++ examples/megacmd/megacmdshell/megacmdshell.cpp
|
||||
@@ -33,6 +33,8 @@
|
||||
#include <algorithm>
|
||||
#include <stdio.h>
|
||||
|
||||
+#include <string.h>
|
||||
+
|
||||
enum
|
||||
{
|
||||
MCMD_OK = 0, ///< Everything OK
|
||||
diff --git examples/megacmd/megacmdshell/megacmdshellcommunications.cpp examples/megacmd/megacmdshell/megacmdshellcommunications.cpp
|
||||
index 8046a8b5..a01d07ab 100644
|
||||
--- examples/megacmd/megacmdshell/megacmdshellcommunications.cpp
|
||||
+++ examples/megacmd/megacmdshell/megacmdshellcommunications.cpp
|
||||
@@ -27,6 +27,8 @@
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
+#include <string.h>
|
||||
+
|
||||
#ifdef _WIN32
|
||||
#include <shlobj.h> //SHGetFolderPath
|
||||
#include <Shlwapi.h> //PathAppend
|
|
@ -1,47 +0,0 @@
|
|||
# Template file for 'megacmd'
|
||||
pkgname=megacmd
|
||||
version=3.2.7
|
||||
revision=1
|
||||
wrksrc=sdk-${version}
|
||||
build_style=gnu-configure
|
||||
make_build_args='LIBTOOLFLAGS="--tag=CXX"'
|
||||
hostmakedepends="base-devel autogen doxygen"
|
||||
makedepends="libcurl-devel c-ares-devel libressl-devel crypto++-devel
|
||||
zlib-devel sqlite-devel freeimage-devel readline-devel libsodium-devel
|
||||
pcre-devel pcre2-devel libuv-devel fuse-devel"
|
||||
depends="pcre libpcrecpp c-ares libcurl libsodium sqlite freeimage libressl crypto++"
|
||||
short_desc="The official client for cloud service mega.nz"
|
||||
maintainer="jbgg <jbosco.gg@gmail.com>"
|
||||
license="2-clause-BSD"
|
||||
homepage="https://mega.nz"
|
||||
distfiles="https://github.com/meganz/sdk/archive/v${version}.tar.gz"
|
||||
checksum=fc0bab64a45f01988b5c9956047f4e5037608ec7c39d6c2e661dfa33020c8ac1
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
aarch64*) broken="https://travis-ci.org/voidlinux/void-packages/jobs/281616641";;
|
||||
esac
|
||||
|
||||
pre_configure() {
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
libmega_package() {
|
||||
short_desc="Library for the cloud service mega.nz"
|
||||
pkg_install() {
|
||||
vmove "usr/lib/*.so.*"
|
||||
}
|
||||
}
|
||||
|
||||
libmega-devel_package() {
|
||||
depends="libmega>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/lib/pkgconfig
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue