Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Userspace helper for Linux kernel EDAC drivers" |
| 2 | HOMEPAGE = "https://github.com/grondo/edac-utils" |
| 3 | SECTION = "Applications/System" |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 6 | |
| 7 | DEPENDS = " sysfsutils" |
| 8 | |
| 9 | SRCREV = "f9aa96205f610de39a79ff43c7478b7ef02e3138" |
| 10 | PV = "0.18+git${SRCPV}" |
| 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
| 14 | SRC_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 Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 17 | file://edac.service \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | " |
| 19 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 20 | inherit autotools-brokensep systemd |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 22 | do_configure:prepend () { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 23 | touch ${S}/ChangeLog |
| 24 | ${S}/bootstrap |
| 25 | } |
| 26 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | RDEPENDS:${PN}:x86 = "dmidecode" |
| 28 | RDEPENDS:${PN}:x86-64 = "dmidecode" |
| 29 | RDEPENDS:${PN}:arm = "dmidecode" |
| 30 | RDEPENDS:${PN}:aarch64 = "dmidecode" |
| 31 | RDEPENDS:${PN}:powerpc = "dmidecode" |
| 32 | RDEPENDS:${PN}:powerpc64 = "dmidecode" |
| 33 | RDEPENDS:${PN}:powerpc64le = "dmidecode" |
| 34 | RDEPENDS:${PN}:append = " \ |
Brad Bishop | 90ca747 | 2019-08-20 09:15:15 -0400 | [diff] [blame] | 35 | perl \ |
| 36 | perl-module-file-basename \ |
| 37 | perl-module-file-find \ |
| 38 | perl-module-getopt-long \ |
| 39 | perl-module-posix \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 40 | perl-module-overload \ |
| 41 | perl-module-overloading \ |
| 42 | perl-module-file-glob \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 43 | " |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | do_install:append() { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 46 | 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 Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 51 | SYSTEMD_SERVICE:${PN} = "edac.service" |
| 52 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" |