diff options
author | Javier Martinez Canillas <javier@dowhile0.org> | 2012-08-05 21:48:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-06 15:18:49 +0100 |
commit | 8353aa1ad974b6ca2f5840af4b0b5a36728db7db (patch) | |
tree | f452383391c7059a790755c6d5d9874572f17ae6 /meta | |
parent | 8972009a502f468eb990b140eb2a863b20613ab3 (diff) | |
download | poky-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.bb | 12 |
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)" | |||
2 | LICENSE = "GPLv2" | 2 | LICENSE = "GPLv2" |
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
4 | SECTION = "x11" | 4 | SECTION = "x11" |
5 | PR = "r29" | 5 | PR = "r30" |
6 | RDEPENDS_${PN} = "sudo" | 6 | RDEPENDS_${PN} = "sudo" |
7 | 7 | ||
8 | SRC_URI = "file://xserver-nodm \ | 8 | SRC_URI = "file://xserver-nodm \ |
@@ -14,12 +14,12 @@ S = "${WORKDIR}" | |||
14 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
15 | 15 | ||
16 | do_install() { | 16 | do_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 | ||