[gentoo-commits] repo/gentoo:master commit in: sys-apps/daisydog/, sys-apps/daisydog/files/

2022-06-02 Thread Sam James
commit: 62aa412c33b4364105b14c904e32738617e8ea88
Author: Brian Evans  gentoo  org>
AuthorDate: Fri Jun  3 05:11:36 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jun  3 05:29:07 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62aa412c

sys-apps/daisydog: improve OpenRC init script

The attached script updates a couple things which effectively is the same as
the current model however it follows the modular nature of the declarative
syntax.

Changes:
* Split start_stop_daemon_args into command_background and pidfile options.

Closes: https://bugs.gentoo.org/828084
Signed-off-by: Brian Evans  gentoo.org>
Signed-off-by: Sam James  gentoo.org>

 sys-apps/daisydog/daisydog-2014.05.30-r1.ebuild | 33 +
 sys-apps/daisydog/files/daisydog.init.d-r1  | 13 ++
 2 files changed, 46 insertions(+)

diff --git a/sys-apps/daisydog/daisydog-2014.05.30-r1.ebuild 
b/sys-apps/daisydog/daisydog-2014.05.30-r1.ebuild
new file mode 100644
index ..880303643aee
--- /dev/null
+++ b/sys-apps/daisydog/daisydog-2014.05.30-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit toolchain-funcs flag-o-matic
+
+GIT_SHA1="3182aa85c087446e4358370549adc45db21ec124"
+MY_P="${PN}-${GIT_SHA1}"
+
+DESCRIPTION="A very simple /dev/watchdog daemon"
+HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/daisydog/+/master;
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz
+   
https://chromium.googlesource.com/chromiumos/third_party/daisydog/+archive/${GIT_SHA1}.tar.gz
 -> ${MY_P}.tar.gz"
+S="${WORKDIR}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sparc ~x86"
+IUSE="static"
+
+src_configure() {
+   tc-export CC
+   use static && append-ldflags -static
+}
+
+src_install() {
+   dobin daisydog
+   dodoc README.chromiumos
+
+   newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
+   newinitd "${FILESDIR}"/${PN}.init.d-r1 ${PN}
+}

diff --git a/sys-apps/daisydog/files/daisydog.init.d-r1 
b/sys-apps/daisydog/files/daisydog.init.d-r1
new file mode 100644
index ..9d9efdd42772
--- /dev/null
+++ b/sys-apps/daisydog/files/daisydog.init.d-r1
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/daisydog"
+command_args="${WATCHDOG_OPTS}"
+description="watchdog daemon to pet /dev/watchdog devices"
+command_background="yes"
+pidfile="/run/daisydog.pid"
+
+depend() {
+   provide watchdog
+}



[gentoo-commits] repo/gentoo:master commit in: sys-apps/daisydog/

2022-01-28 Thread Sam James
commit: c0f242e1140f6c1a9948125f14f03dfa687bae28
Author: Sam James  gentoo  org>
AuthorDate: Sat Jan 29 02:00:21 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jan 29 03:56:08 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0f242e1

sys-apps/daisydog: update EAPI 5 -> 7

Signed-off-by: Sam James  gentoo.org>

 sys-apps/daisydog/daisydog-2014.05.30.ebuild | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sys-apps/daisydog/daisydog-2014.05.30.ebuild 
b/sys-apps/daisydog/daisydog-2014.05.30.ebuild
index 83d0bc40f97a..d7306bc6b63c 100644
--- a/sys-apps/daisydog/daisydog-2014.05.30.ebuild
+++ b/sys-apps/daisydog/daisydog-2014.05.30.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="5"
+EAPI="7"
 
 inherit toolchain-funcs flag-o-matic
 
@@ -12,14 +12,13 @@ DESCRIPTION="A very simple /dev/watchdog daemon"
 
HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/daisydog/+/master;
 SRC_URI="mirror://gentoo/${MY_P}.tar.gz

https://chromium.googlesource.com/chromiumos/third_party/daisydog/+archive/${GIT_SHA1}.tar.gz
 -> ${MY_P}.tar.gz"
+S="${WORKDIR}"
 
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc 
x86"
 IUSE="static"
 
-S=${WORKDIR}
-
 src_configure() {
tc-export CC
use static && append-ldflags -static



[gentoo-commits] repo/gentoo:master commit in: sys-apps/daisydog/

2021-12-03 Thread Mike Gilbert
commit: a54ca6980a3ccf213ec870f617282aa346ccb694
Author: Mike Gilbert  gentoo  org>
AuthorDate: Fri Dec  3 16:41:11 2021 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Fri Dec  3 16:42:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a54ca698

sys-apps/daisydog: change maintainer to vapier

Signed-off-by: Mike Gilbert  gentoo.org>

 sys-apps/daisydog/metadata.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-apps/daisydog/metadata.xml b/sys-apps/daisydog/metadata.xml
index 3f6127b56e7f..8041df927597 100644
--- a/sys-apps/daisydog/metadata.xml
+++ b/sys-apps/daisydog/metadata.xml
@@ -1,7 +1,7 @@
 
 https://www.gentoo.org/dtd/metadata.dtd;>
 
-
-   base-sys...@gentoo.org
+
+   vap...@gentoo.org
 
 



[gentoo-commits] repo/gentoo:master commit in: sys-apps/daisydog/files/

2019-09-19 Thread Mike Gilbert
commit: 16addf2ce9ead9d48b0b4a349638fe98080fa17b
Author: Mike Gilbert  gentoo  org>
AuthorDate: Thu Sep 19 15:36:01 2019 +
Commit: Mike Gilbert  gentoo  org>
CommitDate: Thu Sep 19 15:36:01 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16addf2c

sys-apps/daisydog: chmod -x files/daisydog.init.d

Bug: https://bugs.gentoo.org/694878
Signed-off-by: Mike Gilbert  gentoo.org>

 sys-apps/daisydog/files/daisydog.init.d | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/sys-apps/daisydog/files/daisydog.init.d 
b/sys-apps/daisydog/files/daisydog.init.d
old mode 100755
new mode 100644



[gentoo-commits] repo/gentoo:master commit in: sys-apps/daisydog/, sys-apps/daisydog/files/

2016-03-02 Thread Mike Frysinger
commit: 935df04d5b2f24f428d38dc7456613b5eaeb03bf
Author: Mike Frysinger  gentoo  org>
AuthorDate: Thu Mar  3 07:55:23 2016 +
Commit: Mike Frysinger  gentoo  org>
CommitDate: Thu Mar  3 07:56:11 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=935df04d

sys-apps/daisydog: new package for Chromium OS watchdog daemon

 sys-apps/daisydog/Manifest   |  1 +
 sys-apps/daisydog/daisydog-2014.05.30.ebuild | 35 
 sys-apps/daisydog/files/daisydog.conf.d  |  4 
 sys-apps/daisydog/files/daisydog.init.d  | 12 ++
 sys-apps/daisydog/metadata.xml   |  7 ++
 5 files changed, 59 insertions(+)

diff --git a/sys-apps/daisydog/Manifest b/sys-apps/daisydog/Manifest
new file mode 100644
index 000..9e17478
--- /dev/null
+++ b/sys-apps/daisydog/Manifest
@@ -0,0 +1 @@
+DIST daisydog-3182aa85c087446e4358370549adc45db21ec124.tar.gz 10395 SHA256 
b6185df3583e48e6b2cf16f6425aabe2dfdd94deaf8ac07f8dbd2c9a6f59809d SHA512 
0a7312a3d9459487da8d20a80568187f51d4ae786939afbf38b8b89747831b2f7e0e32a3414b5d60863e33bcdebad9e457ff9a8f75143a7b60bf68fc9de17cd5
 WHIRLPOOL 
a30263902a320e49f2d7c65669131476408f0b1d4eec3d5c2e5fbd3407417109184a4b25a5ac1b984b14cc7427fa3fc7b16559daa1da9d85b736a3b30a9721ff

diff --git a/sys-apps/daisydog/daisydog-2014.05.30.ebuild 
b/sys-apps/daisydog/daisydog-2014.05.30.ebuild
new file mode 100644
index 000..fddff15
--- /dev/null
+++ b/sys-apps/daisydog/daisydog-2014.05.30.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit toolchain-funcs flag-o-matic
+
+GIT_SHA1="3182aa85c087446e4358370549adc45db21ec124"
+MY_P="${PN}-${GIT_SHA1}"
+
+DESCRIPTION="A very simple /dev/watchdog daemon"
+HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/daisydog/+/master;
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz
+   
https://chromium.googlesource.com/chromiumos/third_party/daisydog/+archive/${GIT_SHA1}.tar.gz
 -> ${MY_P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86"
+IUSE="static"
+
+S=${WORKDIR}
+
+src_configure() {
+   tc-export CC
+   use static && append-ldflags -static
+}
+
+src_install() {
+   dobin daisydog
+   dodoc README.chromiumos
+
+   newconfd "${FILESDIR}"/${PN}.conf.d ${PN}
+   newinitd "${FILESDIR}"/${PN}.init.d ${PN}
+}

diff --git a/sys-apps/daisydog/files/daisydog.conf.d 
b/sys-apps/daisydog/files/daisydog.conf.d
new file mode 100644
index 000..05adc45
--- /dev/null
+++ b/sys-apps/daisydog/files/daisydog.conf.d
@@ -0,0 +1,4 @@
+# /etc/conf.d/daisydog: config file for /etc/init.d/daisydog
+
+# for more info, see `daisydog -h`.
+WATCHDOG_OPTS=""

diff --git a/sys-apps/daisydog/files/daisydog.init.d 
b/sys-apps/daisydog/files/daisydog.init.d
new file mode 100755
index 000..6fecb16
--- /dev/null
+++ b/sys-apps/daisydog/files/daisydog.init.d
@@ -0,0 +1,12 @@
+#!/sbin/runscript
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/daisydog"
+command_args="${WATCHDOG_OPTS}"
+description="watchdog daemon to pet /dev/watchdog devices"
+start_stop_daemon_args="--make-pidfile --background --pidfile 
/run/daisydog.pid"
+
+depend() {
+   provide watchdog
+}

diff --git a/sys-apps/daisydog/metadata.xml b/sys-apps/daisydog/metadata.xml
new file mode 100644
index 000..aebca33
--- /dev/null
+++ b/sys-apps/daisydog/metadata.xml
@@ -0,0 +1,7 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+
+   base-sys...@gentoo.org
+
+