summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-13 14:32:42 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-15 16:22:04 +0200
commit05c8eb4393f77314246b41b0465305f95e979df0 (patch)
tree7ffc7ce20494e49bcd1c32d6cbb5feb4bf202d78 /meta-oe/recipes-graphics
parente965f6efc0942b08f5ab39a623833ebe8f39115e (diff)
downloadmeta-openembedded-05c8eb4393f77314246b41b0465305f95e979df0.tar.gz
xserver-nodm-init: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics')
-rw-r--r--meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.conf1
-rw-r--r--meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.service9
-rw-r--r--meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb18
3 files changed, 26 insertions, 2 deletions
diff --git a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.conf b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.conf
new file mode 100644
index 000000000..3c0582a87
--- /dev/null
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.conf
@@ -0,0 +1 @@
HOME=/home/root
diff --git a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.service b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.service
new file mode 100644
index 000000000..53e61d765
--- /dev/null
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/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]
9Alias=display-manager.service
diff --git a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
index 544ae7f8c..bbed445fe 100644
--- a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
+++ b/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
@@ -3,14 +3,16 @@ LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4SECTION = "x11" 4SECTION = "x11"
5 5
6PR = "r17" 6PR = "r21"
7 7
8SRC_URI = "file://xserver-nodm \ 8SRC_URI = "file://xserver-nodm \
9 file://gplv2-license.patch \ 9 file://gplv2-license.patch \
10 file://xserver-nodm.service \
11 file://xserver-nodm.conf \
10" 12"
11S = "${WORKDIR}" 13S = "${WORKDIR}"
12 14
13inherit allarch update-rc.d 15inherit allarch update-rc.d systemd
14 16
15INITSCRIPT_NAME = "xserver-nodm" 17INITSCRIPT_NAME = "xserver-nodm"
16INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." 18INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ."
@@ -19,6 +21,18 @@ INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ."
19do_install() { 21do_install() {
20 install -d ${D}${sysconfdir}/init.d 22 install -d ${D}${sysconfdir}/init.d
21 install xserver-nodm ${D}${sysconfdir}/init.d 23 install xserver-nodm ${D}${sysconfdir}/init.d
24
25 install -d ${D}${sysconfdir}/default
26 install -d ${D}${systemd_unitdir}/system
27 install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
28 install -m 0644 ${WORKDIR}/xserver-nodm.service ${D}${systemd_unitdir}/system
22} 29}
23 30
24RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" 31RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"
32
33RPROVIDES_${PN} += "${PN}-systemd"
34RREPLACES_${PN} += "${PN}-systemd"
35RCONFLICTS_${PN} += "${PN}-systemd"
36SYSTEMD_SERVICE_${PN} = "xserver-nodm.service"
37
38FILES_${PN} += "${sysconfdir}/default/xserver-nodm"