blob: 53275d1216c20e2fdcdcca1df161ecea9850076d [file] [log] [blame]
Patrick Williamsd849ec72016-08-17 14:59:38 -05001#
2# Copyright (C) 2013 Wind River Systems, Inc.
3#
4SUMMARY = "IRQ allocation daemon"
5DESCRIPTION = "A daemon to balance interrupts across multiple CPUs, \
6which can lead to better performance and IO balance on SMP systems."
7
8HOMEPAGE = "http://code.google.com/p/irqbalance/"
9BUGTRACKER = "http://code.google.com/p/irqbalance/issues/list"
10
11LICENSE = "GPLv2"
12LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
13 file://irqbalance.c;beginline=6;endline=8;md5=b94e153694672307b503b1bc87dc9e24 \
14 "
15
16DEPENDS = "glib-2.0"
17
18INITSCRIPT_NAME = "irqbalanced"
19INITSCRIPT_PARAMS = "defaults"
20
21inherit autotools update-rc.d pkgconfig systemd
22
23SYSTEMD_PACKAGES = "irqbalance"
24SYSTEMD_SERVICE_irqbalance = "irqbalanced.service"
25
26EXTRA_OECONF = "--program-transform-name= \
27 "
28
29# let the recipes or appends define options
30#
31PACKAGECONFIG ?= ""
32
33# enable,disable,depends,rdepends
34#
35PACKAGECONFIG[numa] = "--enable-numa,--disable-numa,numactl,"
36PACKAGECONFIG[libcap-ng] = "--with-libcap-ng,--without-libcap-ng,libcap-ng,"
37
38do_install () {
39 oe_runmake 'DESTDIR=${D}' install
40 install -d ${D}${sysconfdir}/init.d
41 cat ${S}/irqbalance.init | sed -e's,/usr/sbin,${sbindir},g' > ${D}${sysconfdir}/init.d/irqbalanced
42 chmod 755 ${D}${sysconfdir}/init.d/irqbalanced
43
44 install -d ${D}${systemd_unitdir}/system
45 install -m 0644 ${WORKDIR}/irqbalanced.service ${D}${systemd_unitdir}/system
46 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/irqbalanced.service
47}