diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-07-11 14:32:14 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-16 09:39:07 +0200 |
commit | 42e00e8ffd3088050716a5fe1c7da2cc6cf9787c (patch) | |
tree | 568b7bdb31a4e965397b1b51cbd9b937b03e637b /meta-systemd | |
parent | 34fe984fc64a9f51d5b2d563eedac6f5163b250a (diff) | |
download | meta-openembedded-42e00e8ffd3088050716a5fe1c7da2cc6cf9787c.tar.gz |
xserver-nodm-init: move systemd support to meta-systemd
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-systemd')
3 files changed, 31 insertions, 0 deletions
diff --git a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.conf b/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.conf new file mode 100644 index 000000000..3c0582a87 --- /dev/null +++ b/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.conf | |||
@@ -0,0 +1 @@ | |||
HOME=/home/root | |||
diff --git a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.service b/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.service new file mode 100644 index 000000000..c15a772f1 --- /dev/null +++ b/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.service | |||
@@ -0,0 +1,9 @@ | |||
1 | [Unit] | ||
2 | Description=Xserver startup with a display manager | ||
3 | |||
4 | [Service] | ||
5 | EnvironmentFile=/etc/default/xserver-nodm | ||
6 | ExecStart=/usr/bin/xinit /etc/X11/Xsession -- /etc/X11/Xserver | ||
7 | |||
8 | [Install] | ||
9 | WantedBy=multi-user.target | ||
diff --git a/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bbappend b/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bbappend new file mode 100644 index 000000000..55388050c --- /dev/null +++ b/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bbappend | |||
@@ -0,0 +1,21 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
2 | |||
3 | PRINC := "${@int(PRINC) + 1}" | ||
4 | |||
5 | inherit systemd | ||
6 | |||
7 | SRC_URI += "file://xserver-nodm.service \ | ||
8 | file://xserver-nodm.conf \ | ||
9 | " | ||
10 | |||
11 | do_install_append() { | ||
12 | install -d ${D}${sysconfdir}/default | ||
13 | install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm | ||
14 | } | ||
15 | |||
16 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
17 | SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service" | ||
18 | |||
19 | FILES_${PN}-systemd += "${sysconfdir}/default/xserver-nodm" | ||
20 | |||
21 | RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit" | ||