[oe-commits] Javier Martinez Canillas : chkconfig: use ${sysconfdir} instead of / etc for packaging

git at git.openembedded.org git at git.openembedded.org
Mon Aug 6 14:22:47 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 7b77d4372ace6aa2400e3328875b39b4f67476d0
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7b77d4372ace6aa2400e3328875b39b4f67476d0

Author: Javier Martinez Canillas <javier at dowhile0.org>
Date:   Sun Aug  5 21:48:55 2012 +0200

chkconfig: 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.

Signed-off-by: Javier Martinez Canillas <javier at dowhile0.org>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../recipes-extended/chkconfig/chkconfig_1.3.58.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
index 17987a6..9e0e1a0 100644
--- a/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
+++ b/meta/recipes-extended/chkconfig/chkconfig_1.3.58.bb
@@ -12,7 +12,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
 
 DEPENDS = "libnewt popt"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${BPN}-${PV}.tar.bz2"
 
@@ -24,6 +24,6 @@ inherit autotools gettext
 EXTRA_OEMAKE += 'MANDIR="${mandir}" BINDIR="${base_sbindir}" SBINDIR="${sbindir}"'
 
 do_install_append() {
-    mkdir -p ${D}/etc/chkconfig.d
+    mkdir -p ${D}${sysconfdir}/chkconfig.d
     rm -f ${D}${sbindir}/update-alternatives
 }





More information about the Openembedded-commits mailing list