[oe-commits] [meta-openembedded] 39/39: ntp: make ntp and alternative for ntpd

git at git.openembedded.org git at git.openembedded.org
Fri Aug 5 10:26:38 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 313573ed6ead50e8658068e90d91c17ca47b9611
Author: Pascal Bach <pascal.bach at siemens.com>
AuthorDate: Thu Aug 4 09:54:19 2016 +0200

    ntp: make ntp and alternative for ntpd
    
    This way ntp can be used as an alternative to ntpd from busybox
    
    Signed-off-by: Pascal Bach <pascal.bach at siemens.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-networking/recipes-support/ntp/ntp_4.2.8p8.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p8.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p8.bb
index 5f60441..bca5a07 100644
--- a/meta-networking/recipes-support/ntp/ntp_4.2.8p8.bb
+++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p8.bb
@@ -126,7 +126,7 @@ RCONFLICTS_ntpdate += "ntpdate-systemd"
 
 RSUGGESTS_${PN} = "iana-etc"
 
-FILES_${PN} = "${sbindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${libdir} \
+FILES_${PN} = "${sbindir}/ntpd.ntp ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${libdir} \
     ${NTP_USER_HOME} \
     ${systemd_unitdir}/ntp-units.d/60-ntpd.list ${libexecdir}\
 "
@@ -159,3 +159,9 @@ pkg_postinst_ntpdate() {
     fi
 }
 
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "100"
+
+ALTERNATIVE_${PN} = "ntpd"
+ALTERNATIVE_LINK_NAME[ntpd] = "${sbindir}/ntpd"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list