From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/radicale/, www-apps/radicale/files/
Date: Sat, 9 Mar 2019 21:23:08 +0000 (UTC) [thread overview]
Message-ID: <1552166580.6da1901a78213ed76f1ae4c5b53e449439bd742f.whissi@gentoo> (raw)
commit: 6da1901a78213ed76f1ae4c5b53e449439bd742f
Author: Henning Schild <henning <AT> hennsch <DOT> de>
AuthorDate: Fri Mar 8 09:21:33 2019 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Mar 9 21:23:00 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6da1901a
www-apps/radicale: add systemd service file
Signed-off-by: Henning Schild <henning <AT> hennsch.de>
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
www-apps/radicale/files/radicale.service | 25 +++++++++++++++++++++++++
www-apps/radicale/radicale-2.1.11-r1.ebuild | 3 ++-
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/www-apps/radicale/files/radicale.service b/www-apps/radicale/files/radicale.service
new file mode 100644
index 00000000000..ffafba8d3ae
--- /dev/null
+++ b/www-apps/radicale/files/radicale.service
@@ -0,0 +1,25 @@
+## this is heavily inspired by https://radicale.org/setup/
+
+[Unit]
+Description=A simple CalDAV (calendar) and CardDAV (contact) server
+After=network.target
+Requires=network.target
+
+[Service]
+ExecStart=/usr/bin/radicale
+Restart=on-failure
+User=radicale
+# Deny other users access to the calendar data
+UMask=0027
+PrivateTmp=true
+ProtectSystem=strict
+ProtectHome=true
+PrivateDevices=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
+NoNewPrivileges=true
+StateDirectory=radicale
+
+[Install]
+WantedBy=multi-user.target
diff --git a/www-apps/radicale/radicale-2.1.11-r1.ebuild b/www-apps/radicale/radicale-2.1.11-r1.ebuild
index cfd37257975..853fccb8ac1 100644
--- a/www-apps/radicale/radicale-2.1.11-r1.ebuild
+++ b/www-apps/radicale/radicale-2.1.11-r1.ebuild
@@ -5,7 +5,7 @@ EAPI="6"
PYTHON_COMPAT=( python{3_4,3_5,3_6} )
-inherit distutils-r1 eutils user
+inherit distutils-r1 eutils user systemd
MY_PN="Radicale"
MY_P="${MY_PN}-${PV}"
@@ -60,6 +60,7 @@ python_install_all() {
# init file
newinitd "${FILESDIR}"/radicale-r2.init.d radicale
+ systemd_dounit "${FILESDIR}/${PN}.service"
# directories
keepdir ${RDIR}
next reply other threads:[~2019-03-09 21:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-09 21:23 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-08-25 20:27 [gentoo-commits] repo/gentoo:master commit in: www-apps/radicale/, www-apps/radicale/files/ Eli Schwartz
2022-03-11 16:48 Arthur Zamarin
2021-04-07 7:51 Joonas Niilola
2019-03-09 21:23 Thomas Deutschmann
2019-03-07 21:01 Thomas Deutschmann
2018-02-24 3:23 Thomas Deutschmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1552166580.6da1901a78213ed76f1ae4c5b53e449439bd742f.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox