diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-03-10 15:47:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-03-10 15:47:36 +0000 |
commit | f6a326ba3581359d31265cf21befbd7ecc001de3 (patch) | |
tree | 2aa871d0d325d9108ebe55cf9ac597014f360793 | |
parent | 47aa886c394162bc2f3224bdb4dd5f03c2c5df16 (diff) |
net-misc/megasync : drop package, doesn't work in hardened mode
-rw-r--r-- | net-misc/megasync/files/megasync-libressl.patch | 12 | ||||
-rw-r--r-- | net-misc/megasync/megasync-2.9.10.ebuild | 101 |
2 files changed, 0 insertions, 113 deletions
diff --git a/net-misc/megasync/files/megasync-libressl.patch b/net-misc/megasync/files/megasync-libressl.patch deleted file mode 100644 index 13930b6f..00000000 --- a/net-misc/megasync/files/megasync-libressl.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ru MEGAsync_orig/src/MEGASync/mega/src/posix/net.cpp MEGAsync/src/MEGASync/mega/src/posix/net.cpp ---- MEGAsync_orig/src/MEGASync/mega/src/posix/net.cpp 2016-09-04 00:57:26.709821499 +0200 -+++ MEGAsync/src/MEGASync/mega/src/posix/net.cpp 2016-09-04 01:00:18.596739533 +0200 -@@ -34,7 +34,7 @@ - std::transform(curlssl.begin(), curlssl.end(), curlssl.begin(), ::tolower); - - #if !defined(USE_CURL_PUBLIC_KEY_PINNING) || defined(WINDOWS_PHONE) -- if (!strstr(curlssl.c_str(), "openssl")) -+ if (!strstr(curlssl.c_str(), "openssl") && !strstr(curlssl.c_str(), "libressl")) - { - LOG_fatal << "cURL built without OpenSSL support. Aborting."; - exit(EXIT_FAILURE); diff --git a/net-misc/megasync/megasync-2.9.10.ebuild b/net-misc/megasync/megasync-2.9.10.ebuild deleted file mode 100644 index 3db8f5ca..00000000 --- a/net-misc/megasync/megasync-2.9.10.ebuild +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=6 - -inherit qmake-utils git-r3 autotools eutils - -DESCRIPTION="Automated syncing between your computers and your MEGA cloud drive" -HOMEPAGE="https://mega.nz/ https://github.com/meganz/MEGAsync https://github.com/meganz/sdk" -EGIT_REPO_URI="https://github.com/meganz/MEGAsync.git" -EGIT_COMMIT="2e03defad7e732afe5ffd6977eeb10558f25457b" - -LICENSE="MEGA-Code-Review BSD-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="qt5 libressl" - -RESTRICT="bindist" - -RDEPEND="dev-libs/crypto++ - sys-libs/zlib - dev-db/sqlite:3 - dev-libs/libsodium - net-dns/c-ares - !libressl? ( - net-misc/curl[ssl,curl_ssl_openssl] - ) - libressl? ( - net-misc/curl[ssl,curl_ssl_libressl] - ) - !qt5? ( - dev-qt/qtcore:4 - dev-qt/qtgui:4 - dev-qt/qtdbus:4 - ) - qt5? ( - dev-qt/qtcore:5 - dev-qt/qtgui:5 - dev-qt/qtdbus:5 - dev-qt/qtwidgets:5 - dev-qt/qtnetwork:5 - )" -DEPEND="${RDEPEND} - app-arch/unzip" - -src_prepare() { - default - - eapply "${FILESDIR}/megasync-libressl.patch" - - cd src/MEGASync/mega || die - eautoreconf -} - -src_configure() { - cd src/MEGASync/mega || die - econf \ - --disable-curl-checks \ - --disable-megaapi \ - --with-cryptopp \ - --with-zlib \ - --with-cares \ - --with-curl \ - --without-sodium \ - --without-freeimage \ - --without-readline \ - --without-termcap \ - --disable-posix-threads \ - --disable-examples - - cd ../.. || die - $(usex qt5 eqmake5 eqmake4) MEGA.pro -} - -src_compile() { - cd src || die - # bypass qtchooser, some may only have qt4, some qt5 - if use qt5 ; then - ${ROOT}usr/$(get_libdir)/qt5/bin/lrelease MEGASync/MEGASync.pro || die - elif ! use qt5 ; then - ${ROOT}usr/$(get_libdir)/qt4/bin/lrelease MEGASync/MEGASync.pro || die - fi - emake -} - -src_install() { - dodoc README.md CREDITS.md - - cd src/MEGASync || die - dobin megasync - - cd platform/linux/data || die - insinto /usr/share/applications - doins megasync.desktop - - cd icons/hicolor || die - for size in 16 32 48 128 256; do - doicon -s ${size} ${size}x${size}/apps/mega.png - done -} |