[PATCH v2 23/28] lsbinitscripts: use ${sysconfdir} instead of /etc for packaging

Javier Martinez Canillas
2012-08-05T20:02:10Z

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>
---
meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
index 8071916..eac4ebb 100644
--- a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
+++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "SysV init scripts which only is used in an LSB image"
SECTION = "base"
LICENSE = "GPLv2"
DEPENDS = "popt glib-2.0"
-PR = "r2"
+PR = "r3"

LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"

@@ -22,6 +22,6 @@ ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
do_configure[noexec] = "1"

do_install(){
- install -d ${D}/etc/init.d/
- install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
+ install -d ${D}${sysconfdir}/init.d/
+ install -m 0755 ${S}/rc.d/init.d/functions ${D}${sysconfdir}/init.d/functions
}
--
1.7.7.6