NetBSD Problem Report #50471

From www@NetBSD.org  Wed Nov 25 11:07:42 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 165F9A6552
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Nov 2015 11:07:42 +0000 (UTC)
Message-Id: <20151125110740.53EB6A6558@mollari.NetBSD.org>
Date: Wed, 25 Nov 2015 11:07:40 +0000 (UTC)
From: root@zta.lk
Reply-To: root@zta.lk
To: gnats-bugs@NetBSD.org
Subject: Add megatools to pkgsrc net
X-Send-Pr-Version: www-1.0

>Number:         50471
>Category:       pkg
>Synopsis:       Add megatools to pkgsrc net
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 25 11:10:00 +0000 2015
>Closed-Date:    Fri Nov 27 10:31:31 +0000 2015
>Last-Modified:  Fri Nov 27 10:35:00 +0000 2015
>Originator:     Aleksej Lebedev
>Release:        pkgsrc HEAD
>Organization:
Tomtom
>Environment:
Linux zhtw-pc 3.19.0-33-generic #38-Ubuntu SMP Fri Nov 6 18:18:12 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>Description:
I added megatools (https://github.com/megous/megatools) to pkgsrc/wip quite a while ago.

I tested it on my Linux x86_64, Mac OS X (latest) and NetBSD evbarm (on Raspberry PI 2).
>How-To-Repeat:

>Fix:
diff -urN net.orig/megatools/DESCR net/megatools/DESCR
--- net.orig/megatools/DESCR	1970-01-01 00:00:00.000000000 +0000
+++ net/megatools/DESCR	2015-11-25 10:54:43.018979281 +0000
@@ -0,0 +1,8 @@
+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.
+
+Mega website can be found at mega.co.nz.
diff -urN net.orig/megatools/Makefile net/megatools/Makefile
--- net.orig/megatools/Makefile	1970-01-01 00:00:00.000000000 +0000
+++ net/megatools/Makefile	2015-11-25 10:54:43.018979281 +0000
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+DISTNAME=	megatools-1.9.95
+CATEGORIES=	filesystems security
+MASTER_SITES=	http://megatools.megous.com/builds/
+
+MAINTAINER=	root@zta.lk
+HOMEPAGE=	http://megatools.megous.com/builds/
+COMMENT=	Command line client for Mega.co.nz
+LICENSE=	gnu-gpl-v2
+
+DEPENDS+=	glib-networking>=2.36.2:../../net/glib-networking
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	pkg-config gmake
+
+PKGCONFIG_OVERRIDE+=	libmega.pc.in
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -urN net.orig/megatools/PLIST net/megatools/PLIST
--- net.orig/megatools/PLIST	1970-01-01 00:00:00.000000000 +0000
+++ net/megatools/PLIST	2015-11-25 10:54:43.018979281 +0000
@@ -0,0 +1,42 @@
+@comment $NetBSD$
+bin/megacopy
+bin/megadf
+bin/megadl
+bin/megaget
+bin/megals
+bin/megamkdir
+bin/megaput
+bin/megareg
+bin/megarm
+include/mega/mega-aes-ctr-encryptor.h
+include/mega/mega-aes-key.h
+include/mega/mega-chunked-cbc-mac.h
+include/mega/mega-enum-types.h
+include/mega/mega-http-client.h
+include/mega/mega-http-input-stream.h
+include/mega/mega-http-io-stream.h
+include/mega/mega-http-output-stream.h
+include/mega/mega-rsa-key.h
+include/mega/mega.h
+include/mega/megatypes.h
+include/mega/utils.h
+lib/libmega.la
+lib/pkgconfig/libmega.pc
+man/man1/megacopy.1
+man/man1/megadf.1
+man/man1/megadl.1
+man/man1/megafs.1
+man/man1/megaget.1
+man/man1/megals.1
+man/man1/megamkdir.1
+man/man1/megaput.1
+man/man1/megareg.1
+man/man1/megarm.1
+man/man5/megarc.5
+man/man7/megatools.7
+share/doc/megatools/HACKING
+share/doc/megatools/INSTALL
+share/doc/megatools/LICENSE
+share/doc/megatools/NEWS
+share/doc/megatools/README
+share/doc/megatools/TODO
diff -urN net.orig/megatools/distinfo net/megatools/distinfo
--- net.orig/megatools/distinfo	1970-01-01 00:00:00.000000000 +0000
+++ net/megatools/distinfo	2015-11-25 10:54:43.018979281 +0000
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (megatools-1.9.95.tar.gz) = 967d89de26dacf8077db7f03c78e0c240c10d48f
+RMD160 (megatools-1.9.95.tar.gz) = 5f856c120113658eeefcaf8914d7345ac55ee1da
+Size (megatools-1.9.95.tar.gz) = 450706 bytes

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Fri, 27 Nov 2015 09:57:36 +0000
Responsible-Changed-Why:
Take.


State-Changed-From-To: open->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Fri, 27 Nov 2015 10:31:31 +0000
State-Changed-Why:
I have just imported it in pkgsrc (and while here updated its
HOMEPAGE).
Thank you very much Aleksej!


From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/50471 CVS commit: pkgsrc/net/megatools
Date: Fri, 27 Nov 2015 10:28:02 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Fri Nov 27 10:28:02 UTC 2015

 Added Files:
 	pkgsrc/net/megatools: DESCR Makefile PLIST distinfo

 Log Message:
 Import megatools-1.9.95 as net/megatools.
 Packaged in pkgsrc-wip by Aleksej Lebedev.
 Fixes PR pkg/50471.

 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.

 Mega website can be found at mega.co.nz.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/net/megatools/DESCR \
     pkgsrc/net/megatools/Makefile pkgsrc/net/megatools/PLIST \
     pkgsrc/net/megatools/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.