summaryrefslogtreecommitdiffstats
path: root/recipes-core/numad/numad_0.6.bb
blob: a6e8ad61d64c7a799d89b3bd1c72d5a219384f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SUMMARY = "NUMA load distributing daemon"
DESCRIPTION = 'A user-level daemon that monitors NUMA topology and processes resource \
consumption to facilitate good NUMA resource access of applications/virtual machines \
to improve performance and minimize cost of remote memory latencies.'
HOMEPAGE = "https://git.fedorahosted.org/git/numad.git"
SECTION = "console/utils"

LICENSE = "LGPLv2.1"

LIC_FILES_CHKSUM = "file://numad.c;beginline=1;endline=19;md5=fc770296e974bef07ddd7033725c8e29"

SRC_URI = "git://git.fedorahosted.org/git/numad.git;protocol=https;branch=master \
           file://Makefile.patch \
           file://test.patch \
           file://run-ptest \
           file://numad.init.patch \
           file://numad.conf.patch"

SRCREV = "b621838bf9c8203e87137eca28e19bcc381cde2a"

S = "${WORKDIR}/git"

#clear .LIBPATTERNS instead of using VPATH="${STAGING_LIBDIR}:${STAGING_DIR_HOST}/${base_libdir}"
EXTRA_OEMAKE = 'prefix=${D}/usr TEST_DESTDIR=${D}${PTEST_PATH} .LIBPATTERNS=""'

do_install () {
        oe_runmake install
        install -d ${D}${sysconfdir}/init.d
        install -m 0755 ${S}/numad.init ${D}${sysconfdir}/init.d
        install -m 0644 ${S}/numad.conf ${D}${sysconfdir}
}

inherit update-rc.d ptest

DEPENDS_${PN}-ptest += "numactl"
RDEPENDS_${PN}-ptest += "libnuma"

INITSCRIPT_NAME = "numad.init"
#INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ."
INITSCRIPT_PARAMS = "stop 20 5 2 . stop 20 0 1 6 ."

#wait for numa.h
do_compile_ptest_base[depends] += "numactl:do_populate_sysroot"

do_install_ptest () {
        oe_runmake test-install
}

do_compile_ptest () {
        oe_runmake test
}