diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-16 21:09:40 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-04-19 02:45:28 +0200 |
commit | 4f3cabc8749c9b5c3362d50029f04b48fcbca266 (patch) | |
tree | 495d28b3a37b7eb313c457baf32d25492f325241 | |
parent | 823d41b46a9d3cc223bd66e13b655558d9e6a361 (diff) | |
download | meta-openembedded-4f3cabc8749c9b5c3362d50029f04b48fcbca266.tar.gz |
xinput-calibrator: install .service only with systemd in DISTRO_FEATURES
* Otavio reported unpackaged files without systemd enabled
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_git.bb | 8 |
1 files 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 | |||
5 | DEPENDS = "virtual/libx11 libxi" | 5 | DEPENDS = "virtual/libx11 libxi" |
6 | 6 | ||
7 | PV = "0.7.5+git${SRCPV}" | 7 | PV = "0.7.5+git${SRCPV}" |
8 | PR = "r5" | 8 | PR = "r6" |
9 | 9 | ||
10 | inherit autotools systemd | 10 | inherit autotools systemd |
11 | 11 | ||
@@ -26,8 +26,10 @@ do_install_append() { | |||
26 | sed -i -e 's,^Exec=.*,Exec=${bindir}/xinput_calibrator_once.sh,' scripts/xinput_calibrator.desktop | 26 | sed -i -e 's,^Exec=.*,Exec=${bindir}/xinput_calibrator_once.sh,' scripts/xinput_calibrator.desktop |
27 | install -m 0644 scripts/xinput_calibrator.desktop ${D}${sysconfdir}/xdg/autostart | 27 | install -m 0644 scripts/xinput_calibrator.desktop ${D}${sysconfdir}/xdg/autostart |
28 | 28 | ||
29 | install -d ${D}${systemd_unitdir}/system | 29 | if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
30 | install -m 0644 ${WORKDIR}/xinput-calibrator.service ${D}${systemd_unitdir}/system | 30 | install -d ${D}${systemd_unitdir}/system |
31 | install -m 0644 ${WORKDIR}/xinput-calibrator.service ${D}${systemd_unitdir}/system | ||
32 | fi | ||
31 | } | 33 | } |
32 | 34 | ||
33 | FILES_${PN} += "${sysconfdir}/xdg/autostart" | 35 | FILES_${PN} += "${sysconfdir}/xdg/autostart" |