summaryrefslogtreecommitdiffstats
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 15:18:47 +0100
commit2bb6742c94ef76c3b779ebc5344e47bc3f28a13e (patch)
treedc9d76aa8cdbda64d1dd145dbaa4cffbfa45ebb4
parent9d27075bd8e547126fcbad8a2389aa0c130f7051 (diff)
downloadpoky-2bb6742c94ef76c3b779ebc5344e47bc3f28a13e.tar.gz
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. (From OE-Core rev: 84fd332ab2f2c512109fc0a080d03533883fa235) 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 @@
1DESCRIPTION = "auto-setup environment for lsb test" 1DESCRIPTION = "auto-setup environment for lsb test"
2SECTION = "console/utils" 2SECTION = "console/utils"
3LICENSE = "GPLv2" 3LICENSE = "GPLv2"
4PR = "r3" 4PR = "r4"
5 5
6LIC_FILES_CHKSUM = "file://LSB_Setup.sh;beginline=3;endline=16;md5=97451c7c0786ce5bbe9ac58042945583" 6LIC_FILES_CHKSUM = "file://LSB_Setup.sh;beginline=3;endline=16;md5=97451c7c0786ce5bbe9ac58042945583"
7 7
@@ -11,9 +11,9 @@ S = "${WORKDIR}"
11 11
12do_install() { 12do_install() {
13 # Only install file if it has a contents 13 # Only install file if it has a contents
14 install -d ${D}/usr/bin 14 install -d ${D}${bindir}
15 install -d ${D}/${sysconfdir} 15 install -d ${D}/${sysconfdir}
16 install -m 0755 ${S}/LSB_Setup.sh ${D}/usr/bin 16 install -m 0755 ${S}/LSB_Setup.sh ${D}${bindir}
17 install -d ${D}/${libdir}/lsb 17 install -d ${D}/${libdir}/lsb
18 ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd 18 ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/install_initd
19 ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd 19 ln -sf ${base_sbindir}/chkconfig ${D}/${libdir}/lsb/remove_initd