diff options
Diffstat (limited to 'mail-mta/proton-mail-bridge')
-rw-r--r-- | mail-mta/proton-mail-bridge/Manifest | 5 | ||||
-rw-r--r-- | mail-mta/proton-mail-bridge/files/proton-mail-bridge.service | 17 | ||||
-rw-r--r-- | mail-mta/proton-mail-bridge/metadata.xml | 17 | ||||
-rw-r--r-- | mail-mta/proton-mail-bridge/proton-mail-bridge-2.3.0.ebuild | 67 |
4 files changed, 106 insertions, 0 deletions
diff --git a/mail-mta/proton-mail-bridge/Manifest b/mail-mta/proton-mail-bridge/Manifest new file mode 100644 index 000000000000..7c9a87f42849 --- /dev/null +++ b/mail-mta/proton-mail-bridge/Manifest @@ -0,0 +1,5 @@ +AUX proton-mail-bridge.service 336 BLAKE2B 663919b03685d99f17f49bf0da4f6f10b09fce1e1e05966c3cfce3d19692b0d3744a0289a2908bdb40d57cfa7e089709417184e6c86c2afa618c71ad33cabf99 SHA512 af81c8cfd2399356715f3b52031d6b0be2fd8b436b6c55b1acf165846c7f3b240b8ea8ca6488cea487f22dc1bb9f3f6cef08844ab74f88aedb71149263a3ef7a +DIST proton-mail-bridge-2.3.0-deps.tar.xz 237367120 BLAKE2B 819ffc216017db8a02a189fdb1b4c78e26d38f1cde94bbc556e8603047e396ce0de3caa2b3cf18392a30fbaab525c305f6f0193fb1210baeb48f6a346ae2ba94 SHA512 63076459bf1e8c17775439a5ef1e22482684e0f37a45a4b6f9469c851e66b984f1bce5c19c1d4bfa8cbf5f9ae4fe21a5a20d8304254cdc4f215120dfe5b254e7 +DIST proton-mail-bridge-2.3.0.tar.gz 5059969 BLAKE2B 3871ec75e69ce2976a3b588c9cb32dc61d5c6eaf28a8a7941fb91babbe74cf73f101a3fa9d87c999c659847a42b0a3d93298d6c692a06cfe2716a31fcbb0d469 SHA512 3e3a64d945577a4efc1cb1e9a3b029465f64fab37e80fa7d58e7ea94ba316281596e91a6b49fc37168a0275921f3f79567f58eb926a1d77fcc0b8b39a3cf8f5c +EBUILD proton-mail-bridge-2.3.0.ebuild 1281 BLAKE2B 862313bc9b4d65d1c39c9f8a3f9532fe85e4dd55bf9939bd1dc60e433da83c8d6bcde581223df9a55695a1a9690260a569cf1844b3fad6238a3f89fba602ea68 SHA512 5a1cab17ac4a029dbfc3e7cff7af479626decb1f049babbe430016f54d7cb8c8fab4f7ffde78d1f61889fde0525e2d2f0a83eb737522f652e7456493d52cd34b +MISC metadata.xml 619 BLAKE2B 3350b5193ecc34b4511694c91a0990dbfed6204fc1e2db2acd869da46249bb73acc690cd186771eff77968f6d4009991a23f3e3055b6e4f3092d0da6aac026ac SHA512 7f21301b2375c7173750bf67e4df84aede219a5a7dc4b4b55776a6486eda1f7e3693677a10cf7b6971335b2df3b275bf7e4f27e0b22e3cf23420a8db858eaef0 diff --git a/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service b/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service new file mode 100644 index 000000000000..21f0ad1650dd --- /dev/null +++ b/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service @@ -0,0 +1,17 @@ +[Unit] +Description=Proton Mail IMAP/SMTP bridge +Documentation=https://proton.me/mail/bridge/ + +[Service] +ExecStart=/usr/bin/proton-mail-bridge --no-window +Restart=on-failure + +# Hardening +ProtectSystem=full +PrivateTmp=true +SystemCallArchitectures=native +MemoryDenyWriteExecute=true +NoNewPrivileges=true + +[Install] +WantedBy=default.target diff --git a/mail-mta/proton-mail-bridge/metadata.xml b/mail-mta/proton-mail-bridge/metadata.xml new file mode 100644 index 000000000000..8795413ea236 --- /dev/null +++ b/mail-mta/proton-mail-bridge/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>slashbeast@gentoo.org</email> + <name>Piotr Karbowski</name> + </maintainer> + <maintainer type="person"> + <email>marecki@gentoo.org</email> + <name>Marek Szuba</name> + </maintainer> + <longdescription> + ProtonMail bridge has been Open Source since April 2020. Note that this package + is CLI-only for now, as we have run into some problems with Qt5 vendoring + (see https://github.com/ProtonMail/proton-bridge/issues/16). + </longdescription> +</pkgmetadata> diff --git a/mail-mta/proton-mail-bridge/proton-mail-bridge-2.3.0.ebuild b/mail-mta/proton-mail-bridge/proton-mail-bridge-2.3.0.ebuild new file mode 100644 index 000000000000..79f180fa1513 --- /dev/null +++ b/mail-mta/proton-mail-bridge/proton-mail-bridge-2.3.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd xdg-utils + +MY_PN="${PN/-mail/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Serves ProtonMail to IMAP/SMTP clients" +HOMEPAGE="https://proton.me/mail/bridge https://github.com/ProtonMail/proton-bridge/" +SRC_URI="https://github.com/ProtonMail/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~marecki/dists/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 GPL-3+ ISC LGPL-3+ MIT MPL-2.0 Unlicense" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gui" + +# Quite a few tests require Internet access +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND="app-crypt/libsecret" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/${MY_P} + +src_prepare() { + xdg_environment_reset + default +} + +src_compile() { + if use gui; then + emake \ + QT_DOC_DIR="/usr/share/qt5-doc" \ + QT_PKG_CONFIG=true \ + build + else + emake build-nogui + fi +} + +src_test() { + emake test +} + +src_install() { + exeinto /usr/bin + newexe ${MY_PN} ${PN} + + systemd_douserunit "${FILESDIR}"/${PN}.service + + # FIXME: USE=gui will probably need more files + + einstalldocs +} + +pkg_postinst() { + use gui && xdg_icon_cache_update +} + +pkg_postrm() { + use gui && xdg_icon_cache_update +} |