summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2014-04-21 01:53:28 -0400
committerJoe MacDonald <joe@deserted.net>2014-04-24 21:07:46 -0400
commitb96ae8191dbd23b3105e324e5f4f3522664811ca (patch)
tree599cfdb6ddfb98d52bb905b19fa9803f54081d30 /meta-networking
parent365125e4da652c324e61b549c4da7adf6f935664 (diff)
downloadmeta-openembedded-b96ae8191dbd23b3105e324e5f4f3522664811ca.tar.gz
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 <rahat.mahbub@windriver.com> Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-support/ntp/ntp.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
index 9861fd88b..49f9901e1 100644
--- a/meta-networking/recipes-support/ntp/ntp.inc
+++ b/meta-networking/recipes-support/ntp/ntp.inc
@@ -58,6 +58,10 @@ do_install_append() {
58 sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync 58 sed -i 's!/etc/!${sysconfdir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync
59 sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync 59 sed -i 's!/var/!${localstatedir}/!g' ${D}${sysconfdir}/init.d/ntpd ${D}${bindir}/ntpdate-sync
60 sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${bindir}/ntpdate-sync 60 sed -i 's!^PATH=.*!PATH=${base_sbindir}:${base_bindir}:${sbindir}:${bindir}!' ${D}${bindir}/ntpdate-sync
61 sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,' ${D}${sbindir}/ntptrace
62 sed -i '/use/i use warnings;' ${D}${sbindir}/ntptrace
63 sed -i '1s,#!.*perl -w,#! ${bindir}/env perl,' ${D}${sbindir}/ntp-wait
64 sed -i '/use/i use warnings;' ${D}${sbindir}/ntp-wait
61 65
62 install -d ${D}/${sysconfdir}/default 66 install -d ${D}/${sysconfdir}/default
63 install -m 644 ${WORKDIR}/ntpdate.default ${D}${sysconfdir}/default/ntpdate 67 install -m 644 ${WORKDIR}/ntpdate.default ${D}${sysconfdir}/default/ntpdate