[oe-commits] [meta-openembedded] 14/15: ntp: make ntp and alternative for ntpd
git at git.openembedded.org
git at git.openembedded.org
Sun Aug 7 19:38:02 UTC 2016
joe_macdonald pushed a commit to branch master
in repository meta-openembedded.
commit bc8fd52a5c0fa4125e6f8137056988cae9332b6c
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>
Signed-off-by: Joe MacDonald <joe_macdonald at mentor.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