summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/xserver-nodm-init/xserver-nodm-init_2.0.bb
blob: 2132eabb357a5875544f702d25f327c1c4acc68f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DESCRIPTION = "Simple Xserver Init Script (no dm)"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
SECTION = "x11"

PR = "r12"

SRC_URI = "file://xserver-nodm \
           file://xserver-nodm.service \
           file://gplv2-license.patch \
"
S = ${WORKDIR}

inherit allarch

inherit update-rc.d systemd

INITSCRIPT_NAME = "xserver-nodm"
INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ."
INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ."

SYSTEMD_PACKAGES = "${PN}-systemd"
SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service"

do_install() {
	install -d ${D}${sysconfdir}/init.d
	install xserver-nodm ${D}${sysconfdir}/init.d

	install -d ${D}${base_libdir}/systemd/system
	install -m 0644 xserver-nodm.service ${D}${base_libdir}/systemd/system/
}

PACKAGES += "${PN}-systemd"

RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"

FILES_${PN}-systemd += "${base_libdir}/systemd/system/"
RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit"