blob: 9ec0a8e84a452b7b15ff6d639ef0e4e0d7a3775b [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Software watchdog"
2DESCRIPTION = "Watchdog is a daemon that checks if your system is still \
3working. If programs in user space are not longer executed \
4it will reboot the system."
5HOMEPAGE = "http://watchdog.sourceforge.net/"
6BUGTRACKER = "http://sourceforge.net/tracker/?group_id=172030&atid=860194"
7
8LICENSE = "GPL-2.0+"
9LIC_FILES_CHKSUM = "file://COPYING;md5=ecc0551bf54ad97f6b541720f84d6569"
10
11SRC_URI = "${SOURCEFORGE_MIRROR}/watchdog/watchdog-${PV}.tar.gz \
12 file://fixsepbuild.patch \
13 file://fix-ping-failure.patch \
14 file://watchdog-init.patch \
15 file://watchdog-conf.patch"
16
17SRC_URI[md5sum] = "5b2dba0c593942f4acc100bca0d560c4"
18SRC_URI[sha256sum] = "620b2f49e9879f2e85c73d4c1f422f9101e6b38e824fea2414befd8bb6866ad1"
19
20inherit autotools
21inherit update-rc.d
22
23INITSCRIPT_NAME = "watchdog.sh"
24INITSCRIPT_PARAMS = "start 15 1 2 3 4 5 . stop 85 0 6 ."
25
26RRECOMMENDS_${PN} = "kernel-module-softdog"
27
28do_install_append() {
29 install -D ${S}/redhat/watchdog.init ${D}/${sysconfdir}/init.d/watchdog.sh
30}