Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/daisydog/, sys-apps/daisydog/files/
Date: Fri, 03 Jun 2022 05:32:52
Message-Id: 1654234147.62aa412c33b4364105b14c904e32738617e8ea88.sam@gentoo
1 commit: 62aa412c33b4364105b14c904e32738617e8ea88
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 05:11:36 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 05:29:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62aa412c
7
8 sys-apps/daisydog: improve OpenRC init script
9
10 The attached script updates a couple things which effectively is the same as
11 the current model however it follows the modular nature of the declarative
12 syntax.
13
14 Changes:
15 * Split start_stop_daemon_args into command_background and pidfile options.
16
17 Closes: https://bugs.gentoo.org/828084
18 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
19 Signed-off-by: Sam James <sam <AT> gentoo.org>
20
21 sys-apps/daisydog/daisydog-2014.05.30-r1.ebuild | 33 +++++++++++++++++++++++++
22 sys-apps/daisydog/files/daisydog.init.d-r1 | 13 ++++++++++
23 2 files changed, 46 insertions(+)
24
25 diff --git a/sys-apps/daisydog/daisydog-2014.05.30-r1.ebuild b/sys-apps/daisydog/daisydog-2014.05.30-r1.ebuild
26 new file mode 100644
27 index 000000000000..880303643aee
28 --- /dev/null
29 +++ b/sys-apps/daisydog/daisydog-2014.05.30-r1.ebuild
30 @@ -0,0 +1,33 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +inherit toolchain-funcs flag-o-matic
37 +
38 +GIT_SHA1="3182aa85c087446e4358370549adc45db21ec124"
39 +MY_P="${PN}-${GIT_SHA1}"
40 +
41 +DESCRIPTION="A very simple /dev/watchdog daemon"
42 +HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/daisydog/+/master"
43 +SRC_URI="mirror://gentoo/${MY_P}.tar.gz
44 + https://chromium.googlesource.com/chromiumos/third_party/daisydog/+archive/${GIT_SHA1}.tar.gz -> ${MY_P}.tar.gz"
45 +S="${WORKDIR}"
46 +
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
50 +IUSE="static"
51 +
52 +src_configure() {
53 + tc-export CC
54 + use static && append-ldflags -static
55 +}
56 +
57 +src_install() {
58 + dobin daisydog
59 + dodoc README.chromiumos
60 +
61 + newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
62 + newinitd "${FILESDIR}"/${PN}.init.d-r1 ${PN}
63 +}
64
65 diff --git a/sys-apps/daisydog/files/daisydog.init.d-r1 b/sys-apps/daisydog/files/daisydog.init.d-r1
66 new file mode 100644
67 index 000000000000..9d9efdd42772
68 --- /dev/null
69 +++ b/sys-apps/daisydog/files/daisydog.init.d-r1
70 @@ -0,0 +1,13 @@
71 +#!/sbin/openrc-run
72 +# Copyright 1999-2021 Gentoo Authors
73 +# Distributed under the terms of the GNU General Public License v2
74 +
75 +command="/usr/bin/daisydog"
76 +command_args="${WATCHDOG_OPTS}"
77 +description="watchdog daemon to pet /dev/watchdog devices"
78 +command_background="yes"
79 +pidfile="/run/daisydog.pid"
80 +
81 +depend() {
82 + provide watchdog
83 +}