diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-26 19:32:33 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-01-09 10:31:00 +0100 |
commit | 0265a98f7140cb4c43da7e19e25fef3c205c3c8f (patch) | |
tree | 03edb7176f575865d6692471769d819e5cfd1c9b /meta-oe/recipes-graphics/xserver-nodm-init | |
parent | 2292ac565c220f2112a07abd563c6a9ee34dc662 (diff) | |
download | meta-openembedded-0265a98f7140cb4c43da7e19e25fef3c205c3c8f.tar.gz |
xserver-nodm-init: move systemd service to xserver-nodm-init-systemd
Move systemd service to xserver-nodm-init-systemd to be consistent
with other packages.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta-oe/recipes-graphics/xserver-nodm-init')
-rw-r--r-- | meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb | 30 |
1 files changed, 14 insertions, 16 deletions
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 496b3428b8..2132eabb35 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,7 +3,7 @@ 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 = "r11" | 6 | PR = "r12" |
7 | 7 | ||
8 | SRC_URI = "file://xserver-nodm \ | 8 | SRC_URI = "file://xserver-nodm \ |
9 | file://xserver-nodm.service \ | 9 | file://xserver-nodm.service \ |
@@ -13,6 +13,15 @@ S = ${WORKDIR} | |||
13 | 13 | ||
14 | inherit allarch | 14 | inherit allarch |
15 | 15 | ||
16 | inherit update-rc.d systemd | ||
17 | |||
18 | INITSCRIPT_NAME = "xserver-nodm" | ||
19 | INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." | ||
20 | INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ." | ||
21 | |||
22 | SYSTEMD_PACKAGES = "${PN}-systemd" | ||
23 | SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service" | ||
24 | |||
16 | do_install() { | 25 | do_install() { |
17 | install -d ${D}${sysconfdir}/init.d | 26 | install -d ${D}${sysconfdir}/init.d |
18 | install xserver-nodm ${D}${sysconfdir}/init.d | 27 | install xserver-nodm ${D}${sysconfdir}/init.d |
@@ -21,20 +30,9 @@ do_install() { | |||
21 | install -m 0644 xserver-nodm.service ${D}${base_libdir}/systemd/system/ | 30 | install -m 0644 xserver-nodm.service ${D}${base_libdir}/systemd/system/ |
22 | } | 31 | } |
23 | 32 | ||
24 | RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" | 33 | PACKAGES += "${PN}-systemd" |
25 | FILES_${PN} += "${base_libdir}/systemd/system/" | ||
26 | |||
27 | inherit update-rc.d | ||
28 | 34 | ||
29 | INITSCRIPT_NAME = "xserver-nodm" | 35 | RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit" |
30 | INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ." | ||
31 | INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ." | ||
32 | |||
33 | pkg_postinst_${PN}_append () { | ||
34 | if [ -e ${base_bindir}/systemctl ] ; then | ||
35 | # can't do this offline | ||
36 | [ "x$D" != "x" ] && exit 1 | ||
37 | 36 | ||
38 | systemctl enable xserver-nodm.service | 37 | FILES_${PN}-systemd += "${base_libdir}/systemd/system/" |
39 | fi | 38 | RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit" |
40 | } | ||