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 ADC94138334 for ; Sat, 9 Mar 2019 21:23:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2FFBE0918; Sat, 9 Mar 2019 21:23:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 AB356E0918 for ; Sat, 9 Mar 2019 21:23:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 660EE335CFF for ; Sat, 9 Mar 2019 21:23:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C9DD555F 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: <1552166579.f55d8f0f79305fa8d7d89290f6345a907cab46f5.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-r2.init.d 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: f55d8f0f79305fa8d7d89290f6345a907cab46f5 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: 7fe3f3e8-3c8c-4c71-893c-61aefcca4f7e X-Archives-Hash: 7396db3ab2b098dd181964bb898b5146 commit: f55d8f0f79305fa8d7d89290f6345a907cab46f5 Author: Henning Schild hennsch de> AuthorDate: Fri Mar 8 09:16:18 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Sat Mar 9 21:22:59 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f55d8f0f www-apps/radicale: clean up init script and run with umask Make sure that files created by the deamon are not world readable, inspired by the systemd service coming in a later commit. Suggested-by: Thomas Deutschmann gentoo.org> Signed-off-by: Henning Schild hennsch.de> Signed-off-by: Thomas Deutschmann gentoo.org> www-apps/radicale/files/radicale-r2.init.d | 27 +++++++++++++++++++++++++++ www-apps/radicale/radicale-2.1.11-r1.ebuild | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/www-apps/radicale/files/radicale-r2.init.d b/www-apps/radicale/files/radicale-r2.init.d new file mode 100644 index 00000000000..00f85d29e0e --- /dev/null +++ b/www-apps/radicale/files/radicale-r2.init.d @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +PIDFILE=/run/radicale.pid + +depend() { + need localmount +} + +start() { + ebegin "Starting radicale" + start-stop-daemon --start --quiet --background \ + --user radicale \ + --umask 0027 \ + --stderr-logger /usr/bin/logger \ + --pidfile ${PIDFILE} --make-pidfile \ + --exec /usr/bin/radicale -- --foreground + eend $? +} + +stop() { + ebegin "Stopping radicale" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} + eend $? +} diff --git a/www-apps/radicale/radicale-2.1.11-r1.ebuild b/www-apps/radicale/radicale-2.1.11-r1.ebuild index e95f957a111..cfd37257975 100644 --- a/www-apps/radicale/radicale-2.1.11-r1.ebuild +++ b/www-apps/radicale/radicale-2.1.11-r1.ebuild @@ -59,7 +59,7 @@ python_install_all() { rm README* || die # init file - newinitd "${FILESDIR}"/radicale-r1.init.d radicale + newinitd "${FILESDIR}"/radicale-r2.init.d radicale # directories keepdir ${RDIR}