Index: head/net/megatools/files/patch-lib_mega.c =================================================================== --- head/net/megatools/files/patch-lib_mega.c (revision 475574) +++ head/net/megatools/files/patch-lib_mega.c (nonexistent) @@ -1,46 +0,0 @@ ---- lib/mega.c.orig 2018-07-22 21:41:55 UTC -+++ lib/mega.c -@@ -3172,6 +3172,7 @@ static void tman_worker_upload_chunk(struct transfer_c - GError *local_err = NULL; - gc_free gchar *url = NULL; - gc_string_free GString *response = NULL; -+ gc_free gchar* chksum = NULL; - - tman_debug("W[%d]: started for chunk %d\n", worker->index, c->index); - -@@ -3217,7 +3218,7 @@ static void tman_worker_upload_chunk(struct transfer_c - } - - // prepare URL including chunk offset -- gc_free gchar* chksum = upload_checksum(buf, c->size); -+ chksum = upload_checksum(buf, c->size); - url = g_strdup_printf("%s/%" G_GOFFSET_FORMAT "?c=%s", t->upload_url, c->offset, chksum); - - // perform upload POST -@@ -4636,6 +4637,26 @@ gboolean mega_node_get_path(struct mega_node *n, gchar - gboolean mega_node_is_container(struct mega_node *n) - { - return n && n->type != MEGA_NODE_FILE; -+} -+ -+// }}} -+// {{{ mega_node_has_ancestor -+ -+gboolean mega_node_has_ancestor(struct mega_node *n, struct mega_node *ancestor) -+{ -+ g_return_val_if_fail(n != NULL, FALSE); -+ g_return_val_if_fail(ancestor != NULL, FALSE); -+ -+ struct mega_node* it = n->parent; -+ -+ while (it) { -+ if (it == ancestor) -+ return TRUE; -+ -+ it = it->parent; -+ } -+ -+ return FALSE; - } - - // }}} Property changes on: head/net/megatools/files/patch-lib_mega.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/megatools/files/patch-lib_mega.h =================================================================== --- head/net/megatools/files/patch-lib_mega.h (revision 475574) +++ head/net/megatools/files/patch-lib_mega.h (nonexistent) @@ -1,19 +0,0 @@ ---- lib/mega.h.orig 2018-07-22 21:40:40 UTC -+++ lib/mega.h -@@ -118,7 +118,7 @@ struct mega_download_data_params { - - gchar *node_handle; - gchar *node_name; -- gsize node_size; -+ guint64 node_size; - }; - - #define MEGA_DEBUG_API 0x01 -@@ -181,6 +181,7 @@ void mega_download_data_free(struct mega_download_data - gboolean mega_node_is_writable(struct mega_session *s, struct mega_node *n); - - gboolean mega_node_is_container(struct mega_node *n); -+gboolean mega_node_has_ancestor(struct mega_node *n, struct mega_node *ancestor); - gchar *mega_node_get_link(struct mega_node *n, gboolean include_key); - gchar *mega_node_get_key(struct mega_node *n); - gboolean mega_node_get_path(struct mega_node *n, gchar *buf, gsize len); Property changes on: head/net/megatools/files/patch-lib_mega.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/net/megatools/Makefile =================================================================== --- head/net/megatools/Makefile (revision 475574) +++ head/net/megatools/Makefile (revision 475575) @@ -1,30 +1,30 @@ # Created by: Max V. Kostikov # $FreeBSD$ PORTNAME= megatools -PORTVERSION= 1.10.0 +PORTVERSION= 1.10.1 CATEGORIES= net MASTER_SITES= https://megatools.megous.com/builds/ MAINTAINER= max@kostikov.co COMMENT= Command line tools for MEGA.NZ cloud drive LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libcurl.so:ftp/curl BUILD_DEPENDS= asciidoc:textproc/asciidoc CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" USES= gettext-runtime gmake libtool pathfix pkgconfig ssl GNU_CONFIGURE= yes USE_GNOME= glib20 INSTALL_TARGET= install-strip post-patch: # Unsilence build ${REINPLACE_CMD} -e '/^export\ MAKEFLAGS/s|^|#|' ${WRKSRC}/Makefile.in .include Index: head/net/megatools/distinfo =================================================================== --- head/net/megatools/distinfo (revision 475574) +++ head/net/megatools/distinfo (revision 475575) @@ -1,3 +1,3 @@ -TIMESTAMP = 1532507562 -SHA256 (megatools-1.10.0.tar.gz) = 788a51d0977db95c371c97917aee3d39e145044b6bb70d671bc76c2ea6c4171b -SIZE (megatools-1.10.0.tar.gz) = 297369 +TIMESTAMP = 1532784946 +SHA256 (megatools-1.10.1.tar.gz) = 9938127db27b579d49aa8722bfdddd17833fe90668aa2670ce88d1c889452d67 +SIZE (megatools-1.10.1.tar.gz) = 299422