mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +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:
parent
34fe984fc6
commit
42e00e8ffd
|
|
@ -3,34 +3,22 @@ LICENSE = "GPLv2"
|
|||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||
SECTION = "x11"
|
||||
|
||||
PR = "r16"
|
||||
PR = "r17"
|
||||
|
||||
SRC_URI = "file://xserver-nodm \
|
||||
file://xserver-nodm.service \
|
||||
file://xserver-nodm.conf \
|
||||
file://gplv2-license.patch \
|
||||
"
|
||||
S = "${WORKDIR}"
|
||||
|
||||
inherit allarch
|
||||
|
||||
inherit update-rc.d systemd
|
||||
inherit allarch update-rc.d
|
||||
|
||||
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}${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}-systemd += "xserver-common (>= 1.30) xinit"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user