[OE-core] [PATCH 01/30] xinetd: use ${sbindir} instead of /usr/sbin for packaging
Javier Martinez Canillas
javier at dowhile0.org
Sun Aug 5 15:53:48 UTC 2012
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>
---
meta/recipes-extended/xinetd/xinetd_2.3.15.bb | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
index a142143..579c28b 100644
--- a/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
+++ b/meta/recipes-extended/xinetd/xinetd_2.3.15.bb
@@ -38,15 +38,15 @@ do_install() {
# Same here, the Makefile does some really stupid things,
# but since we only want two files why not override
# do_install from autotools and doing it ourselfs?
- install -d "${D}/usr/sbin"
+ 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 -m 755 "${S}/xinetd/xinetd" "${D}/usr/sbin"
- install -m 755 "${S}/xinetd/itox" "${D}/usr/sbin"
+ install -m 755 "${S}/xinetd/xinetd" "${D}${sbindir}"
+ install -m 755 "${S}/xinetd/itox" "${D}${sbindir}"
}
CONFFILES_${PN} = "${sysconfdir}/xinetd.conf"
--
1.7.7.6
More information about the Openembedded-core
mailing list