summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-04-23 17:40:53 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-24 17:55:15 +0100
commit40fd8e64acc0f3f9571d2a96b4fa15b985d8e244 (patch)
tree697efc8c0338f7a06c1319a3b68755d6f32b018e /meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
parent870a3169d62e3b72d4baf3923b94b56c3deb71ae (diff)
downloadpoky-40fd8e64acc0f3f9571d2a96b4fa15b985d8e244.tar.gz
tcf-agent: add systemd support
Add systemd unit file tcf-agent.service. (From OE-Core rev: 1a4feebf98780f586bf2e81cf9844e6805a50799) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/tcf-agent/tcf-agent_git.bb')
-rw-r--r--meta/recipes-devtools/tcf-agent/tcf-agent_git.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
index 1eb0021eec..616a6a7a9a 100644
--- a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
@@ -12,6 +12,7 @@ PR = "r2"
12SRC_URI = "git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git \ 12SRC_URI = "git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git \
13 file://fix_ranlib.patch \ 13 file://fix_ranlib.patch \
14 file://tcf-agent.init \ 14 file://tcf-agent.init \
15 file://tcf-agent.service \
15 " 16 "
16 17
17DEPENDS = "util-linux openssl" 18DEPENDS = "util-linux openssl"
@@ -19,7 +20,9 @@ RDEPENDS_${PN} = "bash"
19 20
20S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
21 22
22inherit update-rc.d 23inherit update-rc.d systemd
24
25SYSTEMD_SERVICE_${PN} = "tcf-agent.service"
23 26
24INITSCRIPT_NAME = "tcf-agent" 27INITSCRIPT_NAME = "tcf-agent"
25INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ." 28INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ."
@@ -44,5 +47,8 @@ do_install() {
44 oe_runmake install INSTALLROOT=${D} 47 oe_runmake install INSTALLROOT=${D}
45 install -d ${D}${sysconfdir}/init.d/ 48 install -d ${D}${sysconfdir}/init.d/
46 install -m 0755 ${WORKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent 49 install -m 0755 ${WORKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent
50 install -d ${D}${systemd_unitdir}/system
51 install -m 0644 ${WORKDIR}/tcf-agent.service ${D}${systemd_unitdir}/system
52 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/tcf-agent.service
47} 53}
48 54