summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb
diff options
context:
space:
mode:
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