blob: 914718c0092ebd06128fab630b448cf79ef0706b [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Userspace helper for Linux kernel EDAC drivers"
2HOMEPAGE = "https://github.com/grondo/edac-utils"
3SECTION = "Applications/System"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
6
7DEPENDS = " sysfsutils"
8
9SRCREV = "f9aa96205f610de39a79ff43c7478b7ef02e3138"
10PV = "0.18+git${SRCPV}"
11
12S = "${WORKDIR}/git"
13
14SRC_URI = "git://github.com/grondo/edac-utils \
15 file://make-init-script-be-able-to-automatically-load-EDAC-.patch \
16 file://add-restart-to-initscript.patch \
Patrick Williamsddad1a12017-02-23 20:36:32 -060017 file://edac.service \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018"
19
Patrick Williamsddad1a12017-02-23 20:36:32 -060020inherit autotools-brokensep systemd
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021
Patrick Williams213cb262021-08-07 19:21:33 -050022do_configure:prepend () {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050023 touch ${S}/ChangeLog
24 ${S}/bootstrap
25}
26
Patrick Williams213cb262021-08-07 19:21:33 -050027RDEPENDS:${PN}:x86 = "dmidecode"
28RDEPENDS:${PN}:x86-64 = "dmidecode"
29RDEPENDS:${PN}:arm = "dmidecode"
30RDEPENDS:${PN}:aarch64 = "dmidecode"
31RDEPENDS:${PN}:powerpc = "dmidecode"
32RDEPENDS:${PN}:powerpc64 = "dmidecode"
33RDEPENDS:${PN}:powerpc64le = "dmidecode"
34RDEPENDS:${PN}:append = " \
Brad Bishop90ca7472019-08-20 09:15:15 -040035 perl \
36 perl-module-file-basename \
37 perl-module-file-find \
38 perl-module-getopt-long \
39 perl-module-posix \
Patrick Williamsddad1a12017-02-23 20:36:32 -060040 perl-module-overload \
41 perl-module-overloading \
42 perl-module-file-glob \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050043"
Patrick Williamsddad1a12017-02-23 20:36:32 -060044
Patrick Williams213cb262021-08-07 19:21:33 -050045do_install:append() {
Patrick Williamsddad1a12017-02-23 20:36:32 -060046 install -d ${D}${systemd_unitdir}/system
47 install -m 644 ${WORKDIR}/edac.service ${D}/${systemd_unitdir}/system
48 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}/${systemd_unitdir}/system/edac.service
49}
50
Patrick Williams213cb262021-08-07 19:21:33 -050051SYSTEMD_SERVICE:${PN} = "edac.service"
52SYSTEMD_AUTO_ENABLE:${PN} = "disable"