From patchwork Sun Aug 5 15:54:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [25/30] xinetd: use ${sysconfdir} instead of /etc for packaging Date: Sun, 05 Aug 2012 15:54:12 -0000 From: Javier Martinez Canillas X-Patchwork-Id: 33889 Message-Id: <1344182057-15981-26-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-extended/xinetd/xinetd_2.3.15.bb | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb index 579c28b..2e16822 100644 --- a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb +++ b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb @@ -39,12 +39,12 @@ do_install() { # but since we only want two files why not override # do_install from autotools and doing it ourselfs? install -d "${D}${sbindir}" - install -d "${D}/etc/init.d" - install -d "${D}/etc/xinetd.d" - install -d "${D}/etc/default" - install -m 644 "${WORKDIR}/xinetd.conf" "${D}/etc" - install -m 755 "${WORKDIR}/xinetd.init" "${D}/etc/init.d/xinetd" - install -m 644 "${WORKDIR}/xinetd.default" "${D}/etc/default/xinetd" + install -d "${D}${sysconfdir}/init.d" + install -d "${D}${sysconfdir}/xinetd.d" + install -d "${D}${sysconfdir}/default" + install -m 644 "${WORKDIR}/xinetd.conf" "${D}${sysconfdir}" + install -m 755 "${WORKDIR}/xinetd.init" "${D}${sysconfdir}/init.d/xinetd" + install -m 644 "${WORKDIR}/xinetd.default" "${D}${sysconfdir}/default/xinetd" install -m 755 "${S}/xinetd/xinetd" "${D}${sbindir}" install -m 755 "${S}/xinetd/itox" "${D}${sbindir}" }