summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/oprofile/oprofileui-server_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/oprofile/oprofileui-server_git.bb')
-rw-r--r--meta/recipes-kernel/oprofile/oprofileui-server_git.bb13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofileui-server_git.bb b/meta/recipes-kernel/oprofile/oprofileui-server_git.bb
index 200bab3b24..70a1fbf9c3 100644
--- a/meta/recipes-kernel/oprofile/oprofileui-server_git.bb
+++ b/meta/recipes-kernel/oprofile/oprofileui-server_git.bb
@@ -6,7 +6,8 @@ PV = "0.0+git${SRCPV}"
6S = "${WORKDIR}/git" 6S = "${WORKDIR}/git"
7 7
8SRC_URI = "git://git.yoctoproject.org/oprofileui \ 8SRC_URI = "git://git.yoctoproject.org/oprofileui \
9 file://init" 9 file://init \
10 file://oprofileui-server.service "
10 11
11EXTRA_OECONF += "--disable-client --enable-server" 12EXTRA_OECONF += "--disable-client --enable-server"
12 13
@@ -15,9 +16,17 @@ RDEPENDS_${PN} = "oprofile"
15do_install_append() { 16do_install_append() {
16 install -d ${D}${sysconfdir}/init.d 17 install -d ${D}${sysconfdir}/init.d
17 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/oprofileui-server 18 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/oprofileui-server
19
20 install -d ${D}${systemd_unitdir}/system
21 install -m 0644 ${WORKDIR}/oprofileui-server.service ${D}${systemd_unitdir}/system/
22 sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \
23 -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/oprofileui-server.service
18} 24}
19 25
26inherit update-rc.d systemd
27
20INITSCRIPT_NAME = "oprofileui-server" 28INITSCRIPT_NAME = "oprofileui-server"
21INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ." 29INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ."
22 30
23inherit update-rc.d 31SYSTEMD_SERVICE_${PN} = "oprofileui-server.service"
32SYSTEMD_AUTO_ENABLE = "disable"