| DESCRIPTION = "Early OOM Daemon for Linux" |
| |
| LICENSE = "MIT" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=875c33872f2633c48ce20e87d8cd3270" |
| |
| inherit systemd |
| inherit obmc-phosphor-systemd |
| |
| DEPENDS += "systemd" |
| |
| RDEPENDS:${PN} += "bash" |
| |
| SRC_URI = " \ |
| git://github.com/rfjakob/earlyoom.git;branch=master;protocol=https \ |
| file://0001-Allow-process_mrelease-system-call.patch \ |
| file://earlyoom.default \ |
| " |
| |
| SRCREV = "90f1a6704e505d2b3d41dcc1677e23af80d6319a" |
| S = "${WORKDIR}/git" |
| |
| SYSTEMD_PACKAGES = "${PN}" |
| SYSTEMD_SERVICE:${PN} = "earlyoom.service" |
| |
| EXTRA_OEMAKE += "PREFIX=/usr DESTDIR=${D}" |
| |
| do_install() { |
| oe_runmake install |
| |
| install -d ${D}/etc/default |
| install -m 0644 ${WORKDIR}/earlyoom.default ${D}/etc/default/earlyoom |
| } |