diff options
author | Muhammad Shakeel <muhammad_shakeel@mentor.com> | 2013-09-12 06:31:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-14 08:29:41 +0100 |
commit | 27bb9d0a9025043250edd09a334e6657073f26a3 (patch) | |
tree | ce0d03b4cfa82f84852981a852bf0c0fb7a02563 /meta | |
parent | 34e875e7ecd641f9128d4eb8ef2e78902d876c03 (diff) | |
download | poky-27bb9d0a9025043250edd09a334e6657073f26a3.tar.gz |
oprofileui-server: Add systemd support
-Remove dependency on meta-systemd
(From OE-Core rev: 177bf318bcd3dd2bfb3bec094b1f5ccac7bdd9ac)
Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/oprofile/oprofileui-server/oprofileui-server.service | 6 | ||||
-rw-r--r-- | meta/recipes-kernel/oprofile/oprofileui-server_git.bb | 13 |
2 files changed, 17 insertions, 2 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofileui-server/oprofileui-server.service b/meta/recipes-kernel/oprofile/oprofileui-server/oprofileui-server.service new file mode 100644 index 0000000000..1a2cbe62ea --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofileui-server/oprofileui-server.service | |||
@@ -0,0 +1,6 @@ | |||
1 | [Unit] | ||
2 | Description=OProfileUI Server | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | ExecStart=/bin/sh -c ". @SYSCONFDIR@/profile; @BINDIR@/oprofile-server" | ||
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}" | |||
6 | S = "${WORKDIR}/git" | 6 | S = "${WORKDIR}/git" |
7 | 7 | ||
8 | SRC_URI = "git://git.yoctoproject.org/oprofileui \ | 8 | SRC_URI = "git://git.yoctoproject.org/oprofileui \ |
9 | file://init" | 9 | file://init \ |
10 | file://oprofileui-server.service " | ||
10 | 11 | ||
11 | EXTRA_OECONF += "--disable-client --enable-server" | 12 | EXTRA_OECONF += "--disable-client --enable-server" |
12 | 13 | ||
@@ -15,9 +16,17 @@ RDEPENDS_${PN} = "oprofile" | |||
15 | do_install_append() { | 16 | do_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 | ||
26 | inherit update-rc.d systemd | ||
27 | |||
20 | INITSCRIPT_NAME = "oprofileui-server" | 28 | INITSCRIPT_NAME = "oprofileui-server" |
21 | INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ." | 29 | INITSCRIPT_PARAMS = "start 999 5 2 . stop 20 0 1 6 ." |
22 | 30 | ||
23 | inherit update-rc.d | 31 | SYSTEMD_SERVICE_${PN} = "oprofileui-server.service" |
32 | SYSTEMD_AUTO_ENABLE = "disable" | ||