Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | require oprofileui.inc |
| 2 | |
| 3 | SRCREV = "389e1875af4721d52c7e65cf9cfffb69b0ed6a59" |
| 4 | PV = "0.0+git${SRCPV}" |
| 5 | |
| 6 | S = "${WORKDIR}/git" |
| 7 | |
| 8 | SRC_URI = "git://git.yoctoproject.org/oprofileui \ |
| 9 | file://init \ |
| 10 | file://oprofileui-server.service " |
| 11 | |
| 12 | DEPENDS += "intltool-native" |
| 13 | |
| 14 | EXTRA_OECONF += "--disable-client --enable-server" |
| 15 | |
| 16 | RDEPENDS_${PN} = "oprofile avahi-daemon" |
| 17 | |
| 18 | do_install_append() { |
| 19 | install -d ${D}${sysconfdir}/init.d |
| 20 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/oprofileui-server |
| 21 | |
| 22 | install -d ${D}${systemd_unitdir}/system |
| 23 | install -m 0644 ${WORKDIR}/oprofileui-server.service ${D}${systemd_unitdir}/system/ |
| 24 | sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \ |
| 25 | -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/oprofileui-server.service |
| 26 | } |
| 27 | |
| 28 | inherit update-rc.d systemd |
| 29 | |
| 30 | INITSCRIPT_NAME = "oprofileui-server" |
| 31 | INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ." |
| 32 | |
| 33 | SYSTEMD_SERVICE_${PN} = "oprofileui-server.service" |
| 34 | SYSTEMD_AUTO_ENABLE = "disable" |