From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B109E138334 for ; Sat, 9 Mar 2019 21:23:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DEFD4E0920; Sat, 9 Mar 2019 21:23:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B4974E0920 for ; Sat, 9 Mar 2019 21:23:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 79D36335D06 for ; Sat, 9 Mar 2019 21:23:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD481560 for ; Sat, 9 Mar 2019 21:23:08 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1552166580.6da1901a78213ed76f1ae4c5b53e449439bd742f.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apps/radicale/, www-apps/radicale/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apps/radicale/files/radicale.service www-apps/radicale/radicale-2.1.11-r1.ebuild X-VCS-Directories: www-apps/radicale/ www-apps/radicale/files/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 6da1901a78213ed76f1ae4c5b53e449439bd742f X-VCS-Branch: master Date: Sat, 9 Mar 2019 21:23:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b4c4ba10-6998-4817-87de-9b4a75858a48 X-Archives-Hash: e3e741796bbb0020bc2b498cc19350f0 commit: 6da1901a78213ed76f1ae4c5b53e449439bd742f Author: Henning Schild hennsch de> AuthorDate: Fri Mar 8 09:21:33 2019 +0000 Commit: Thomas Deutschmann gentoo 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 hennsch.de> Signed-off-by: Thomas Deutschmann 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}