summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2023-04-10 17:31:58 +0100
committerMarek Szuba <marecki@gentoo.org>2023-04-10 17:32:21 +0100
commit3cb992df77ba586bdb4f545610bf0c21827d46fc (patch)
tree4b968e9db6545f662ca29d3a958fa6aa925df88a /mail-mta
parentprofiles: Mask x11-libs/libdmx for removal (diff)
downloadgentoo-3cb992df77ba586bdb4f545610bf0c21827d46fc.tar.gz
gentoo-3cb992df77ba586bdb4f545610bf0c21827d46fc.tar.bz2
gentoo-3cb992df77ba586bdb4f545610bf0c21827d46fc.zip
mail-mta/proton-mail-bridge: update systemd unit for 3.0.0+
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/proton-mail-bridge/files/proton-mail-bridge.service-r117
-rw-r--r--mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild (renamed from mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21.ebuild)2
2 files changed, 18 insertions, 1 deletions
diff --git a/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service-r1 b/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service-r1
new file mode 100644
index 000000000000..8dd8980214af
--- /dev/null
+++ b/mail-mta/proton-mail-bridge/files/proton-mail-bridge.service-r1
@@ -0,0 +1,17 @@
+[Unit]
+Description=Proton Mail IMAP/SMTP bridge
+Documentation=https://proton.me/mail/bridge/
+
+[Service]
+ExecStart=/usr/bin/proton-mail-bridge --noninteractive
+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-3.0.21.ebuild b/mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild
index a9020b672022..f05292d8f63e 100644
--- a/mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21.ebuild
+++ b/mail-mta/proton-mail-bridge/proton-mail-bridge-3.0.21-r1.ebuild
@@ -49,7 +49,7 @@ src_install() {
exeinto /usr/bin
newexe bridge ${PN}
- systemd_douserunit "${FILESDIR}"/${PN}.service
+ systemd_newuserunit "${FILESDIR}"/${PN}.service-r1 ${PN}.service
einstalldocs
}