summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/cpulimit/cpulimit_0.2.bb
blob: f88d3b6ca19970a1edf448a5134b6b0b55cc87c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SUMMARY = "cpulimit is a tool which limits the CPU usage of a process"
DESCRIPTION = "cpulimit is a simple program that attempts to limit the CPU usage of a process (expressed in percentage, not in CPU time). This is useful to control batch jobs, when you don't want them to eat too much CPU. It does not act on the nice value or other priority stuff, but on the real CPU usage. Besides it is able to adapt itself to the overall system load, dynamically and quickly."
HOMEPAGE = "http://cpulimit.sourceforge.net"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86c1c0d961a437e529db93aa3bb32dc4"
SRCREV ?= "f4d2682804931e7aea02a869137344bb5452a3cd"

SRC_URI = "git://github.com/opsengine/cpulimit.git;protocol=https;branch=master \
           file://0001-Remove-sys-sysctl.h-and-add-missing-libgen.h-include.patch \
           "

S = "${WORKDIR}/git"

do_compile() {
    oe_runmake all
}
do_install() {
    install -d ${D}${sbindir}
    install -m 0755 ${B}/src/${BPN} ${D}${sbindir}/
}

CFLAGS += "-D_GNU_SOURCE ${LDFLAGS}"