From b96ae8191dbd23b3105e324e5f4f3522664811ca Mon Sep 17 00:00:00 2001 From: Wenzong Fan Date: Mon, 21 Apr 2014 01:53:28 -0400 Subject: ntp: fix hardcode to /usr/bin/perl This patch properly uses the path variables and fixes ntptrace and ntp-wait, just in case perl is not installed with the hardcode path. Signed-off-by: Rahat Mahbub Signed-off-by: Wenzong Fan Signed-off-by: Joe MacDonald --- meta-networking/recipes-support/ntp/ntp.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc index 9861fd88bd..49f9901e1e 100644 --- a/meta-networking/recipes-support/ntp/ntp.inc +++ b/meta-networking/recipes-support/ntp/ntp.inc @@ -58,6 +58,10 @@ do_install_append() { sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${bindir}/ntpdate-sync + sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,' ${D}${sbindir}/ntptrace + sed -i '/use/i use warnings;' ${D}${sbindir}/ntptrace + sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,' ${D}${sbindir}/ntp-wait + sed -i '/use/i use warnings;' ${D}${sbindir}/ntp-wait install -d ${D}/${sysconfdir}/default install -m 644 ${WORKDIR}/ntpdate.default ${D}${sysconfdir}/default/ntpdate -- cgit v1.2.3-54-g00ecf