From f6a2517941b66a3b9e96d3fd776bcb0704e09c33 Mon Sep 17 00:00:00 2001 From: Lucian Poston Date: Sat, 19 May 2018 04:35:11 -0700 Subject: [PATCH] mail-mta/protonmail-bridge: new package Closes: https://bugs.gentoo.org/656112 Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- licenses/protonmail-bridge-EULA | 33 +++++++++++++++++ mail-mta/protonmail-bridge/Manifest | 1 + mail-mta/protonmail-bridge/metadata.xml | 8 ++++ .../protonmail-bridge-1.0.4.ebuild | 43 ++++++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 licenses/protonmail-bridge-EULA create mode 100644 mail-mta/protonmail-bridge/Manifest create mode 100644 mail-mta/protonmail-bridge/metadata.xml create mode 100644 mail-mta/protonmail-bridge/protonmail-bridge-1.0.4.ebuild diff --git a/licenses/protonmail-bridge-EULA b/licenses/protonmail-bridge-EULA new file mode 100644 index 00000000000..5a2af884ffd --- /dev/null +++ b/licenses/protonmail-bridge-EULA @@ -0,0 +1,33 @@ +End User License Agreement ("Agreement") + +Last updated: January 17, 2017 + +Please read this End User License Agreement ("Agreement") carefully before downloading or using the ProtonMail Bridge ("Application"). + +By downloading or using the Application, you are agreeing to be bound by the terms and conditions of this Agreement. +If you do not agree to the terms of this Agreement, do not download or use the Application. + +License +Proton Technologies AG ("ProtonMail") grants you a revocable, nonexclusive, non-transferable, limited license to download, install and use the Application solely for your personal, non-commercial purposes strictly in accordance with the terms of this Agreement. + +Restrictions +You agree not to, and you will not permit others to: +a) license, sell, rent, lease, assign, distribute, transmit, host, outsource, disclose or otherwise commercially exploit the Application or make the Application available to any third party. + +Modifications to Application +ProtonMail reserves the right to modify, suspend or discontinue, temporarily or permanently, the Application or any service to which it connects, with or without notice and without liability to you. + +Term and Termination +This Agreement shall remain in effect until terminated by you or ProtonMail. ProtonMail may, in its sole discretion, at any time and for any or no reason, suspend or terminate this Agreement with or without prior notice. +This Agreement will terminate immediately, without prior notice from ProtonMail, in the event that you fail to comply with any provision of this Agreement. You may also terminate this Agreement by deleting the Application and all copies thereof from your mobile device or from your desktop. +Upon termination of this Agreement, you shall cease all use of the Application and delete all copies of the Application from your mobile device or from your desktop. + +Severability +If any provision of this Agreement is held to be unenforceable or invalid, such provision will be changed and interpreted to accomplish the objectives of such provision to the greatest extent possible under applicable law and the remaining provisions will continue in full force and effect. + +Amendments to this Agreement +ProtonMail reserves the right, at its sole discretion, to modify or replace this Agreement at any time. If a revision is material, we will provide at least 30 days' notice prior to any new terms taking effect. What constitutes a material change will be determined at our sole discretion. + +Contact Information +If you have any questions about this Agreement, please contact us. + diff --git a/mail-mta/protonmail-bridge/Manifest b/mail-mta/protonmail-bridge/Manifest new file mode 100644 index 00000000000..2209f0bab9d --- /dev/null +++ b/mail-mta/protonmail-bridge/Manifest @@ -0,0 +1 @@ +DIST protonmail-bridge-1.0.4-1.x86_64.rpm 47422421 BLAKE2B 0846ce606feec1402e606a3b1bbe5c4431f804afc07e24689c77bcc64f211fe756a6890598e79cb6f6169a41a20158f7685b8d26a10fb91926abc77a5681ae20 SHA512 6d366ac02dec8ae3fa2bf188eff7cdaf6155c30386c76d29771362b573b3f3abc0e26df837955cb5f56d51ed1cd1b0b603911886478b5cfc7a750b2ee0077538 diff --git a/mail-mta/protonmail-bridge/metadata.xml b/mail-mta/protonmail-bridge/metadata.xml new file mode 100644 index 00000000000..b5c8841cc7f --- /dev/null +++ b/mail-mta/protonmail-bridge/metadata.xml @@ -0,0 +1,8 @@ + + + + + lucianposton@pm.me + Lucian Poston + + diff --git a/mail-mta/protonmail-bridge/protonmail-bridge-1.0.4.ebuild b/mail-mta/protonmail-bridge/protonmail-bridge-1.0.4.ebuild new file mode 100644 index 00000000000..cac065d534d --- /dev/null +++ b/mail-mta/protonmail-bridge/protonmail-bridge-1.0.4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit rpm + +DESCRIPTION="Serves ProtonMail to IMAP/SMTP clients" +HOMEPAGE="https://protonmail.com/bridge/" +SRC_URI="https://protonmail.com/download/${P}-1.x86_64.rpm" + +RESTRICT="mirror" + +LICENSE="MIT protonmail-bridge-EULA" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND=" + app-crypt/libsecret + dev-libs/glib + media-libs/mesa + media-sound/pulseaudio + virtual/opengl +" + +S="${WORKDIR}" + +QA_PREBUILT="*" + +src_install() { + # Using doins -r would strip executable bits from all binaries + cp -pPR "${S}"/usr "${D}"/ || die "Failed to copy files" + + dosym "Desktop-Bridge" "/usr/bin/${PN}" || die + + cat < "${T}/50-${PN}" +SEARCH_DIRS_MASK="/usr/lib*/protonmail/bridge" +EOF + insinto /etc/revdep-rebuild + doins "${T}/50-${PN}" +} -- 2.16.1