From c4c4dc43197b95397eb9c312726a020c7e7ba5c3 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Thu, 22 Sep 2022 00:50:52 +0100 Subject: mail-mta/proton-mail-bridge: add 2.3.0, drop 2.2.2 Signed-off-by: Marek Szuba --- mail-mta/proton-mail-bridge/Manifest | 4 +- .../files/proton-mail-bridge.service | 17 ++++++ .../files/protonmail-bridge.service | 17 ------ .../proton-mail-bridge-2.2.2.ebuild | 67 ---------------------- .../proton-mail-bridge-2.3.0.ebuild | 67 ++++++++++++++++++++++ 5 files changed, 86 insertions(+), 86 deletions(-) create mode 100644 mail-mta/proton-mail-bridge/files/proton-mail-bridge.service delete mode 100644 mail-mta/proton-mail-bridge/files/protonmail-bridge.service delete mode 100644 mail-mta/proton-mail-bridge/proton-mail-bridge-2.2.2.ebuild create mode 100644 mail-mta/proton-mail-bridge/proton-mail-bridge-2.3.0.ebuild (limited to 'mail-mta') diff --git a/mail-mta/proton-mail-bridge/Manifest b/mail-mta/proton-mail-bridge/Manifest index da2998d1cc62..dbdfa8254ea8 100644 --- a/mail-mta/proton-mail-bridge/Manifest +++ b/mail-mta/proton-mail-bridge/Manifest @@ -1,2 +1,2 @@ -DIST protonmail-bridge-2.2.2-deps.tar.xz 237555984 BLAKE2B b069b1b9015e0a96cc0f5558216058c23c1488a67abc29363f4111f9175eac9f204f5f14b54a090040e6d340d4aeb69d1e3b1e59685c3dcef9499ae93526f411 SHA512 8ae9bd6bdbc8a16d7cb0e5a3405ef3dca1737f7b3b5e53b9f954618eadfccd94c5ca1a3994a20745f234e81dbace28bc2df0489e28dbf6dc322b508a11acf813 -DIST protonmail-bridge-2.2.2.tar.gz 5057358 BLAKE2B f2b585ec16c1b6864e4a23436f30c36253beed0453a1068f52f19af8b47b7b626ec779795486ce3719716b5785b2a3c60fbe62ed192b724c6d88ceb507abc590 SHA512 c17ce614ab1074ddeeb9842ce98e6c9cbcb57f44a0bc75cdf74b9a7085257768824a549a9ae5870dcb45243655a90f0956600912c69fc1e826c58d36e8ee19fe +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 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/files/protonmail-bridge.service b/mail-mta/proton-mail-bridge/files/protonmail-bridge.service deleted file mode 100644 index 8e4c71adfd0d..000000000000 --- a/mail-mta/proton-mail-bridge/files/protonmail-bridge.service +++ /dev/null @@ -1,17 +0,0 @@ -[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/proton-mail-bridge/proton-mail-bridge-2.2.2.ebuild b/mail-mta/proton-mail-bridge/proton-mail-bridge-2.2.2.ebuild deleted file mode 100644 index 3eb8df2b3026..000000000000 --- a/mail-mta/proton-mail-bridge/proton-mail-bridge-2.2.2.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# 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="proton-bridge" -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 -} 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 +} -- cgit v1.2.3-65-gdbad