summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2012-08-05 21:48:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-06 14:18:23 +0100
commit84fd332ab2f2c512109fc0a080d03533883fa235 (patch)
tree4f9b7b8ad843fe3c6ed2567f5209ef759446e832
parent72fd0993d8643d7ca52d954d65395585fdf34b03 (diff)
downloadopenembedded-core-84fd332ab2f2c512109fc0a080d03533883fa235.tar.gz
openembedded-core-84fd332ab2f2c512109fc0a080d03533883fa235.tar.bz2
openembedded-core-84fd332ab2f2c512109fc0a080d03533883fa235.zip
lsbsetup: use ${bindir} instead of /usr/bin for packaging
It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/lsb/lsbsetup_1.0.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-extended/lsb/lsbsetup_1.0.bb b/meta/recipes-extended/lsb/lsbsetup_1.0.bb
index 9172ee3b05..2792d51f23 100644
--- a/meta/recipes-extended/lsb/lsbsetup_1.0.bb
+++ b/meta/recipes-extended/lsb/lsbsetup_1.0.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "auto-setup environment for lsb test"
SECTION = "console/utils"
LICENSE = "GPLv2"
-PR = "r3"
+PR = "r4"
LIC_FILES_CHKSUM = "file://LSB_Setup.sh;beginline=3;endline=16;md5=97451c7c0786ce5bbe9ac58042945583"
@@ -11,9 +11,9 @@ S = "${WORKDIR}"
do_install() {
# Only install file if it has a contents
- install -d ${D}/usr/bin
+ install -d ${D}${bindir}
install -d ${D}/${sysconfdir}
- install -m 0755 ${S}/LSB_Setup.sh ${D}/usr/bin
+ install -m 0755 ${S}/LSB_Setup.sh ${D}${bindir}
install -d ${D}/${libdir}/lsb
ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd
ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd