From owner-svn-ports-all@freebsd.org Sun Nov 6 14:16:13 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 002C8C334D1; Sun, 6 Nov 2016 14:16:13 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B253FC7; Sun, 6 Nov 2016 14:16:12 +0000 (UTC) (envelope-from jhale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uA6EGBiS086967; Sun, 6 Nov 2016 14:16:11 GMT (envelope-from jhale@FreeBSD.org) Received: (from jhale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uA6EGBqP086963; Sun, 6 Nov 2016 14:16:11 GMT (envelope-from jhale@FreeBSD.org) Message-Id: <201611061416.uA6EGBqP086963@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhale set sender to jhale@FreeBSD.org using -f From: "Jason E. Hale" Date: Sun, 6 Nov 2016 14:16:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r425492 - in head/net/megatools: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2016 14:16:13 -0000 Author: jhale Date: Sun Nov 6 14:16:11 2016 New Revision: 425492 URL: https://svnweb.freebsd.org/changeset/ports/425492 Log: Update to 1.9.98 PR: 214212 Submitted by: Max Kostikov (maintainer) Added: head/net/megatools/files/ head/net/megatools/files/patch-lib_mega.c (contents, props changed) Modified: head/net/megatools/Makefile head/net/megatools/distinfo head/net/megatools/pkg-plist Modified: head/net/megatools/Makefile ============================================================================== --- head/net/megatools/Makefile Sun Nov 6 13:34:17 2016 (r425491) +++ head/net/megatools/Makefile Sun Nov 6 14:16:11 2016 (r425492) @@ -2,35 +2,30 @@ # $FreeBSD$ PORTNAME= megatools -PORTVERSION= 1.9.97 +PORTVERSION= 1.9.98 CATEGORIES= net MASTER_SITES= http://megatools.megous.com/builds/ MAINTAINER= max@kostikov.co -COMMENT= Tools for MEGA.CO.NZ cloud drive +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 RUN_DEPENDS= glib-networking>=2.32.0:net/glib-networking CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto -lssl" -USES= gmake pkgconfig libtool pathfix -USE_LDCONFIG= yes +USES= gettext-runtime gmake libtool pathfix pkgconfig ssl GNU_CONFIGURE= yes USE_GNOME= glib20 -USE_OPENSSL= yes INSTALL_TARGET= install-strip -CONFIGURE_ARGS= --enable-introspection=no -OPTIONS_DEFINE= FUSE -OPTIONS_DEFAULT= FUSE -OPTIONS_SUB= yes - -FUSE_USES= fuse -FUSE_CONFIGURE_WITH= fuse +post-patch: +# Unsilence build + ${REINPLACE_CMD} -e '/^export\ MAKEFLAGS/s|^|#|' ${WRKSRC}/Makefile.in .include Modified: head/net/megatools/distinfo ============================================================================== --- head/net/megatools/distinfo Sun Nov 6 13:34:17 2016 (r425491) +++ head/net/megatools/distinfo Sun Nov 6 14:16:11 2016 (r425492) @@ -1,2 +1,3 @@ -SHA256 (megatools-1.9.97.tar.gz) = 3316c56ee55adef0ab113aad41ef95eb28fc15218639f69b1e04362b1c725af3 -SIZE (megatools-1.9.97.tar.gz) = 446801 +TIMESTAMP = 1478256777 +SHA256 (megatools-1.9.98.tar.gz) = 9b0521a4d27dbc417fc8e12610ac1e1da729bf6d6eb5bef927ef3670b372a16f +SIZE (megatools-1.9.98.tar.gz) = 285805 Added: head/net/megatools/files/patch-lib_mega.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/megatools/files/patch-lib_mega.c Sun Nov 6 14:16:11 2016 (r425492) @@ -0,0 +1,33 @@ +Fix build for FreeBSD 9.x base OpenSSL and LibreSSL. Fix for LibreSSL is +already in upstream repository, so this file can be removed once FreeBSD 9.x +support is dropped AND the next version of megatools is released. +--- lib/mega.c.orig 2016-11-03 13:45:42 UTC ++++ lib/mega.c +@@ -29,7 +29,9 @@ + #include + #include + #include ++#if OPENSSL_VERSION_NUMBER >= 0x101000000L && !defined(LIBRESSL_VERSION_NUMBER) + #include ++#endif + #include + #include + #include +@@ -803,7 +805,7 @@ static gboolean rsa_key_gen(rsa_key* k) + return FALSE; + } + +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L ++#if OPENSSL_VERSION_NUMBER >= 0x101000000L && !defined(LIBRESSL_VERSION_NUMBER) + RSA_get0_key(key, &k->m, &k->e, &k->d); + RSA_get0_factors(key, &k->q, &k->p); + RSA_get0_crt_params(key, NULL, NULL, &k->u); +@@ -2988,7 +2990,7 @@ struct _put_data + GByteArray* buffer; + }; + +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L ++#if OPENSSL_VERSION_NUMBER >= 0x101000000L && !defined(LIBRESSL_VERSION_NUMBER) + void AES_ctr128_encrypt( + const unsigned char *in, + unsigned char *out, Modified: head/net/megatools/pkg-plist ============================================================================== --- head/net/megatools/pkg-plist Sun Nov 6 13:34:17 2016 (r425491) +++ head/net/megatools/pkg-plist Sun Nov 6 14:16:11 2016 (r425492) @@ -1,29 +1,15 @@ bin/megacopy bin/megadf bin/megadl -%%FUSE%%bin/megafs 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-rsa-key.h -include/mega/mega.h -include/mega/utils.h -lib/libmega.a -lib/libmega.so -lib/libmega.so.0 -lib/libmega.so.0.0.0 -libdata/pkgconfig/libmega.pc man/man1/megacopy.1.gz man/man1/megadf.1.gz man/man1/megadl.1.gz -%%FUSE%%man/man1/megafs.1.gz man/man1/megaget.1.gz man/man1/megals.1.gz man/man1/megamkdir.1.gz