summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-07-04 16:36:42 +0000
committerMike Frysinger <vapier@gentoo.org>2004-07-04 16:36:42 +0000
commite0b340ec6e3cd3eb1a3b9d05260ca20638f532e8 (patch)
tree68bdd5112030454a227b7ef1fc773aafe7f5acab /app-admin/watchdog
parent~amd64 ~sparc (Manifest recommit) (diff)
downloadgentoo-2-e0b340ec6e3cd3eb1a3b9d05260ca20638f532e8.tar.gz
gentoo-2-e0b340ec6e3cd3eb1a3b9d05260ca20638f532e8.tar.bz2
gentoo-2-e0b340ec6e3cd3eb1a3b9d05260ca20638f532e8.zip
rebuild Manifest
Diffstat (limited to 'app-admin/watchdog')
-rw-r--r--app-admin/watchdog/files/5.2/watchdog12
-rw-r--r--app-admin/watchdog/watchdog-5.2.ebuild9
2 files changed, 15 insertions, 6 deletions
diff --git a/app-admin/watchdog/files/5.2/watchdog b/app-admin/watchdog/files/5.2/watchdog
index 72959a3b9846..7a0fbaa86c6b 100644
--- a/app-admin/watchdog/files/5.2/watchdog
+++ b/app-admin/watchdog/files/5.2/watchdog
@@ -1,16 +1,24 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/watchdog/files/5.2/watchdog,v 1.3 2004/02/13 19:10:36 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/watchdog/files/5.2/watchdog,v 1.4 2004/07/04 16:36:42 vapier Exp $
depend() {
need localmount
use logger
}
+checkconfig() {
+ if [ ! -e /dev/watchdog ] ; then
+ eerror "/dev/watchdog does not exist!"
+ return 1
+ fi
+ return 0
+}
+
start() {
+ checkconfig || return 1
ebegin "Starting watchdog"
- [ ! -e /dev/watchdog ] && eend 1 "/dev/watchdog not found"
start-stop-daemon --start --quiet --exec /usr/sbin/watchdog
eend $?
}
diff --git a/app-admin/watchdog/watchdog-5.2.ebuild b/app-admin/watchdog/watchdog-5.2.ebuild
index 7dafc0ff82ea..80f4fbc4501e 100644
--- a/app-admin/watchdog/watchdog-5.2.ebuild
+++ b/app-admin/watchdog/watchdog-5.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/watchdog/watchdog-5.2.ebuild,v 1.19 2004/07/04 15:59:20 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/watchdog/watchdog-5.2.ebuild,v 1.20 2004/07/04 16:36:42 vapier Exp $
inherit eutils
@@ -16,9 +16,10 @@ IUSE=""
DEPEND="virtual/libc"
src_unpack() {
- unpack ${A} ; cd ${S}
- epatch ${FILESDIR}/sundries.diff || die "patch failed"
- epatch ${FILESDIR}/${P}-alpha.diff || die "patch failed"
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/sundries.diff
+ epatch ${FILESDIR}/${P}-alpha.diff
}
src_compile() {