summaryrefslogtreecommitdiffstats
path: root/recipes-extended/openhpi/openhpi.inc
diff options
context:
space:
mode:
authorLi xin <lixin.fnst@cn.fujitsu.com>2015-06-19 10:38:44 +0800
committerJoão Henrique Ferreira de Freitas <joaohf@gmail.com>2015-06-22 21:48:43 -0300
commitd7b1b9a17287fd715772cbf5c2b8e1356759a8ea (patch)
tree06997e80050ba5ecbb0feab6e96c9db6f481461d /recipes-extended/openhpi/openhpi.inc
parent83b1f76a75266743dc9eb0238039d5b973ad8ac0 (diff)
downloadmeta-openclovis-d7b1b9a17287fd715772cbf5c2b8e1356759a8ea.tar.gz
openhpi: add systemd support
add systemd service file openhpid.service Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Diffstat (limited to 'recipes-extended/openhpi/openhpi.inc')
-rw-r--r--recipes-extended/openhpi/openhpi.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/recipes-extended/openhpi/openhpi.inc b/recipes-extended/openhpi/openhpi.inc
index 29015c3..975b6ce 100644
--- a/recipes-extended/openhpi/openhpi.inc
+++ b/recipes-extended/openhpi/openhpi.inc
@@ -14,12 +14,23 @@ DEPENDS = " \
14 14
15INC_PR = "r1" 15INC_PR = "r1"
16 16
17inherit autotools gettext update-alternatives pkgconfig 17inherit autotools gettext update-alternatives pkgconfig systemd
18 18
19PACKAGECONFIG ??= "net-snmp" 19PACKAGECONFIG ??= "net-snmp"
20 20
21PACKAGECONFIG[net-snmp] = "--with-net-snmp-config=${STAGING_BINDIR}/net-snmp-config,, net-snmp" 21PACKAGECONFIG[net-snmp] = "--with-net-snmp-config=${STAGING_BINDIR}/net-snmp-config,, net-snmp"
22 22
23SYSTEMD_SERVICE_${PN} = "openhpid.service"
24SYSTEMD_AUTO_ENABLE = "disable"
25
26do_install_append() {
27 install -d 777 ${D}/var/lib/openhpi
28 install -d ${D}/${systemd_unitdir}/system
29 install -m 644 ${WORKDIR}/openhpid.service ${D}/${systemd_unitdir}/system
30 sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}/${systemd_unitdir}/system/openhpid.service
31 sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}/${systemd_unitdir}/system/openhpid.service
32}
33
23FILES_${PN} += "${libdir}/${PN}/*" 34FILES_${PN} += "${libdir}/${PN}/*"
24 35
25INSANE_SKIP_${PN} = "dev-so" 36INSANE_SKIP_${PN} = "dev-so"