diff options
Diffstat (limited to 'meta-oe/recipes-graphics')
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] | ||
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 | Alias=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" | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
4 | SECTION = "x11" | 4 | SECTION = "x11" |
5 | 5 | ||
6 | PR = "r17" | 6 | PR = "r21" |
7 | 7 | ||
8 | SRC_URI = "file://xserver-nodm \ | 8 | SRC_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 | " |
11 | S = "${WORKDIR}" | 13 | S = "${WORKDIR}" |
12 | 14 | ||
13 | inherit allarch update-rc.d | 15 | inherit allarch update-rc.d systemd |
14 | 16 | ||
15 | INITSCRIPT_NAME = "xserver-nodm" | 17 | INITSCRIPT_NAME = "xserver-nodm" |
16 | INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." | 18 | INITSCRIPT_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 ." | |||
19 | do_install() { | 21 | do_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 | ||
24 | RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" | 31 | RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" |
32 | |||
33 | RPROVIDES_${PN} += "${PN}-systemd" | ||
34 | RREPLACES_${PN} += "${PN}-systemd" | ||
35 | RCONFLICTS_${PN} += "${PN}-systemd" | ||
36 | SYSTEMD_SERVICE_${PN} = "xserver-nodm.service" | ||
37 | |||
38 | FILES_${PN} += "${sysconfdir}/default/xserver-nodm" | ||