mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
xserver-nodm-init: use ${sysconfdir} instead of /etc for packaging
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. (From OE-Core rev: aada9260af9dcac42c21e189fdf6698e509c26a4) Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8972009a50
commit
8353aa1ad9
@@ -2,7 +2,7 @@ DESCRIPTION = "Simple Xserver Init Script (no dm)"
|
|||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
||||||
SECTION = "x11"
|
SECTION = "x11"
|
||||||
PR = "r29"
|
PR = "r30"
|
||||||
RDEPENDS_${PN} = "sudo"
|
RDEPENDS_${PN} = "sudo"
|
||||||
|
|
||||||
SRC_URI = "file://xserver-nodm \
|
SRC_URI = "file://xserver-nodm \
|
||||||
@@ -14,12 +14,12 @@ S = "${WORKDIR}"
|
|||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}/etc
|
install -d ${D}${sysconfdir}
|
||||||
install -d ${D}/etc/init.d
|
install -d ${D}${sysconfdir}/init.d
|
||||||
install xserver-nodm ${D}/etc/init.d
|
install xserver-nodm ${D}${sysconfdir}/init.d
|
||||||
if [ "${ROOTLESS_X}" = "1" ] ; then
|
if [ "${ROOTLESS_X}" = "1" ] ; then
|
||||||
install -d ${D}/etc/X11
|
install -d ${D}${sysconfdir}/X11
|
||||||
install Xusername ${D}/etc/X11
|
install Xusername ${D}${sysconfdir}/X11
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user