summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2012-08-05 21:48:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-06 15:18:49 +0100
commit8353aa1ad974b6ca2f5840af4b0b5a36728db7db (patch)
treef452383391c7059a790755c6d5d9874572f17ae6 /meta
parent8972009a502f468eb990b140eb2a863b20613ab3 (diff)
downloadpoky-8353aa1ad974b6ca2f5840af4b0b5a36728db7db.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-graphics/x11-common/xserver-nodm-init.bb12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init.bb b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
index 8fca05613c..eab76c597b 100644
--- a/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
+++ b/meta/recipes-graphics/x11-common/xserver-nodm-init.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "Simple Xserver Init Script (no dm)"
2LICENSE = "GPLv2" 2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4SECTION = "x11" 4SECTION = "x11"
5PR = "r29" 5PR = "r30"
6RDEPENDS_${PN} = "sudo" 6RDEPENDS_${PN} = "sudo"
7 7
8SRC_URI = "file://xserver-nodm \ 8SRC_URI = "file://xserver-nodm \
@@ -14,12 +14,12 @@ S = "${WORKDIR}"
14PACKAGE_ARCH = "${MACHINE_ARCH}" 14PACKAGE_ARCH = "${MACHINE_ARCH}"
15 15
16do_install() { 16do_install() {
17 install -d ${D}/etc 17 install -d ${D}${sysconfdir}
18 install -d ${D}/etc/init.d 18 install -d ${D}${sysconfdir}/init.d
19 install xserver-nodm ${D}/etc/init.d 19 install xserver-nodm ${D}${sysconfdir}/init.d
20 if [ "${ROOTLESS_X}" = "1" ] ; then 20 if [ "${ROOTLESS_X}" = "1" ] ; then
21 install -d ${D}/etc/X11 21 install -d ${D}${sysconfdir}/X11
22 install Xusername ${D}/etc/X11 22 install Xusername ${D}${sysconfdir}/X11
23 fi 23 fi
24} 24}
25 25