require oprofileui.inc

SRCREV = "f168b8bfdc63660033de1739c6ddad1abd97c379"
PV = "0.0+git${SRCPV}"

S = "${WORKDIR}/git"

SRC_URI = "git://git.yoctoproject.org/oprofileui;protocol=git \
           file://init"

EXTRA_OECONF += "--disable-client --enable-server"

RDEPENDS_${PN} = "oprofile"

do_install_append() {
	install -d ${D}${sysconfdir}/init.d
	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/oprofileui-server
}

INITSCRIPT_NAME = "oprofileui-server"
INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ."

inherit update-rc.d
