Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synology suggested changes: no stop option in package GUI, symbolic l… #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build/SynologyNAS/toolkit/source/megacmdpkg/INFO.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
source /pkgscripts/include/pkg_util.sh

package="MEGAcmd"
version="0.9.9000"
version="0.9.9"
displayname="MEGAcmd"
maintainer="Mega NZ"
arch="$(pkg_get_unified_platform)"
description="MEGAcmd command line tool"
This conversation was marked as resolved.
Show resolved Hide resolved
description="MEGAcmd command line tool. Access your MEGA.nz secure cloud storage account and upload/download files, use its commands in scripts, automatically synchronise folders between your MEGA.nz account and your Synology NAS. Connect to your NAS via ssh or Putty to use the MEGAcmd commands. Run mega-help from the command line for documentation, or see our User Guide online."
os_min_ver="6.1-14715"
maintainer="Mega Ltd."
maintaner_url="https://MEGA.nz"
support_url="https://mega.nz/help"
helpurl="https://github.com/meganz/MEGAcmd/blob/master/UserGuide.md"
thirdparty="yes"
ctl_stop="no"
[ "$(caller)" != "0 NULL" ] && return 0
pkg_dump_info

6 changes: 6 additions & 0 deletions build/SynologyNAS/toolkit/source/megacmdpkg/scripts/postinst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash

for C in mega-attr mega-backup mega-cd mega-cmd mega-cmd-server mega-confirm mega-cp mega-debug mega-deleteversions mega-du mega-exclude mega-exec mega-export mega-find mega-get mega-help mega-https mega-import mega-invite mega-ipc mega-killsession mega-lcd mega-log mega-login mega-logout mega-lpwd mega-ls mega-mkdir mega-mount mega-mv mega-passwd mega-permissions mega-preview mega-put mega-pwd mega-quit mega-reload mega-rm mega-session mega-share mega-showpcr mega-signup mega-speedlimit mega-sync mega-thumbnail mega-transfers mega-userattr mega-users mega-versio mega-webdav mega-whoami
do
ln -s $SYNOPKG_PKGDEST/$C /usr/local/bin/$C
done

exit 0

Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/bash

for C in mega-attr mega-backup mega-cd mega-cmd mega-cmd-server mega-confirm mega-cp mega-debug mega-deleteversions mega-du mega-exclude mega-exec mega-export mega-find mega-get mega-help mega-https mega-import mega-invite mega-ipc mega-killsession mega-lcd mega-log mega-login mega-logout mega-lpwd mega-ls mega-mkdir mega-mount mega-mv mega-passwd mega-permissions mega-preview mega-put mega-pwd mega-quit mega-reload mega-rm mega-session mega-share mega-showpcr mega-signup mega-speedlimit mega-sync mega-thumbnail mega-transfers mega-userattr mega-users mega-versio mega-webdav mega-whoami
do
rm /usr/local/bin/$C
done

exit 0

Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,32 @@
#if changed check no errors are logged in /var/log/bash_err.log on install or run steps

if [ "$SYNOPKG_TEMP_LOGFILE" = "" ] ; then
exit 3
# exit 3
exit 0
fi

echo "" > "$SYNOPKG_TEMP_LOGFILE" 2> /dev/null
#echo "" > "$SYNOPKG_TEMP_LOGFILE" 2> /dev/null
#
#if [ -e "$SYNOPKG_TEMP_LOGFILE" ] && [ -w "$SYNOPKG_TEMP_LOGFILE" ] ; then
# echo "Please use telnet/ssh/PuTTY or similar to connect and use MEGAcmd. Executables are at $SYNOPKG_PKGDEST/ " >> "$SYNOPKG_TEMP_LOGFILE"
#fi

#exit 3

case $1 in
start)
exit 0
;;
stop)
exit 0
;;
status)
exit 0
#exit 150
;;
*)
exit 0
;;
esac

if [ -e "$SYNOPKG_TEMP_LOGFILE" ] && [ -w "$SYNOPKG_TEMP_LOGFILE" ] ; then
echo "Please use telnet/ssh/PuTTY or similar to connect and use MEGAcmd. Executables are at $SYNOPKG_PKGDEST/ " >> "$SYNOPKG_TEMP_LOGFILE"
fi

exit 3
2 changes: 1 addition & 1 deletion sdk
Submodule sdk updated 109 files
1 change: 1 addition & 0 deletions src/comunicationsmanagerfilesockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#endif

using namespace mega;
using namespace std;

int ComunicationsManagerFileSockets::get_next_comm_id()
{
Expand Down
1 change: 1 addition & 0 deletions src/comunicationsmanagerportsockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#endif

using namespace mega;
using namespace std;

void closeSocket(SOCKET socket){
#ifdef _WIN32
Expand Down
1 change: 1 addition & 0 deletions src/listeners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "megacmdutils.h"

using namespace mega;
using namespace std;

#ifdef ENABLE_CHAT
void MegaCmdGlobalListener::onChatsUpdate(MegaApi*, MegaTextChatList*)
Expand Down
1 change: 1 addition & 0 deletions src/megacmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ std::ostringstream & operator<< ( std::ostringstream & ostr, std::wstring const
#endif

using namespace mega;
using namespace std;

MegaCmdExecuter *cmdexecuter;
MegaCmdSandbox *sandboxCMD;
Expand Down
4 changes: 2 additions & 2 deletions src/megacmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define OUTSTREAMTYPE std::wostream
#define OUTSTRINGSTREAM std::wostringstream
#define OUTSTRING std::wstring
#define COUT wcout
#define COUT std::wcout



Expand All @@ -39,7 +39,7 @@ void localwtostring(const std::wstring* wide, std::string *multibyte);
#define OUTSTREAMTYPE std::ostream
#define OUTSTRINGSTREAM std::ostringstream
#define OUTSTRING std::string
#define COUT cout
#define COUT std::cout
#endif

#include "megaapi_impl.h"
Expand Down
1 change: 1 addition & 0 deletions src/megacmdexecuter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <signal.h>

using namespace mega;
using namespace std;

static const char* rootnodenames[] = { "ROOT", "INBOX", "RUBBISH" };
static const char* rootnodepaths[] = { "/", "//in", "//bin" };
Expand Down