summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2012-08-21 12:33:37 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2012-08-21 12:33:37 +0000
commit735c2366abdd4b68a2c44795b54b6b5ec3f3df65 (patch)
treee638ceb50536a2b6c2bd4e5280ca6ce2c25cb7d7
parentStable for x86, wrt bug #430152 (diff)
downloadhistorical-735c2366abdd4b68a2c44795b54b6b5ec3f3df65.tar.gz
historical-735c2366abdd4b68a2c44795b54b6b5ec3f3df65.tar.bz2
historical-735c2366abdd4b68a2c44795b54b6b5ec3f3df65.zip
initial commit.
Package-Manager: portage-2.2.0_alpha120/cvs/Linux x86_64
-rw-r--r--sys-apps/busybox-watchdog/ChangeLog11
-rw-r--r--sys-apps/busybox-watchdog/Manifest17
-rw-r--r--sys-apps/busybox-watchdog/busybox-watchdog-0.1.ebuild32
-rw-r--r--sys-apps/busybox-watchdog/files/busybox-watchdog.confd9
-rw-r--r--sys-apps/busybox-watchdog/files/busybox-watchdog.initd17
-rw-r--r--sys-apps/busybox-watchdog/metadata.xml8
6 files changed, 94 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..352179ec8a6b
--- /dev/null
+++ b/sys-apps/busybox-watchdog/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX busybox-watchdog.confd 232 SHA256 786d9497ad55c29d6fff231709e71ecad94f2ee1de3b45b461deb29c3eba1c63 SHA512 8fd7121075535195f3e5d43ec773713c883fb7865cd5e5927b3b20c2605c50acb81d50461bd1a246c1282006ce74b11932ac1cec67ddc2be15da2f9aa8674232 WHIRLPOOL 8ea0f6b759198c978f10bf0b2b00cc73343e72401a05edf257b9c5e1032e8a619328aaa02936b5b5a717a021baa84b5653b8c9826e14e5c07c7b7af98f878767
+AUX busybox-watchdog.initd 594 SHA256 a92fd4dda30a2aa36b2b39cc967e5a05122efd2d70c5172d01738f26e6d24499 SHA512 4eac6c9506c2fc0e44ef8ecd01ba70e9e94e80395ee10e909ccbc6aed9bd1e613109cdddf87642c8b758c7bb19f82a0b90bcabe58c68a0adb6992ff664e5385e WHIRLPOOL ac1b4efbe92b5965baab209446c44f77d03067346b4b402c1010cf5963e41a71f91fb47f4c8f81baf914162f76209a420f31ca994a4359d88c507a33ab88290b
+EBUILD busybox-watchdog-0.1.ebuild 779 SHA256 89a35ac3fdb3001d004423bd513d698ee4c595dd38cf9dfb6418c969b24e1a77 SHA512 142322d8588fc5c46b55438618289d80270ae9c94d9f47e3c7ce1f1cfe2b0d7e9aa115e0cbe6e60d36c5e04a2895d382b56c966e11b5dff2927b6e10dc4be2e7 WHIRLPOOL 6994786a9f0897952d54bc11d99934b4d064706f273020e4f22edde936251fa57d744406c4e07fc138251d77e461154f5fb7bc32725148bf507476ded73773ea
+MISC ChangeLog 447 SHA256 8a4cea6e76a6f2c30ae44bf9bdfa5ac39fe32a1dce320deb5468dd7be2b6df24 SHA512 76da9417ba42eab77f551e3acc50b04397f1da433be03ce9408dbc7707b774cf313a8d45319f247dff5cf41fa9e91d2a2c7dbdaf8f8b67af97d89975f8931e17 WHIRLPOOL eda084c319ab7c34b68fb532a105448c42379b32937d2fc5c7754b1d83d8696b32a94fe56821c33f0ed0d1eb137dfe30448bf42b5964f2c3b9d7a5c69a7c41a5
+MISC metadata.xml 238 SHA256 4db4ca999ffdc9f427972d4ac3b32f7512d23bea801534f3eec5d6568a245f3c SHA512 0383697e89f6736c64015db76ad2071fda8b6b9d83e548b39d5b446c63a9875dc31f5619244629826f535a9d74a764230e51fa240904bbdb386b3204c85af884 WHIRLPOOL eb055c0dce306e5b92f6fd454be32248ee838fdbd86383969ab2b052ccd0db7e601cc6114f4ebcbae76160156385bb2e89f0b05ce4834c47c54b1535b7846602
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iJwEAQEIAAYFAlAzgC8ACgkQIaLonLtsQsed5gQAplf5qYEONzb1SgNhHAVMzjqI
+AGB9ABwrZJPQg4/IffxFmQZKjTE7PIkUOPNz7b+G/5gavWgJ0JpO8zvLF4WkG8Bq
+alQdzmjwzqYSWSWgil5zJDzx4i1oj+5ruzx3tvQUiH1TOR35WnGEGEcDGUk6wJB6
+T6otbAH4KcoQlW69tuM=
+=A3Fn
+-----END PGP SIGNATURE-----
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>