summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-11-30 00:27:16 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2012-03-29 16:14:38 +0200
commitbe2ae063d1586301713a0dc466bfe44e2f598cb1 (patch)
tree96ba491670be059d2a23eb73b0d2465c2128c798 /meta-oe
parent2bbed5ec032ec90957028b2b1b5c8c7871eb1bc3 (diff)
downloadmeta-openembedded-be2ae063d1586301713a0dc466bfe44e2f598cb1.tar.gz
xinput-calibrator: add systemd service
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator/xinput-calibrator.service11
-rw-r--r--meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb11
2 files changed, 19 insertions, 3 deletions
diff --git a/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator/xinput-calibrator.service b/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator/xinput-calibrator.service
new file mode 100644
index 000000000..e23bfc4f1
--- /dev/null
+++ b/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator/xinput-calibrator.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Loads xinput calibration data
3ConditionPathExists=/etc/pointercal.xinput
4Requires=xserver-nodm.service
5After=xserver-nodm.service
6
7[Service]
8ExecStart=/usr/bin/xinput_calibrator_once.sh
9
10[Install]
11WantedBy=multi-user.target
diff --git a/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb b/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
index e39cc44b5..d823e0e5a 100644
--- a/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
+++ b/meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb
@@ -4,12 +4,14 @@ LICENSE = "MIT-X"
4LIC_FILES_CHKSUM = "file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc" 4LIC_FILES_CHKSUM = "file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc"
5DEPENDS = "virtual/libx11 libxi" 5DEPENDS = "virtual/libx11 libxi"
6 6
7PR = "r3" 7PR = "r4"
8 8
9inherit autotools 9inherit autotools systemd
10 10
11SRC_URI = "http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-${PV}.tar.gz \ 11SRC_URI = "http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-${PV}.tar.gz \
12 file://0001-xinput_calibrator_pointercal.sh-specify-output-type-.patch" 12 file://0001-xinput_calibrator_pointercal.sh-specify-output-type-.patch \
13 file://xinput-calibrator.service \
14"
13SRC_URI[md5sum] = "20da0a2055a5a75962add8c6b44f60fa" 15SRC_URI[md5sum] = "20da0a2055a5a75962add8c6b44f60fa"
14SRC_URI[sha256sum] = "baa4ddca49ec94c27ba4c715bfa26692fec1132103e927213c3169e475d3d971" 16SRC_URI[sha256sum] = "baa4ddca49ec94c27ba4c715bfa26692fec1132103e927213c3169e475d3d971"
15 17
@@ -23,5 +25,8 @@ do_install_append() {
23 install -m 0755 scripts/xinput_calibrator_pointercal.sh ${D}${bindir}/xinput_calibrator_once.sh 25 install -m 0755 scripts/xinput_calibrator_pointercal.sh ${D}${bindir}/xinput_calibrator_once.sh
24} 26}
25 27
28SYSTEMD_PACKAGES = "${PN}-systemd"
29SYSTEMD_SERVICE = "${PN}.service"
30
26RDEPENDS_${PN} = "xinput" 31RDEPENDS_${PN} = "xinput"
27RRECOMMENDS_${PN} = "pointercal-xinput" 32RRECOMMENDS_${PN} = "pointercal-xinput"