From 4f3cabc8749c9b5c3362d50029f04b48fcbca266 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Tue, 16 Apr 2013 21:09:40 +0200 Subject: xinput-calibrator: install .service only with systemd in DISTRO_FEATURES * Otavio reported unpackaged files without systemd enabled Signed-off-by: Martin Jansa --- .../recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb b/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb index 593d4658c..640aef1fc 100644 --- a/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb +++ b/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://src/calibrator.cpp;endline=22;md5=1bcba08f67cdb56f340 DEPENDS = "virtual/libx11 libxi" PV = "0.7.5+git${SRCPV}" -PR = "r5" +PR = "r6" inherit autotools systemd @@ -26,8 +26,10 @@ do_install_append() { sed -i -e 's,^Exec=.*,Exec=${bindir}/xinput_calibrator_once.sh,' scripts/xinput_calibrator.desktop install -m 0644 scripts/xinput_calibrator.desktop ${D}${sysconfdir}/xdg/autostart - install -d ${D}${systemd_unitdir}/system - install -m 0644 ${WORKDIR}/xinput-calibrator.service ${D}${systemd_unitdir}/system + if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_unitdir}/system + install -m 0644 ${WORKDIR}/xinput-calibrator.service ${D}${systemd_unitdir}/system + fi } FILES_${PN} += "${sysconfdir}/xdg/autostart" -- cgit v1.2.3-54-g00ecf