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-oe/recipes-graphics/xserver-nodm-init | |
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-oe/recipes-graphics/xserver-nodm-init')
3 files changed, 2 insertions, 24 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 deleted file mode 100644 index 3c0582a87..000000000 --- a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.conf +++ /dev/null | |||
@@ -1 +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 deleted file mode 100644 index c15a772f1..000000000 --- a/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init-2.0/xserver-nodm.service +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
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-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 62c33c968..544ae7f8c 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,34 +3,22 @@ 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 = "r16" | 6 | PR = "r17" |
7 | 7 | ||
8 | SRC_URI = "file://xserver-nodm \ | 8 | SRC_URI = "file://xserver-nodm \ |
9 | file://xserver-nodm.service \ | ||
10 | file://xserver-nodm.conf \ | ||
11 | file://gplv2-license.patch \ | 9 | file://gplv2-license.patch \ |
12 | " | 10 | " |
13 | S = "${WORKDIR}" | 11 | S = "${WORKDIR}" |
14 | 12 | ||
15 | inherit allarch | 13 | inherit allarch update-rc.d |
16 | |||
17 | inherit update-rc.d systemd | ||
18 | 14 | ||
19 | INITSCRIPT_NAME = "xserver-nodm" | 15 | INITSCRIPT_NAME = "xserver-nodm" |
20 | INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." | 16 | INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." |
21 | INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ." | 17 | INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ." |
22 | 18 | ||
23 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
24 | SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service" | ||
25 | |||
26 | do_install() { | 19 | do_install() { |
27 | install -d ${D}${sysconfdir}/init.d | 20 | install -d ${D}${sysconfdir}/init.d |
28 | install xserver-nodm ${D}${sysconfdir}/init.d | 21 | install xserver-nodm ${D}${sysconfdir}/init.d |
29 | install -d ${D}${sysconfdir}/default | ||
30 | install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm | ||
31 | } | 22 | } |
32 | 23 | ||
33 | FILES_${PN}-systemd += "${sysconfdir}/default/xserver-nodm" | ||
34 | |||
35 | RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" | 24 | RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" |
36 | RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit" | ||