mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-09 04:11:16 +00:00
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>
This commit is contained in:
committed by
Koen Kooi
parent
34fe984fc6
commit
42e00e8ffd
@@ -3,34 +3,22 @@ LICENSE = "GPLv2"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
SECTION = "x11"
|
SECTION = "x11"
|
||||||
|
|
||||||
PR = "r16"
|
PR = "r17"
|
||||||
|
|
||||||
SRC_URI = "file://xserver-nodm \
|
SRC_URI = "file://xserver-nodm \
|
||||||
file://xserver-nodm.service \
|
|
||||||
file://xserver-nodm.conf \
|
|
||||||
file://gplv2-license.patch \
|
file://gplv2-license.patch \
|
||||||
"
|
"
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
inherit allarch
|
inherit allarch update-rc.d
|
||||||
|
|
||||||
inherit update-rc.d systemd
|
|
||||||
|
|
||||||
INITSCRIPT_NAME = "xserver-nodm"
|
INITSCRIPT_NAME = "xserver-nodm"
|
||||||
INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ."
|
INITSCRIPT_PARAMS = "start 01 5 2 . stop 01 0 1 6 ."
|
||||||
INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 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() {
|
do_install() {
|
||||||
install -d ${D}${sysconfdir}/init.d
|
install -d ${D}${sysconfdir}/init.d
|
||||||
install xserver-nodm ${D}${sysconfdir}/init.d
|
install xserver-nodm ${D}${sysconfdir}/init.d
|
||||||
install -d ${D}${sysconfdir}/default
|
|
||||||
install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN}-systemd += "${sysconfdir}/default/xserver-nodm"
|
|
||||||
|
|
||||||
RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"
|
RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"
|
||||||
RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit"
|
|
||||||
|
|||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
|
PRINC := "${@int(PRINC) + 1}"
|
||||||
|
|
||||||
|
inherit systemd
|
||||||
|
|
||||||
|
SRC_URI += "file://xserver-nodm.service \
|
||||||
|
file://xserver-nodm.conf \
|
||||||
|
"
|
||||||
|
|
||||||
|
do_install_append() {
|
||||||
|
install -d ${D}${sysconfdir}/default
|
||||||
|
install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
|
||||||
|
}
|
||||||
|
|
||||||
|
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||||
|
SYSTEMD_SERVICE_${PN}-systemd = "xserver-nodm.service"
|
||||||
|
|
||||||
|
FILES_${PN}-systemd += "${sysconfdir}/default/xserver-nodm"
|
||||||
|
|
||||||
|
RDEPENDS_${PN}-systemd += "xserver-common (>= 1.30) xinit"
|
||||||
Reference in New Issue
Block a user