diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2012-08-21 12:33:37 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2012-08-21 12:33:37 +0000 |
commit | 2e6d819636fea3d385145fc0127b317e610b133e (patch) | |
tree | 318f8366875ee30e47c311b0b6931e40b8e69204 /sys-apps/busybox-watchdog | |
parent | Stable for x86, wrt bug #430152 (diff) | |
download | gentoo-2-2e6d819636fea3d385145fc0127b317e610b133e.tar.gz gentoo-2-2e6d819636fea3d385145fc0127b317e610b133e.tar.bz2 gentoo-2-2e6d819636fea3d385145fc0127b317e610b133e.zip |
initial commit.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/busybox-watchdog')
-rw-r--r-- | sys-apps/busybox-watchdog/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/busybox-watchdog/Manifest | 5 | ||||
-rw-r--r-- | sys-apps/busybox-watchdog/busybox-watchdog-0.1.ebuild | 32 | ||||
-rw-r--r-- | sys-apps/busybox-watchdog/files/busybox-watchdog.confd | 9 | ||||
-rw-r--r-- | sys-apps/busybox-watchdog/files/busybox-watchdog.initd | 17 | ||||
-rw-r--r-- | sys-apps/busybox-watchdog/metadata.xml | 8 |
6 files changed, 82 insertions, 0 deletions
diff --git a/sys-apps/busybox-watchdog/ChangeLog b/sys-apps/busybox-watchdog/ChangeLog new file mode 100644 index 000000000000..ee3a26ca87b0 --- /dev/null +++ b/sys-apps/busybox-watchdog/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-apps/busybox-watchdog +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox-watchdog/ChangeLog,v 1.1 2012/08/21 12:33:37 sbriesen Exp $ + +*busybox-watchdog-0.1 (21 Aug 2012) + + 21 Aug 2012; Stefan Briesenick <sbriesen@gentoo.org> + +busybox-watchdog-0.1.ebuild, +files/busybox-watchdog.confd, + +files/busybox-watchdog.initd, +metadata.xml: + initial commit. + diff --git a/sys-apps/busybox-watchdog/Manifest b/sys-apps/busybox-watchdog/Manifest new file mode 100644 index 000000000000..cd2af6370e07 --- /dev/null +++ b/sys-apps/busybox-watchdog/Manifest @@ -0,0 +1,5 @@ +AUX busybox-watchdog.confd 232 SHA256 786d9497ad55c29d6fff231709e71ecad94f2ee1de3b45b461deb29c3eba1c63 SHA512 8fd7121075535195f3e5d43ec773713c883fb7865cd5e5927b3b20c2605c50acb81d50461bd1a246c1282006ce74b11932ac1cec67ddc2be15da2f9aa8674232 WHIRLPOOL 8ea0f6b759198c978f10bf0b2b00cc73343e72401a05edf257b9c5e1032e8a619328aaa02936b5b5a717a021baa84b5653b8c9826e14e5c07c7b7af98f878767 +AUX busybox-watchdog.initd 476 SHA256 9d09d3e7acb69120f448f1b082483c45951df5e59228b4ac08c1aae9179f89ba SHA512 530c98a9ef46415ab7d2a9580ca83ab7438679a77719ad8fc29cfed7169c7096408caf274e0a75de7875cc7a44cf1e32169b92f5aa9fe9b1a6ea1f3ad6255245 WHIRLPOOL 3353bd6b005eaafdacf16cfabb60401c1f6eb3e9e5b06d3f453ff973198b4cdcf8daa82853aff611c6332ebfaa4e2fb94b14689a2b911b92de315cb97a916962 +EBUILD busybox-watchdog-0.1.ebuild 662 SHA256 05204052fd976a096982c8bcc615555bcc5db09410c5432b1dfd2a3268944c75 SHA512 7d8f047b48e753672b4bb9c556349f64e4492b733fa53260efe3d0c1973561e5c9e346860e33f9795f0dce989733395f918d1afef1d70f5bd5bbc30235085254 WHIRLPOOL 9b8a88348ff960d2f1e2d0c74d0984deda0605d47dae5825ff6aa1a3965b84dc0be19d11b726dd79938bc08655441d8f54443b5f868c523df7a37abbd4e9d05b +MISC ChangeLog 348 SHA256 296ef58ea6d5c7389809c125b9b16fd222a8d21b0d2238ecb75ce0d848596edd SHA512 41c63b18ba71d2d60f112c3f55e225ffd6294e647663ff6ea9a2d6cee362cefbc9e6e4438ca4eca22d7d537b70e170e32a9d561dc7a43a4e2d51d098ba634ba8 WHIRLPOOL 019a598d32021ebdd0442a6480e9748888d8498818291cb387ce1240f74256b77c1faee89f1e6acc633f9db197d03319ce496ae4b6cb99c5d9339b1926da88e4 +MISC metadata.xml 238 SHA256 4db4ca999ffdc9f427972d4ac3b32f7512d23bea801534f3eec5d6568a245f3c SHA512 0383697e89f6736c64015db76ad2071fda8b6b9d83e548b39d5b446c63a9875dc31f5619244629826f535a9d74a764230e51fa240904bbdb386b3204c85af884 WHIRLPOOL eb055c0dce306e5b92f6fd454be32248ee838fdbd86383969ab2b052ccd0db7e601cc6114f4ebcbae76160156385bb2e89f0b05ce4834c47c54b1535b7846602 diff --git a/sys-apps/busybox-watchdog/busybox-watchdog-0.1.ebuild b/sys-apps/busybox-watchdog/busybox-watchdog-0.1.ebuild new file mode 100644 index 000000000000..3aaebd083b37 --- /dev/null +++ b/sys-apps/busybox-watchdog/busybox-watchdog-0.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox-watchdog/busybox-watchdog-0.1.ebuild,v 1.1 2012/08/21 12:33:37 sbriesen Exp $ + +EAPI=4 + +HOMEPAGE="http://www.busybox.net/" +DESCRIPTION="Busybox watchdog symlink + init-script" +SRC_URI="" +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-apps/busybox" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +pkg_setup() { + local CNT=$(busybox --list | egrep -c '^(watchdog)$') + if [ ${CNT} -ne 1 ]; then + die "Missing busybox feature. You need at least 'watchdog'." + fi +} + +src_install() { + dosym "../bin/busybox" "/sbin/watchdog" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" +} diff --git a/sys-apps/busybox-watchdog/files/busybox-watchdog.confd b/sys-apps/busybox-watchdog/files/busybox-watchdog.confd new file mode 100644 index 000000000000..bd6aec0a7068 --- /dev/null +++ b/sys-apps/busybox-watchdog/files/busybox-watchdog.confd @@ -0,0 +1,9 @@ +# Config file for /etc/init.d/busybox-watchdog + +# run "/sbin/watchdog --help" to see all possible options. + +# Periodically write to watchdog device +WATCHDOG_OPTS="/dev/watchdog" + +# optionally set the nice-level +#SSD_NICELEVEL="-20" diff --git a/sys-apps/busybox-watchdog/files/busybox-watchdog.initd b/sys-apps/busybox-watchdog/files/busybox-watchdog.initd new file mode 100644 index 000000000000..7a03a382c8d5 --- /dev/null +++ b/sys-apps/busybox-watchdog/files/busybox-watchdog.initd @@ -0,0 +1,17 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox-watchdog/files/busybox-watchdog.initd,v 1.1 2012/08/21 12:33:37 sbriesen Exp $ + +start() { + export SSD_NICELEVEL + ebegin "Starting busybox-watchdog" + start-stop-daemon --start --quiet --exec /sbin/watchdog -- ${WATCHDOG_OPTS} + eend ${?} "Failed to start watchdog" +} + +stop() { + ebegin "Stopping busybox-watchdog" + start-stop-daemon --stop --retry 15 --quiet --exec /sbin/watchdog + eend ${?} "Failed to stop watchdog" +} diff --git a/sys-apps/busybox-watchdog/metadata.xml b/sys-apps/busybox-watchdog/metadata.xml new file mode 100644 index 000000000000..3f5f778dc2a5 --- /dev/null +++ b/sys-apps/busybox-watchdog/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sbriesen@gentoo.org</email> + <name>Stefan Briesenick</name> + </maintainer> +</pkgmetadata> |