mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-26 07:37:14 +00:00
xserver-nodm-init: move systemd support from meta-systemd back to meta-oe
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -3,14 +3,16 @@ LICENSE = "GPLv2"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
SECTION = "x11"
|
SECTION = "x11"
|
||||||
|
|
||||||
PR = "r17"
|
PR = "r21"
|
||||||
|
|
||||||
SRC_URI = "file://xserver-nodm \
|
SRC_URI = "file://xserver-nodm \
|
||||||
file://gplv2-license.patch \
|
file://gplv2-license.patch \
|
||||||
|
file://xserver-nodm.service \
|
||||||
|
file://xserver-nodm.conf \
|
||||||
"
|
"
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
inherit allarch update-rc.d
|
inherit allarch 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 ."
|
||||||
@@ -19,6 +21,18 @@ INITSCRIPT_PARAMS_shr = "start 90 5 2 . stop 90 0 1 6 ."
|
|||||||
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 -d ${D}${systemd_unitdir}/system
|
||||||
|
install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
|
||||||
|
install -m 0644 ${WORKDIR}/xserver-nodm.service ${D}${systemd_unitdir}/system
|
||||||
}
|
}
|
||||||
|
|
||||||
RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"
|
RDEPENDS_${PN} = "xserver-common (>= 1.30) xinit"
|
||||||
|
|
||||||
|
RPROVIDES_${PN} += "${PN}-systemd"
|
||||||
|
RREPLACES_${PN} += "${PN}-systemd"
|
||||||
|
RCONFLICTS_${PN} += "${PN}-systemd"
|
||||||
|
SYSTEMD_SERVICE_${PN} = "xserver-nodm.service"
|
||||||
|
|
||||||
|
FILES_${PN} += "${sysconfdir}/default/xserver-nodm"
|
||||||
|
|||||||
-25
@@ -1,25 +0,0 @@
|
|||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
|
||||||
|
|
||||||
PRINC := "${@int(PRINC) + 3}"
|
|
||||||
|
|
||||||
inherit systemd
|
|
||||||
|
|
||||||
SRC_URI += "file://xserver-nodm.service \
|
|
||||||
file://xserver-nodm.conf \
|
|
||||||
"
|
|
||||||
|
|
||||||
do_install_append() {
|
|
||||||
install -d ${D}${sysconfdir}/default
|
|
||||||
install -d ${D}${systemd_unitdir}/system
|
|
||||||
install xserver-nodm.conf ${D}${sysconfdir}/default/xserver-nodm
|
|
||||||
install -m 0644 ${WORKDIR}/xserver-nodm.service ${D}${systemd_unitdir}/system
|
|
||||||
}
|
|
||||||
|
|
||||||
RPROVIDES_${PN} += "${PN}-systemd"
|
|
||||||
RREPLACES_${PN} += "${PN}-systemd"
|
|
||||||
RCONFLICTS_${PN} += "${PN}-systemd"
|
|
||||||
SYSTEMD_SERVICE_${PN} = "xserver-nodm.service"
|
|
||||||
|
|
||||||
FILES_${PN} += "${sysconfdir}/default/xserver-nodm"
|
|
||||||
|
|
||||||
RDEPENDS_${PN} += "xserver-common (>= 1.30) xinit"
|
|
||||||
Reference in New Issue
Block a user