summaryrefslogtreecommitdiffstats
path: root/meta-systemd
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2012-07-11 14:32:14 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2012-07-16 09:39:07 +0200
commit42e00e8ffd3088050716a5fe1c7da2cc6cf9787c (patch)
tree568b7bdb31a4e965397b1b51cbd9b937b03e637b /meta-systemd
parent34fe984fc64a9f51d5b2d563eedac6f5163b250a (diff)
downloadmeta-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')
-rw-r--r--meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.conf1
-rw-r--r--meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init/xserver-nodm.service9
-rw-r--r--meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bbappend21
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]
2Description=Xserver startup with a display manager
3
4[Service]
5EnvironmentFile=/etc/default/xserver-nodm
6ExecStart=/usr/bin/xinit /etc/X11/Xsession -- /etc/X11/Xserver
7
8[Install]
9WantedBy=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 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3PRINC := "${@int(PRINC) + 1}"
4
5inherit systemd
6
7SRC_URI += "file://xserver-nodm.service \
8 file://xserver-nodm.conf \
9"
10
11do_install_append() {
12 install -d ${D}${sysconfdir}/default
13 install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
14}
15
16SYSTEMD_PACKAGES = "${PN}-systemd"
17SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service"
18
19FILES_${PN}-systemd += "${sysconfdir}/default/xserver-nodm"
20
21RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit"