diff options
author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2020-05-14 23:29:13 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-15 16:31:44 +0100 |
commit | 7e1b054aed1ed221e1359c5da6a36eea67daadf2 (patch) | |
tree | 0f108ba75c024433db5f6468c69623aa6bf35121 /meta/recipes-extended/watchdog/watchdog_5.16.bb | |
parent | ff2a3335c432b6d031caf16d6b07e62f0743b9a3 (diff) | |
download | poky-7e1b054aed1ed221e1359c5da6a36eea67daadf2.tar.gz |
watchdog: upgrade 5.15 -> 5.16
0001-Include-linux-param.h-for-EXEC_PAGESIZE-definition.patch
removed since it is included in 5.16
-License-Update: Copyright year updated to 2020.
(From OE-Core rev: 1ec6381bb6b654076ee7eec1d3a8933a160b7811)
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/watchdog/watchdog_5.16.bb')
-rw-r--r-- | meta/recipes-extended/watchdog/watchdog_5.16.bb | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-extended/watchdog/watchdog_5.16.bb b/meta/recipes-extended/watchdog/watchdog_5.16.bb new file mode 100644 index 0000000000..0199487e2e --- /dev/null +++ b/meta/recipes-extended/watchdog/watchdog_5.16.bb | |||
@@ -0,0 +1,71 @@ | |||
1 | SUMMARY = "Software watchdog" | ||
2 | DESCRIPTION = "Watchdog is a daemon that checks if your system is still \ | ||
3 | working. If programs in user space are not longer executed \ | ||
4 | it will reboot the system." | ||
5 | HOMEPAGE = "http://watchdog.sourceforge.net/" | ||
6 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=172030&atid=860194" | ||
7 | |||
8 | LICENSE = "GPL-2.0+" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=084236108b1d4a9851bf5213fea586fd" | ||
10 | |||
11 | SRC_URI = "${SOURCEFORGE_MIRROR}/watchdog/watchdog-${PV}.tar.gz \ | ||
12 | file://0001-watchdog-remove-interdependencies-of-watchdog-and-wd.patch \ | ||
13 | file://watchdog.init \ | ||
14 | file://wd_keepalive.init \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[md5sum] = "1b4f51cabc64d1bee2fce7cdd626831f" | ||
18 | SRC_URI[sha256sum] = "b8e7c070e1b72aee2663bdc13b5cc39f76c9232669cfbb1ac0adc7275a3b019d" | ||
19 | |||
20 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/watchdog/files/watchdog/" | ||
21 | UPSTREAM_CHECK_REGEX = "/watchdog/(?P<pver>(\d+[\.\-_]*)+)/" | ||
22 | |||
23 | inherit autotools update-rc.d systemd pkgconfig | ||
24 | |||
25 | DEPENDS += "libtirpc" | ||
26 | CFLAGS += "-I${STAGING_INCDIR}/tirpc" | ||
27 | LDFLAGS += "-ltirpc" | ||
28 | |||
29 | EXTRA_OECONF += " --disable-nfs " | ||
30 | |||
31 | INITSCRIPT_PACKAGES = "${PN} ${PN}-keepalive" | ||
32 | |||
33 | INITSCRIPT_NAME_${PN} = "watchdog" | ||
34 | INITSCRIPT_PARAMS_${PN} = "start 25 1 2 3 4 5 . stop 85 0 6 ." | ||
35 | |||
36 | INITSCRIPT_NAME_${PN}-keepalive = "wd_keepalive" | ||
37 | INITSCRIPT_PARAMS_${PN}-keepalive = "start 25 1 2 3 4 5 . stop 85 0 6 ." | ||
38 | |||
39 | SYSTEMD_PACKAGES = "${PN} ${PN}-keepalive" | ||
40 | SYSTEMD_SERVICE_${PN} = "watchdog.service" | ||
41 | SYSTEMD_SERVICE_${PN}-keepalive = "wd_keepalive.service" | ||
42 | # When using systemd, consider making use of internal watchdog support of systemd. | ||
43 | # See RuntimeWatchdogSec in /etc/systemd/system.conf. | ||
44 | SYSTEMD_AUTO_ENABLE = "disable" | ||
45 | |||
46 | do_install_append() { | ||
47 | install -d ${D}${systemd_system_unitdir} | ||
48 | install -m 0644 ${S}/debian/watchdog.service ${D}${systemd_system_unitdir} | ||
49 | install -m 0644 ${S}/debian/wd_keepalive.service ${D}${systemd_system_unitdir} | ||
50 | |||
51 | install -Dm 0755 ${WORKDIR}/watchdog.init ${D}/${sysconfdir}/init.d/watchdog | ||
52 | install -Dm 0755 ${WORKDIR}/wd_keepalive.init ${D}${sysconfdir}/init.d/wd_keepalive | ||
53 | |||
54 | # watchdog.conf is provided by the watchdog-config recipe | ||
55 | rm ${D}${sysconfdir}/watchdog.conf | ||
56 | } | ||
57 | |||
58 | PACKAGES =+ "${PN}-keepalive" | ||
59 | |||
60 | FILES_${PN}-keepalive = " \ | ||
61 | ${sysconfdir}/init.d/wd_keepalive \ | ||
62 | ${systemd_system_unitdir}/wd_keepalive.service \ | ||
63 | ${sbindir}/wd_keepalive \ | ||
64 | " | ||
65 | |||
66 | RDEPENDS_${PN} += "${PN}-config" | ||
67 | RRECOMMENDS_${PN} += "kernel-module-softdog" | ||
68 | |||
69 | RDEPENDS_${PN}-keepalive += "${PN}-config" | ||
70 | RCONFLICTS_${PN}-keepalive += "${PN}" | ||
71 | RRECOMMENDS_${PN}-keepalive += "kernel-module-softdog" | ||