public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: mail-mta/protonmail-bridge/files/, mail-mta/protonmail-bridge/
@ 2021-01-19 11:15 Marek Szuba
  0 siblings, 0 replies; only message in thread
From: Marek Szuba @ 2021-01-19 11:15 UTC (permalink / raw
  To: gentoo-commits

commit:     64fa010b03678c6f0091b96ff44aefe34dc24a25
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 19 10:59:15 2021 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Tue Jan 19 11:14:56 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64fa010b

mail-mta/protonmail-bridge: bump to 1.5.4

Includes a systemd user unit. Still no GUI support, though.

Closes: https://bugs.gentoo.org/761718
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 mail-mta/protonmail-bridge/Manifest                |   6 +
 .../files/protonmail-bridge.service                |  17 +
 .../protonmail-bridge-1.5.4.ebuild                 | 444 +++++++++++++++++++++
 3 files changed, 467 insertions(+)

diff --git a/mail-mta/protonmail-bridge/Manifest b/mail-mta/protonmail-bridge/Manifest
index fb2e967d792..e31a3b32651 100644
--- a/mail-mta/protonmail-bridge/Manifest
+++ b/mail-mta/protonmail-bridge/Manifest
@@ -25,6 +25,8 @@ DIST github.com%2F!proton!mail%2Fgo-mime%2F@v%2Fv0.0.0-20190923161245-9b5a426166
 DIST github.com%2F!proton!mail%2Fgo-mime%2F@v%2Fv0.0.0-20190923161245-9b5a4261663a.zip 26387 BLAKE2B bf0671783aaa80f2d5daf85190fe2725bcc9b1ba030de15eab4450cbe75627fd9b506f4e6262d93fb488ab666d943e92b79cc377acdc226cc44f9aedfc55004c SHA512 fb9eabf60062fcd7c0b84f3d2f4bb8057cf911237d0c3275b1228714764dfb6e9a5c4a9722faa2e50004d26f66a45945bf36b1af9f23a72b42908c2acedf3dc7
 DIST github.com%2F!proton!mail%2Fgo-rfc5322%2F@v%2Fv0.2.0.mod 193 BLAKE2B a1aae724ac86c0506906831314c354de6e05a15f3823546af08970374b5a698ad91c5d4402f3846d46d8289953722f04797c5e7c1222f922d301a6e2f802b580 SHA512 e7f7086c0acbab558b8f67c59ed739dfd08a27a4da33fbf99f487d3506ef88e32d78b0fb1e5acd790fcd28398e100a7da422dc501c2d514b703d9f93d9b5638c
 DIST github.com%2F!proton!mail%2Fgo-rfc5322%2F@v%2Fv0.2.0.zip 102026 BLAKE2B 26d7bea4072b5c0281a25a5233c843d0686753bc7dd6759a48aceea4096531cbb27cbff20d74728e7900b39f986aea41bf630391f506cc92af7ea6f9cf034ff2 SHA512 9d014340b4ca43c2b2c96a3f162dc876bb738ada6e12dd84ad4ba61cb5a071254cc8caa84f6d68ff9711ead71753c832f66b71a7a49125d7b83bbf6ec1a23b08
+DIST github.com%2F!proton!mail%2Fgo-rfc5322%2F@v%2Fv0.2.1.mod 193 BLAKE2B a1aae724ac86c0506906831314c354de6e05a15f3823546af08970374b5a698ad91c5d4402f3846d46d8289953722f04797c5e7c1222f922d301a6e2f802b580 SHA512 e7f7086c0acbab558b8f67c59ed739dfd08a27a4da33fbf99f487d3506ef88e32d78b0fb1e5acd790fcd28398e100a7da422dc501c2d514b703d9f93d9b5638c
+DIST github.com%2F!proton!mail%2Fgo-rfc5322%2F@v%2Fv0.2.1.zip 102095 BLAKE2B 410414b5508d84901801ea3963a161e17351c01aa00a007e000f9cf98be1ee172415565b016347e2b9a890238fff5cc17622308797ad83625962144a7c273faf SHA512 6fc6fe403d1b0a6156322252b52518454e5b5a977854932593ea55044914d397041f3a32250405e3ef14fa14ce4d38821c9aab24c6430c21548bfcf7c835efb7
 DIST github.com%2F!proton!mail%2Fgo-smtp%2F@v%2Fv0.0.0-20181206232543-8261df20d309.mod 37 BLAKE2B af1e40ca73b984d2f024e1bb7a6fb84e180872b10def2a662bb4fa10f3d82a4903bff4eaf585fb83a80fa00bf540b79ac119c565e1f5aa5f9b86e10141f6feda SHA512 4c6aeb81a7d9d3f79a2f8115d758210110c0f8381c6207eaebf1978051dda3b51f594fad36d8ff8715f28821cde92f8ca1252d4ffb2aa7f5fb8375571bd814dc
 DIST github.com%2F!proton!mail%2Fgo-smtp%2F@v%2Fv0.0.0-20181206232543-8261df20d309.zip 23877 BLAKE2B 68cc8edd4380057c7b1786bb3d7d290b6f8d35bc217bedcbf7495cd19e513a17e404b2aafe50212d2a30af5fc9e69bae42a38a8524402d545b90a24fe9619cbe SHA512 57c94afbd27e30a4b00f0c2de368b15969a8862236336e267d81d45089c6bc45ec1722c38278665f90925b70c166db7e8e735d59a612593ba81b064f5969b870
 DIST github.com%2F!proton!mail%2Fgo-vcard%2F@v%2Fv0.0.0-20180326232728-33aaa0a0c8a5.mod 38 BLAKE2B 42e6ccc50593305fd719cb025f7abec4a58a0b57cfa84fba89bf5a27f71b10d91cde03b212e02fc661c7a175bfcbefa21f914cfeedb8ba1d55b4e834d904cb4a SHA512 94461718930753ef00763e31fdece85a3e5fa312237639f00d83c93f1da57b788c57c1a7408a917d553dd24086143c4cd4e6f913b0702c4b33705b52a10412c8
@@ -94,6 +96,8 @@ DIST github.com%2Femersion%2Fgo-message%2F@v%2Fv0.12.1-0.20200903165315-e1abe21f
 DIST github.com%2Femersion%2Fgo-sasl%2F@v%2Fv0.0.0-20191210011802-430746ea8b9b.mod 35 BLAKE2B 799f10c57b01f6e1e3ce5d22560a69a2dbca09b9e02bff279ef9429580e50c2ea83c9a368e1f45184038cfadd5a076d1c109a85591dbc34963578bdd7e07bd6f SHA512 82ac89c3b9b31f812ba28d55ac3c9fd2b2d15f884978125dab501cdd1b48fcc7b1fd9c641ba48b2c6dbbd7e821b9f32ff84427bd83c5338b4be45a77852282b8
 DIST github.com%2Femersion%2Fgo-sasl%2F@v%2Fv0.0.0-20200509203442-7bfe0ed36a21.mod 44 BLAKE2B 2e367a91b21bcb6f7a108430ded05aaeb212e470a3858a20afb921ec9d4164341d4dd8cfe8ab5cbaedb67b2060800f1e999b9cc26b660d4c5edf8a5e4396a651 SHA512 85778e27f712ed2f65c649c3f197873eea94c761fe7d8b2cd4d275208bf4072ccfbe28d883a4c93a39b4fc7b1138cc2eb7345fa08c7870aa45ba19089214d9fc
 DIST github.com%2Femersion%2Fgo-sasl%2F@v%2Fv0.0.0-20200509203442-7bfe0ed36a21.zip 12511 BLAKE2B 714871c1c420af28dc38c38edb2db87f6ce6506165d4a33c578aeef0be650c5ef6e0a354a28fce6f3b70dacb66041d153601f118b41bf6a3389150d9d3adc870 SHA512 c3993fab8ca6069b13388bb51544f79b24b5db49a9f6e80de6ed2ffbb7a0ce4962a3848aac622d9e01b4cf9d7bb8f12e673300801f9be6c4af9b39f93e614c14
+DIST github.com%2Femersion%2Fgo-smtp%2F@v%2Fv0.14.0.mod 116 BLAKE2B 57bd62b20e2b3448903e5886f80da7ef519137b073fb3e75134340bb5824d4dc22f9b529e0a35ba4dbd1a0d1e243850665b94c9dec9f7b95e3f2bab4d151ddb7 SHA512 d0fe8a8dc11ee56db074774cf9b9dbd0c51bec0170a87ab7b6f01f1a384b6e64e32e26db252fbd9a2ab9c0151f7ff881b097627a32910b3852d21b8aff123968
+DIST github.com%2Femersion%2Fgo-smtp%2F@v%2Fv0.14.0.zip 44633 BLAKE2B 37e79c887a672be6f68bd7dba1af16118b31de2326293f810929ec5db53184985356b1ca6b7c01f5253c6c923d53eae6a78efc050e33f1f2eefc23e276936443 SHA512 6722bf20f7c325f1d77d84314b72ca0be6a70de1bb914c0f4437f1cbd285c0fd8f9b2483497d51abddce6995bc312990ed365d00e0c2bec3d12a58aa8c2ed01b
 DIST github.com%2Femersion%2Fgo-textwrapper%2F@v%2Fv0.0.0-20160606182133-d0e65e56babe.mod 42 BLAKE2B 971265b4be173c1f78232e0e4b55768a868d740861472ce2532fd7383c8cc03350a94dba1e3061f2bd660666070faeeef364dcae3e77301ddbff0ba92e8d37ef SHA512 d239ac014c9813008f37876b672316ecb1fd4c710fd6bc58c0f5f957e2a6ea2301618ce02275225d2af375b0dcf84a2f64d9c378745a515b915d959b385740fe
 DIST github.com%2Femersion%2Fgo-textwrapper%2F@v%2Fv0.0.0-20160606182133-d0e65e56babe.zip 3558 BLAKE2B 6f69730b19c3b4b3acec8d26e25cc505c34fc023762fd20be5a303fcc9d2647f4a4cbf29901fe168351de71ee6d3de24e52654969e59e83689f093be0ae8bbae SHA512 cd44eb995dfd4024576aa92174ce639c5721364b74ed5ff953efef42b3e49a623063238fc69d0753704c21a8b7742c365bef075b95e7c113643cd1cf3df7980f
 DIST github.com%2Femersion%2Fgo-vcard%2F@v%2Fv0.0.0-20190105225839-8856043f13c5.mod 36 BLAKE2B 16cb6e8ec87efa7dfb201c0a430454eb79fff78c51a1074cd33598708ae27f916dc99d0886f96f2f3179c851e833818a243bf6c28b1d6a25b7bf7c77adc0ae3e SHA512 7a9a6daad282c92252b6daa12a1098497eda244cfcfa89a444e72a744196ca479e040f6f6ecb306f45310dff91d6f2bcba44e877b444a5e0e206f72b478f6b80
@@ -311,6 +315,7 @@ DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20180314180146-1d60e4601c6f.mod 25 BLAK
 DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20190423024810-112230192c58.mod 25 BLAKE2B 01f7f78a0324ca728efd4d662ea130d7e200ab25805125e472720ca01feaaf2625b15bf53f51837a6913e35e060a19018928a38851d7445f39e6e42e237dfda2 SHA512 a9dd073f69c5be1153aaab6e84dd3bb1610a0df8b9882ca4c486c6625d4b5201e5032f86e5014421358dff564d93c4e67f20e5fd1d21ed5e259ddfbc90af43c0
 DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20190423024810-112230192c58.zip 25620 BLAKE2B 770b7dc9bdd8999123fb58cfd951dcbd5592172fd394f1a70abc918e3d7adee5273da1c757f95be15a0ede27f4fd00804564828251ab308d6fc4b116415ac144 SHA512 5a9db9d294b5f2121f3de994da38161f013a0512ad64aaf51f1c7a94b7cdb1ec4102f7c457d29f9bde209e8c254f6ad034c294af3649dbd10d5349c05874f74c
 DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20190911185100-cd5d95a43a6e.mod 25 BLAKE2B 01f7f78a0324ca728efd4d662ea130d7e200ab25805125e472720ca01feaaf2625b15bf53f51837a6913e35e060a19018928a38851d7445f39e6e42e237dfda2 SHA512 a9dd073f69c5be1153aaab6e84dd3bb1610a0df8b9882ca4c486c6625d4b5201e5032f86e5014421358dff564d93c4e67f20e5fd1d21ed5e259ddfbc90af43c0
+DIST golang.org%2Fx%2Fsync%2F@v%2Fv0.0.0-20190911185100-cd5d95a43a6e.zip 26635 BLAKE2B a464a4ad04b36e50cfe966e6e6dc299c0f8b45d0f4198ba64483bb70ab815d033cec5cde60753b76dd1fbb16fed087b41179100a2002b0a61cd4a08f9de779fc SHA512 ae6f29d5f7790b37d1722d65f31708670bf19f429c60b2f6633756ecd40e47c1fab40fc128e0d70b3b6ed0ba47ce5f970ce5f4e55b8f1fa407d2efee7444b646
 DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20180905080454-ebe1bf3edb33.mod 24 BLAKE2B 64a70c4594f5d3c37d962c1ed07630fba8abeaf534242f8f1509af271684499252af9a2320d5bac8e44064dba344b807535e4e9dd085fc0fb47bd9304120601a SHA512 ffe50fccf7f1d200f2ebc805b190e3f10c5a3184458a38f4590e520d7ce115e1520fbabe56651bbdc2e08da4a8db5ac86d0e88728efde3ab26c64ab4e0cd604c
 DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20180909124046-d0be0721c37e.mod 24 BLAKE2B 64a70c4594f5d3c37d962c1ed07630fba8abeaf534242f8f1509af271684499252af9a2320d5bac8e44064dba344b807535e4e9dd085fc0fb47bd9304120601a SHA512 ffe50fccf7f1d200f2ebc805b190e3f10c5a3184458a38f4590e520d7ce115e1520fbabe56651bbdc2e08da4a8db5ac86d0e88728efde3ab26c64ab4e0cd604c
 DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20181205085412-a5c9d58dba9a.mod 24 BLAKE2B 64a70c4594f5d3c37d962c1ed07630fba8abeaf534242f8f1509af271684499252af9a2320d5bac8e44064dba344b807535e4e9dd085fc0fb47bd9304120601a SHA512 ffe50fccf7f1d200f2ebc805b190e3f10c5a3184458a38f4590e520d7ce115e1520fbabe56651bbdc2e08da4a8db5ac86d0e88728efde3ab26c64ab4e0cd604c
@@ -358,3 +363,4 @@ DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20191120175047-4206685974f2.mod 95 BLAKE2B
 DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20200313102051-9f266ea9e77c.mod 95 BLAKE2B fbb87f0644ec9da5d4386358d23cdb15b0d23e8212e712f16f338455a3a0ad19fbfd63e92c955c359237ddfa8bb76d6d08280eead24d321668431891eca1e8ab SHA512 307ca9123efc577ca04828996ee9d8edbb51794ccb4b8d9f169ba689e7276aa5f6ae106a04b22b7fab853ffacfebcbf74468b64eaefd57445864c1fbc77fad9d
 DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20200313102051-9f266ea9e77c.zip 101467 BLAKE2B 8bb0aec8e693a4c0da59f1931e1fdcf6f94a236faba149d5af91e87284f39c693d20be65248eecde739cb555e371804fa6c723a56c69e6d02a347ba908e968b1 SHA512 bee7757d760f5ba1b9f7523af358652a5cb65f2b0064da097f78450871b2636efcbab0298a9871bbb3ce8012bf95a155949251d4f61464dde510097b936b47a8
 DIST protonmail-bridge-1.5.2.tar.gz 1827008 BLAKE2B 137fe73e3901d1c91b5996604dd3e9d8fdd4237b801e69317d1b03c50d72a57f50737e298b623a19c4ff5280b29c122cbc5eb3909683142a29542ca83f3277a6 SHA512 adea17ad2d600612f6898101cdf7cbfb24ed2c1d0a6ed2ca5f69474f380eec39470f3498c42c0ae385eaddfded975d83e7dd23095f8841d7474393702820a6fa
+DIST protonmail-bridge-1.5.4.tar.gz 1838395 BLAKE2B b81cc14f7da259941f4bdfae0f3e06782e22ce959193a34873aea06480658b3cde6e73f01d6796097d8e103b85d32ac845f371faf17aca7210e45667f74b0325 SHA512 83621ceaac54190b9143f67c50ae98ec3ea96bff399f415838561d64cf277e772925793af701b5f493460fb0edced4383253dc5a24264f4a89e30417f12de49f

diff --git a/mail-mta/protonmail-bridge/files/protonmail-bridge.service b/mail-mta/protonmail-bridge/files/protonmail-bridge.service
new file mode 100644
index 00000000000..8e4c71adfd0
--- /dev/null
+++ b/mail-mta/protonmail-bridge/files/protonmail-bridge.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=ProtonMail IMAP/SMTP bridge
+Documentation=https://protonmail.com/bridge/
+
+[Service]
+ExecStart=/usr/bin/protonmail-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/protonmail-bridge/protonmail-bridge-1.5.4.ebuild b/mail-mta/protonmail-bridge/protonmail-bridge-1.5.4.ebuild
new file mode 100644
index 00000000000..b0e8fab6936
--- /dev/null
+++ b/mail-mta/protonmail-bridge/protonmail-bridge-1.5.4.ebuild
@@ -0,0 +1,444 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit go-module systemd xdg-utils
+
+EGO_SUM=(
+	"github.com/0xAX/notificator v0.0.0-20191016112426-3962a5ea8da1"
+	"github.com/0xAX/notificator v0.0.0-20191016112426-3962a5ea8da1/go.mod"
+	"github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod"
+	"github.com/BurntSushi/toml v0.3.1/go.mod"
+	"github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod"
+	"github.com/CloudyKit/jet/v3 v3.0.0/go.mod"
+	"github.com/Joker/hpp v1.0.0/go.mod"
+	"github.com/Masterminds/semver/v3 v3.1.0"
+	"github.com/Masterminds/semver/v3 v3.1.0/go.mod"
+	"github.com/ProtonMail/bcrypt v0.0.0-20170924085257-7509ea014998"
+	"github.com/ProtonMail/bcrypt v0.0.0-20170924085257-7509ea014998/go.mod"
+	"github.com/ProtonMail/crypto v0.0.0-20200818122824-ed5d25e28db8"
+	"github.com/ProtonMail/crypto v0.0.0-20200818122824-ed5d25e28db8/go.mod"
+	"github.com/ProtonMail/docker-credential-helpers v1.1.0"
+	"github.com/ProtonMail/docker-credential-helpers v1.1.0/go.mod"
+	"github.com/ProtonMail/go-appdir v1.1.0"
+	"github.com/ProtonMail/go-appdir v1.1.0/go.mod"
+	"github.com/ProtonMail/go-apple-mobileconfig v0.0.0-20160701194735-7ea9927a11f6"
+	"github.com/ProtonMail/go-apple-mobileconfig v0.0.0-20160701194735-7ea9927a11f6/go.mod"
+	"github.com/ProtonMail/go-autostart v0.0.0-20181114175602-c5272053443a"
+	"github.com/ProtonMail/go-autostart v0.0.0-20181114175602-c5272053443a/go.mod"
+	"github.com/ProtonMail/go-imap v0.0.0-20201102134601-418cd74e9474"
+	"github.com/ProtonMail/go-imap v0.0.0-20201102134601-418cd74e9474/go.mod"
+	"github.com/ProtonMail/go-imap-id v0.0.0-20190926060100-f94a56b9ecde"
+	"github.com/ProtonMail/go-imap-id v0.0.0-20190926060100-f94a56b9ecde/go.mod"
+	"github.com/ProtonMail/go-mime v0.0.0-20190923161245-9b5a4261663a"
+	"github.com/ProtonMail/go-mime v0.0.0-20190923161245-9b5a4261663a/go.mod"
+	"github.com/ProtonMail/go-rfc5322 v0.2.1"
+	"github.com/ProtonMail/go-rfc5322 v0.2.1/go.mod"
+	"github.com/ProtonMail/go-vcard v0.0.0-20180326232728-33aaa0a0c8a5"
+	"github.com/ProtonMail/go-vcard v0.0.0-20180326232728-33aaa0a0c8a5/go.mod"
+	"github.com/ProtonMail/gopenpgp/v2 v2.0.1"
+	"github.com/ProtonMail/gopenpgp/v2 v2.0.1/go.mod"
+	"github.com/PuerkitoBio/goquery v1.5.1"
+	"github.com/PuerkitoBio/goquery v1.5.1/go.mod"
+	"github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod"
+	"github.com/abiosoft/ishell v2.0.0+incompatible"
+	"github.com/abiosoft/ishell v2.0.0+incompatible/go.mod"
+	"github.com/abiosoft/readline v0.0.0-20180607040430-155bce2042db"
+	"github.com/abiosoft/readline v0.0.0-20180607040430-155bce2042db/go.mod"
+	"github.com/ajg/form v1.5.1/go.mod"
+	"github.com/allan-simon/go-singleinstance v0.0.0-20160830203053-79edcfdc2dfc"
+	"github.com/allan-simon/go-singleinstance v0.0.0-20160830203053-79edcfdc2dfc/go.mod"
+	"github.com/andybalholm/cascadia v1.1.0"
+	"github.com/andybalholm/cascadia v1.1.0/go.mod"
+	"github.com/antlr/antlr4 v0.0.0-20201029161626-9a95f0cc3d7c"
+	"github.com/antlr/antlr4 v0.0.0-20201029161626-9a95f0cc3d7c/go.mod"
+	"github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod"
+	"github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod"
+	"github.com/chzyer/logex v1.1.10"
+	"github.com/chzyer/logex v1.1.10/go.mod"
+	"github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1"
+	"github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod"
+	"github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod"
+	"github.com/coreos/etcd v3.3.10+incompatible/go.mod"
+	"github.com/coreos/go-etcd v2.0.0+incompatible/go.mod"
+	"github.com/coreos/go-semver v0.2.0/go.mod"
+	"github.com/cpuguy83/go-md2man v1.0.10"
+	"github.com/cpuguy83/go-md2man v1.0.10/go.mod"
+	"github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d"
+	"github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod"
+	"github.com/creack/pty v1.1.9/go.mod"
+	"github.com/cucumber/godog v0.8.1"
+	"github.com/cucumber/godog v0.8.1/go.mod"
+	"github.com/danieljoos/wincred v1.1.0"
+	"github.com/danieljoos/wincred v1.1.0/go.mod"
+	"github.com/davecgh/go-spew v1.1.0/go.mod"
+	"github.com/davecgh/go-spew v1.1.1"
+	"github.com/davecgh/go-spew v1.1.1/go.mod"
+	"github.com/dgraph-io/badger v1.6.0/go.mod"
+	"github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod"
+	"github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod"
+	"github.com/dustin/go-humanize v1.0.0/go.mod"
+	"github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod"
+	"github.com/emersion/go-imap-appendlimit v0.0.0-20190308131241-25671c986a6a"
+	"github.com/emersion/go-imap-appendlimit v0.0.0-20190308131241-25671c986a6a/go.mod"
+	"github.com/emersion/go-imap-idle v0.0.0-20200601154248-f05f54664cc4"
+	"github.com/emersion/go-imap-idle v0.0.0-20200601154248-f05f54664cc4/go.mod"
+	"github.com/emersion/go-imap-move v0.0.0-20190710073258-6e5a51a5b342"
+	"github.com/emersion/go-imap-move v0.0.0-20190710073258-6e5a51a5b342/go.mod"
+	"github.com/emersion/go-imap-quota v0.0.0-20200423100218-dcfd1b7d2b41"
+	"github.com/emersion/go-imap-quota v0.0.0-20200423100218-dcfd1b7d2b41/go.mod"
+	"github.com/emersion/go-imap-specialuse v0.0.0-20200722111535-598ff00e4075"
+	"github.com/emersion/go-imap-specialuse v0.0.0-20200722111535-598ff00e4075/go.mod"
+	"github.com/emersion/go-imap-unselect v0.0.0-20171113212723-b985794e5f26"
+	"github.com/emersion/go-imap-unselect v0.0.0-20171113212723-b985794e5f26/go.mod"
+	"github.com/emersion/go-mbox v1.0.2"
+	"github.com/emersion/go-mbox v1.0.2/go.mod"
+	"github.com/emersion/go-message v0.11.1/go.mod"
+	"github.com/emersion/go-message v0.12.1-0.20200903165315-e1abe21f389a"
+	"github.com/emersion/go-message v0.12.1-0.20200903165315-e1abe21f389a/go.mod"
+	"github.com/emersion/go-sasl v0.0.0-20191210011802-430746ea8b9b/go.mod"
+	"github.com/emersion/go-sasl v0.0.0-20200509203442-7bfe0ed36a21"
+	"github.com/emersion/go-sasl v0.0.0-20200509203442-7bfe0ed36a21/go.mod"
+	"github.com/emersion/go-smtp v0.14.0"
+	"github.com/emersion/go-smtp v0.14.0/go.mod"
+	"github.com/emersion/go-textwrapper v0.0.0-20160606182133-d0e65e56babe"
+	"github.com/emersion/go-textwrapper v0.0.0-20160606182133-d0e65e56babe/go.mod"
+	"github.com/emersion/go-vcard v0.0.0-20190105225839-8856043f13c5"
+	"github.com/emersion/go-vcard v0.0.0-20190105225839-8856043f13c5/go.mod"
+	"github.com/etcd-io/bbolt v1.3.3/go.mod"
+	"github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod"
+	"github.com/fatih/color v1.9.0"
+	"github.com/fatih/color v1.9.0/go.mod"
+	"github.com/fatih/structs v1.1.0/go.mod"
+	"github.com/flynn-archive/go-shlex v0.0.0-20150515145356-3f9db97f8568"
+	"github.com/flynn-archive/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod"
+	"github.com/fsnotify/fsnotify v1.4.7/go.mod"
+	"github.com/gavv/httpexpect v2.0.0+incompatible/go.mod"
+	"github.com/getsentry/sentry-go v0.8.0"
+	"github.com/getsentry/sentry-go v0.8.0/go.mod"
+	"github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod"
+	"github.com/gin-gonic/gin v1.4.0/go.mod"
+	"github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod"
+	"github.com/go-errors/errors v1.0.1"
+	"github.com/go-errors/errors v1.0.1/go.mod"
+	"github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod"
+	"github.com/go-resty/resty/v2 v2.3.0"
+	"github.com/go-resty/resty/v2 v2.3.0/go.mod"
+	"github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod"
+	"github.com/gobwas/pool v0.2.0/go.mod"
+	"github.com/gobwas/ws v1.0.2/go.mod"
+	"github.com/golang/mock v1.4.4"
+	"github.com/golang/mock v1.4.4/go.mod"
+	"github.com/golang/protobuf v1.2.0/go.mod"
+	"github.com/golang/protobuf v1.3.1/go.mod"
+	"github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod"
+	"github.com/google/go-cmp v0.4.0/go.mod"
+	"github.com/google/go-cmp v0.5.1"
+	"github.com/google/go-cmp v0.5.1/go.mod"
+	"github.com/google/go-querystring v1.0.0/go.mod"
+	"github.com/google/gofuzz v1.0.0/go.mod"
+	"github.com/google/uuid v1.1.1"
+	"github.com/google/uuid v1.1.1/go.mod"
+	"github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod"
+	"github.com/gopherjs/gopherjs v0.0.0-20190411002643-bd77b112433e/go.mod"
+	"github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c"
+	"github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c/go.mod"
+	"github.com/gorilla/websocket v1.4.1/go.mod"
+	"github.com/hashicorp/errwrap v1.0.0"
+	"github.com/hashicorp/errwrap v1.0.0/go.mod"
+	"github.com/hashicorp/go-multierror v1.1.0"
+	"github.com/hashicorp/go-multierror v1.1.0/go.mod"
+	"github.com/hashicorp/go-version v1.2.0/go.mod"
+	"github.com/hashicorp/hcl v1.0.0/go.mod"
+	"github.com/hpcloud/tail v1.0.0/go.mod"
+	"github.com/imkira/go-interpol v1.1.0/go.mod"
+	"github.com/inconshreveable/mousetrap v1.0.0/go.mod"
+	"github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod"
+	"github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod"
+	"github.com/iris-contrib/jade v1.1.3/go.mod"
+	"github.com/iris-contrib/pongo2 v0.0.1/go.mod"
+	"github.com/iris-contrib/schema v0.0.1/go.mod"
+	"github.com/jaytaylor/html2text v0.0.0-20200412013138-3577fbdbcff7"
+	"github.com/jaytaylor/html2text v0.0.0-20200412013138-3577fbdbcff7/go.mod"
+	"github.com/json-iterator/go v1.1.6/go.mod"
+	"github.com/json-iterator/go v1.1.9/go.mod"
+	"github.com/jtolds/gls v4.20.0+incompatible/go.mod"
+	"github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod"
+	"github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0"
+	"github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod"
+	"github.com/kataras/golog v0.0.10/go.mod"
+	"github.com/kataras/iris/v12 v12.1.8/go.mod"
+	"github.com/kataras/neffos v0.0.14/go.mod"
+	"github.com/kataras/pio v0.0.2/go.mod"
+	"github.com/kataras/sitemap v0.0.5/go.mod"
+	"github.com/keybase/go-keychain v0.0.0-20200502122510-cda31fe0c86d"
+	"github.com/keybase/go-keychain v0.0.0-20200502122510-cda31fe0c86d/go.mod"
+	"github.com/keybase/go.dbus v0.0.0-20200324223359-a94be52c0b03/go.mod"
+	"github.com/klauspost/compress v1.8.2/go.mod"
+	"github.com/klauspost/compress v1.9.7/go.mod"
+	"github.com/klauspost/cpuid v1.2.1/go.mod"
+	"github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod"
+	"github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod"
+	"github.com/kr/pretty v0.1.0/go.mod"
+	"github.com/kr/pty v1.1.1/go.mod"
+	"github.com/kr/text v0.1.0/go.mod"
+	"github.com/kr/text v0.2.0"
+	"github.com/kr/text v0.2.0/go.mod"
+	"github.com/labstack/echo/v4 v4.1.11/go.mod"
+	"github.com/labstack/gommon v0.3.0/go.mod"
+	"github.com/logrusorgru/aurora v2.0.3+incompatible"
+	"github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod"
+	"github.com/magiconair/properties v1.8.0/go.mod"
+	"github.com/martinlindhe/base36 v1.0.0"
+	"github.com/martinlindhe/base36 v1.0.0/go.mod"
+	"github.com/mattn/go-colorable v0.1.2/go.mod"
+	"github.com/mattn/go-colorable v0.1.4"
+	"github.com/mattn/go-colorable v0.1.4/go.mod"
+	"github.com/mattn/go-isatty v0.0.7/go.mod"
+	"github.com/mattn/go-isatty v0.0.8/go.mod"
+	"github.com/mattn/go-isatty v0.0.9/go.mod"
+	"github.com/mattn/go-isatty v0.0.11"
+	"github.com/mattn/go-isatty v0.0.11/go.mod"
+	"github.com/mattn/go-runewidth v0.0.7/go.mod"
+	"github.com/mattn/go-runewidth v0.0.9"
+	"github.com/mattn/go-runewidth v0.0.9/go.mod"
+	"github.com/mattn/goveralls v0.0.2/go.mod"
+	"github.com/mediocregopher/radix/v3 v3.4.2/go.mod"
+	"github.com/microcosm-cc/bluemonday v1.0.2/go.mod"
+	"github.com/miekg/dns v1.1.30"
+	"github.com/miekg/dns v1.1.30/go.mod"
+	"github.com/mitchellh/go-homedir v1.1.0/go.mod"
+	"github.com/mitchellh/mapstructure v1.1.2/go.mod"
+	"github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod"
+	"github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod"
+	"github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod"
+	"github.com/modern-go/reflect2 v1.0.1/go.mod"
+	"github.com/moul/http2curl v1.0.0/go.mod"
+	"github.com/myesui/uuid v1.0.0"
+	"github.com/myesui/uuid v1.0.0/go.mod"
+	"github.com/nats-io/jwt v0.3.0/go.mod"
+	"github.com/nats-io/nats.go v1.9.1/go.mod"
+	"github.com/nats-io/nkeys v0.1.0/go.mod"
+	"github.com/nats-io/nuid v1.0.1/go.mod"
+	"github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e"
+	"github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod"
+	"github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce"
+	"github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce/go.mod"
+	"github.com/olekukonko/tablewriter v0.0.4"
+	"github.com/olekukonko/tablewriter v0.0.4/go.mod"
+	"github.com/onsi/ginkgo v1.6.0/go.mod"
+	"github.com/onsi/ginkgo v1.10.3/go.mod"
+	"github.com/onsi/gomega v1.7.1/go.mod"
+	"github.com/pelletier/go-toml v1.2.0/go.mod"
+	"github.com/pingcap/errors v0.11.4"
+	"github.com/pingcap/errors v0.11.4/go.mod"
+	"github.com/pkg/errors v0.8.1/go.mod"
+	"github.com/pkg/errors v0.9.1"
+	"github.com/pkg/errors v0.9.1/go.mod"
+	"github.com/pmezard/go-difflib v1.0.0"
+	"github.com/pmezard/go-difflib v1.0.0/go.mod"
+	"github.com/russross/blackfriday v1.5.2"
+	"github.com/russross/blackfriday v1.5.2/go.mod"
+	"github.com/russross/blackfriday/v2 v2.0.1"
+	"github.com/russross/blackfriday/v2 v2.0.1/go.mod"
+	"github.com/ryanuber/columnize v2.1.0+incompatible/go.mod"
+	"github.com/schollz/closestmatch v2.1.0+incompatible/go.mod"
+	"github.com/sergi/go-diff v1.0.0/go.mod"
+	"github.com/shurcooL/sanitized_anchor_name v1.0.0"
+	"github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod"
+	"github.com/sirupsen/logrus v1.4.1/go.mod"
+	"github.com/sirupsen/logrus v1.4.2/go.mod"
+	"github.com/sirupsen/logrus v1.7.0"
+	"github.com/sirupsen/logrus v1.7.0/go.mod"
+	"github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966"
+	"github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966/go.mod"
+	"github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod"
+	"github.com/smartystreets/goconvey v1.6.4/go.mod"
+	"github.com/spf13/afero v1.1.2/go.mod"
+	"github.com/spf13/cast v1.3.0/go.mod"
+	"github.com/spf13/cobra v0.0.5/go.mod"
+	"github.com/spf13/jwalterweatherman v1.0.0/go.mod"
+	"github.com/spf13/pflag v1.0.3/go.mod"
+	"github.com/spf13/viper v1.3.2/go.mod"
+	"github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf"
+	"github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf/go.mod"
+	"github.com/stretchr/objx v0.1.0/go.mod"
+	"github.com/stretchr/objx v0.1.1/go.mod"
+	"github.com/stretchr/objx v0.2.0"
+	"github.com/stretchr/objx v0.2.0/go.mod"
+	"github.com/stretchr/testify v1.2.2/go.mod"
+	"github.com/stretchr/testify v1.3.0/go.mod"
+	"github.com/stretchr/testify v1.4.0/go.mod"
+	"github.com/stretchr/testify v1.5.1/go.mod"
+	"github.com/stretchr/testify v1.6.1"
+	"github.com/stretchr/testify v1.6.1/go.mod"
+	"github.com/therecipe/qt v0.0.0-20200701200531-7f61353ee73e"
+	"github.com/therecipe/qt v0.0.0-20200701200531-7f61353ee73e/go.mod"
+	"github.com/twinj/uuid v1.0.0"
+	"github.com/twinj/uuid v1.0.0/go.mod"
+	"github.com/ugorji/go v1.1.4/go.mod"
+	"github.com/ugorji/go v1.1.7/go.mod"
+	"github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod"
+	"github.com/ugorji/go/codec v1.1.7/go.mod"
+	"github.com/urfave/cli v1.22.4"
+	"github.com/urfave/cli v1.22.4/go.mod"
+	"github.com/urfave/negroni v1.0.0/go.mod"
+	"github.com/valyala/bytebufferpool v1.0.0/go.mod"
+	"github.com/valyala/fasthttp v1.6.0/go.mod"
+	"github.com/valyala/fasttemplate v1.0.1/go.mod"
+	"github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod"
+	"github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod"
+	"github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod"
+	"github.com/xeipuuv/gojsonschema v1.2.0/go.mod"
+	"github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod"
+	"github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod"
+	"github.com/yudai/gojsondiff v1.0.0/go.mod"
+	"github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod"
+	"github.com/yudai/pp v2.0.1+incompatible/go.mod"
+	"go.etcd.io/bbolt v1.3.5"
+	"go.etcd.io/bbolt v1.3.5/go.mod"
+	"golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod"
+	"golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod"
+	"golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod"
+	"golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod"
+	"golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod"
+	"golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod"
+	"golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod"
+	"golang.org/x/net v0.0.0-20190420063019-afa5a82059c6/go.mod"
+	"golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod"
+	"golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod"
+	"golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod"
+	"golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod"
+	"golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod"
+	"golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod"
+	"golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod"
+	"golang.org/x/net v0.0.0-20200707034311-ab3426394381"
+	"golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod"
+	"golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod"
+	"golang.org/x/sync v0.0.0-20190423024810-112230192c58"
+	"golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod"
+	"golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e"
+	"golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod"
+	"golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod"
+	"golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod"
+	"golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod"
+	"golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
+	"golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod"
+	"golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod"
+	"golang.org/x/sys v0.0.0-20190419153524-e8e3143a4f4a/go.mod"
+	"golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod"
+	"golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod"
+	"golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod"
+	"golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod"
+	"golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod"
+	"golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod"
+	"golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd"
+	"golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod"
+	"golang.org/x/text v0.3.0/go.mod"
+	"golang.org/x/text v0.3.2/go.mod"
+	"golang.org/x/text v0.3.3"
+	"golang.org/x/text v0.3.3/go.mod"
+	"golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
+	"golang.org/x/tools v0.0.0-20181221001348-537d06c36207/go.mod"
+	"golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod"
+	"golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod"
+	"golang.org/x/tools v0.0.0-20190420181800-aa740d480789/go.mod"
+	"golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod"
+	"golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod"
+	"golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod"
+	"golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543"
+	"golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod"
+	"gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod"
+	"gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f"
+	"gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod"
+	"gopkg.in/fsnotify.v1 v1.4.7/go.mod"
+	"gopkg.in/go-playground/assert.v1 v1.2.1/go.mod"
+	"gopkg.in/go-playground/validator.v8 v8.18.2/go.mod"
+	"gopkg.in/ini.v1 v1.51.1/go.mod"
+	"gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod"
+	"gopkg.in/stretchr/testify.v1 v1.2.2"
+	"gopkg.in/stretchr/testify.v1 v1.2.2/go.mod"
+	"gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod"
+	"gopkg.in/yaml.v2 v2.2.2/go.mod"
+	"gopkg.in/yaml.v2 v2.2.4/go.mod"
+	"gopkg.in/yaml.v2 v2.2.8/go.mod"
+	"gopkg.in/yaml.v3 v3.0.0-20191120175047-4206685974f2/go.mod"
+	"gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c"
+	"gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod"
+)
+
+go-module_set_globals
+
+MY_PN="proton-bridge-br"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Serves ProtonMail to IMAP/SMTP clients"
+HOMEPAGE="https://protonmail.com/bridge/ https://github.com/ProtonMail/proton-bridge/"
+SRC_URI="https://github.com/ProtonMail/proton-bridge/archive/br-${PV}.tar.gz -> ${P}.tar.gz
+	${EGO_SUM_SRC_URI}"
+
+LICENSE="Apache-2.0 BSD BSD-2 GPL-3+ ISC LGPL-3+ MIT MPL-2.0 Unlicense"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="gui"
+
+# Some of the tests fail without access to a keyring service
+RESTRICT="test"
+
+RDEPEND="app-crypt/libsecret
+	gui? ( !mail-mta/protonmail-bridge-bin )" # /usr/bin file collision
+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() {
+	# A slight hack to allow this package (which is currently limited to CLI mode)
+	# and protonmail-bridge-bin (which supports GUI mode) to co-exist.
+	local bin_name unit_name
+	if use gui; then
+		bin_name="${PN}"
+		unit_name="${FILESDIR}/${PN}.service"
+	else
+		bin_name="${PN}-cli"
+		unit_name="${PN}-cli.service"
+		sed -e "s|${PN}|${bin_name}|" "${FILESDIR}"/${PN}.service > ${unit_name} || die
+	fi
+
+	exeinto /usr/bin
+	newexe proton-bridge ${bin_name}
+
+	systemd_douserunit ${unit_name}
+
+	# 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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-19 11:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-19 11:15 [gentoo-commits] repo/gentoo:master commit in: mail-mta/protonmail-bridge/files/, mail-mta/protonmail-bridge/ Marek Szuba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox