diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-11-30 00:27:16 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-29 16:14:38 +0200 |
commit | be2ae063d1586301713a0dc466bfe44e2f598cb1 (patch) | |
tree | 96ba491670be059d2a23eb73b0d2465c2128c798 /meta-oe | |
parent | 2bbed5ec032ec90957028b2b1b5c8c7871eb1bc3 (diff) | |
download | meta-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.service | 11 | ||||
-rw-r--r-- | meta-oe/recipes-graphics/xinput-calibrator/xinput-calibrator_0.7.5.bb | 11 |
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] | ||
2 | Description=Loads xinput calibration data | ||
3 | ConditionPathExists=/etc/pointercal.xinput | ||
4 | Requires=xserver-nodm.service | ||
5 | After=xserver-nodm.service | ||
6 | |||
7 | [Service] | ||
8 | ExecStart=/usr/bin/xinput_calibrator_once.sh | ||
9 | |||
10 | [Install] | ||
11 | WantedBy=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" | |||
4 | LIC_FILES_CHKSUM = "file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc" | 4 | LIC_FILES_CHKSUM = "file://src/calibrator.cpp;endline=22;md5=998e238a7638a7446eaeb02398f691fc" |
5 | DEPENDS = "virtual/libx11 libxi" | 5 | DEPENDS = "virtual/libx11 libxi" |
6 | 6 | ||
7 | PR = "r3" | 7 | PR = "r4" |
8 | 8 | ||
9 | inherit autotools | 9 | inherit autotools systemd |
10 | 10 | ||
11 | SRC_URI = "http://github.com/downloads/tias/xinput_calibrator/xinput_calibrator-${PV}.tar.gz \ | 11 | SRC_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 | " | ||
13 | SRC_URI[md5sum] = "20da0a2055a5a75962add8c6b44f60fa" | 15 | SRC_URI[md5sum] = "20da0a2055a5a75962add8c6b44f60fa" |
14 | SRC_URI[sha256sum] = "baa4ddca49ec94c27ba4c715bfa26692fec1132103e927213c3169e475d3d971" | 16 | SRC_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 | ||
28 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
29 | SYSTEMD_SERVICE = "${PN}.service" | ||
30 | |||
26 | RDEPENDS_${PN} = "xinput" | 31 | RDEPENDS_${PN} = "xinput" |
27 | RRECOMMENDS_${PN} = "pointercal-xinput" | 32 | RRECOMMENDS_${PN} = "pointercal-xinput" |