From patchwork Sun Aug 5 15:54:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [20/30] x11-common: use ${sysconfdir} instead of /etc for packaging Date: Sun, 05 Aug 2012 15:54:07 -0000 From: Javier Martinez Canillas X-Patchwork-Id: 33879 Message-Id: <1344182057-15981-21-git-send-email-javier@dowhile0.org> To: Richard Purdie Cc: openembedded-core@lists.openembedded.org It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas --- meta/recipes-graphics/x11-common/x11-common_0.1.bb | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/recipes-graphics/x11-common/x11-common_0.1.bb b/meta/recipes-graphics/x11-common/x11-common_0.1.bb index ddb3a1d..9567668 100644 --- a/meta/recipes-graphics/x11-common/x11-common_0.1.bb +++ b/meta/recipes-graphics/x11-common/x11-common_0.1.bb @@ -12,10 +12,10 @@ S = "${WORKDIR}" inherit allarch do_install() { - cp -R ${S}/etc ${D}/etc - chmod -R 755 ${D}/etc - find ${D}/etc -type d -name .svn -prune -exec rm -rf {} \; - find ${D}/etc -type f -name \*~ -exec rm -rf {} \; + cp -R ${S}/etc ${D}${sysconfdir} + chmod -R 755 ${D}${sysconfdir} + find ${D}${sysconfdir} -type d -name .svn -prune -exec rm -rf {} \; + find ${D}${sysconfdir} -type f -name \*~ -exec rm -rf {} \; } RDEPENDS_${PN} = "dbus-x11 xmodmap xdpyinfo xtscal xinit formfactor"