summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntp
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@siemens.com>2016-08-04 09:54:19 +0200
committerJoe MacDonald <joe_macdonald@mentor.com>2016-08-05 09:13:18 -0400
commitbc8fd52a5c0fa4125e6f8137056988cae9332b6c (patch)
tree895b3e512c6d7fddd50d65062b2cc1697c7fac32 /meta-networking/recipes-support/ntp
parent32a6fd48ab781c15c37551f4e8ed6721ca5cb87b (diff)
downloadmeta-openembedded-bc8fd52a5c0fa4125e6f8137056988cae9332b6c.tar.gz
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@siemens.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/ntp')
-rw-r--r--meta-networking/recipes-support/ntp/ntp_4.2.8p8.bb8
1 files changed, 7 insertions, 1 deletions
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 5f6044138..bca5a0745 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"
126 126
127RSUGGESTS_${PN} = "iana-etc" 127RSUGGESTS_${PN} = "iana-etc"
128 128
129FILES_${PN} = "${sbindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${libdir} \ 129FILES_${PN} = "${sbindir}/ntpd.ntp ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd ${libdir} \
130 ${NTP_USER_HOME} \ 130 ${NTP_USER_HOME} \
131 ${systemd_unitdir}/ntp-units.d/60-ntpd.list ${libexecdir}\ 131 ${systemd_unitdir}/ntp-units.d/60-ntpd.list ${libexecdir}\
132" 132"
@@ -159,3 +159,9 @@ pkg_postinst_ntpdate() {
159 fi 159 fi
160} 160}
161 161
162inherit update-alternatives
163
164ALTERNATIVE_PRIORITY = "100"
165
166ALTERNATIVE_${PN} = "ntpd"
167ALTERNATIVE_LINK_NAME[ntpd] = "${sbindir}/ntpd"