megacopy stopped working

Code:
root@F3ja:/usr/home/luba # megacopy --local /home/luba/mega --remote /Root --download

ERROR: Can't login to mega.nz: API call 'us' failed: Server returned error EEXPIRED
 
The version of net/megatools in the ports tree is fairly old, it could probably use an update (website has a 1.11.1 available).
 
Code:
root@F3ja:/usr/home/luba # pkg info megatools

megatools-1.10.3

Name           : megatools

Version        : 1.10.3

Installed on   : Tue May  2 12:09:36 2023 EEST

Origin         : net/megatools

Architecture   : FreeBSD:13:amd64

Prefix         : /usr/local

Categories     : net

Licenses       : GPLv2

Maintainer     : max@kostikov.co

WWW            : https://megatools.megous.com/

Comment        : Command line tools for MEGA.NZ cloud drive

Options        :

DOCS           : on

Shared Libs required:

libintl.so.8

libgobject-2.0.so.0

libglib-2.0.so.0

libgio-2.0.so.0

libcurl.so.4

Annotations    :

FreeBSD_version: 1301000

repo_type      : binary

repository     : FreeBSD

Flat size      : 1.26MiB

Description    :

Megatools is a collection of programs for accessing Mega

service from a command line of your desktop or server.


Megatools allow you to copy individual files as well as

entire directory trees to and from the cloud. You can also

perform streaming downloads for example to preview videos

and audio files, without needing to download the entire

file.


WWW: https://megatools.megous.com/
 
Version : 1.10.3

Try to build after updating the port.

Fetch a ports tree matching the package repository. "quarterly" ports tree for "quarterly" package repository, or "latest".

Don't mix "quarterly" package repository with "latest" ports tree and vice versa .

Check package repository:
Code:
# pkg -vv | grep url

If you are unfamiliar how to install a ports tree, see FreeBSD handbook chapter 4.5.1. Installing the Ports Collection, Procedure: Git Method.
Code:
# cd /usr/ports/net/megatools/

Edit Makefile, change

PORTVERSION=    1.10.3
to
PORTVERSION=    1.11.1.20230212

Execute
# make clean
# make deinstall
# mv distinfo distinfo.orig
# make makesum
# make install-missing-packages
# make install clean

To remove the ports build dependencies, run pkg autoremove.
 
Code:
root@F3ja:/usr/home/luba # pkg -vv | grep url
   url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:13:amd64/latest",

Where did you get version 1.11.1.20230212, in megatools-1.10.3 ports?
 
Where did you get version 1.11.1.20230212, in megatools-1.10.3 ports?

From the applications port Makefile I get the projects home page and the site from where the tarball is downloaded:
Code:
# cd /usr/ports/net/megatools

# less Makefile
...
MASTER_SITES=   https://megatools.megous.com/builds/
...
WWW=            https://megatools.megous.com/

I view the Makefile in x11/alacritty. Clicking the URL opens the web page in the default internet browser.

https://megatools.megous.com/ .
Code:
News

2023-02-12
    Megatools 1.11.1 released with some bugfixes.

https://megatools.megous.com/builds/ .
Rich (BB code):
Index of /builds/

../
builds/                                            12-Feb-2023 19:45                   -
LATEST                                             12-Feb-2023 19:45                  26
LICENSE                                            31-Dec-2014 03:43               18834
NEWS                                               12-Feb-2023 19:38               19154
megatools-1.10.2.tar.gz                            31-Jul-2018 11:52              300486
megatools-1.10.2.tar.gz.asc                        31-Jul-2018 11:53                 833
megatools-1.10.3.tar.gz                            15-Apr-2020 10:21              196361
megatools-1.10.3.tar.gz.asc                        15-Apr-2020 10:22                 228
megatools-1.11.0.20220519.tar.gz                   19-May-2022 15:08              105567
megatools-1.11.0.20220519.tar.gz.asc               19-May-2022 15:08                 228
megatools-1.11.1.20230212.tar.gz                   12-Feb-2023 19:42              105339
megatools-1.11.1.20230212.tar.gz.asc               12-Feb-2023 19:42                 228
 
Code:
root@F3ja:/usr/ports/net/megatools # make install clean

===>  Patching for megatools-1.11.1.20230212

/usr/bin/sed -i.bak -e '/^export\ MAKEFLAGS/s|^|#|' /usr/ports/net/megatools/work/megatools-1.11.1.20230212/Makefile.in

sed: /usr/ports/net/megatools/work/megatools-1.11.1.20230212/Makefile.in: No such file or directory

*** Error code 1


Stop.

make[1]: stopped in /usr/ports/net/megatools

*** Error code 1


Stop.

make: stopped in /usr/ports/net/megatools
 
Elimelech, open a PR, report the error and ask for an update.

If you like to experiment, you could try building from source code directly. See megatools-1.11.1.20230212/README for instructions.
 
Code:
root@F3ja:/usr/ports/net/megatools # megatools copy --download --local /home/luba/mega/backup --remote /Root/backup

ERROR: Remote directory not found /Root/backup
The /Root/buckap folder is present on MEGA.nz

 
Back
Top