ntp: make ntp and alternative for ntpd
PATCH 1/1 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 <[email protected]>
--- meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb +7 -1
@@ -125,7 +125,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}\ "
@@ -158,3 +158,9 @@ pkg_postinst_ntpdate() { fi } +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "100" + +ALTERNATIVE_${PN} = "ntpd" +ALTERNATIVE_LINK_NAME[ntpd] = "${sbindir}/ntpd"
Signature · 1 line
2.1.4
Quoted 1 line · Pascal Bach
This way ntp can be used as an alternative to ntpd from busybox
It was upgraded to 4.2.8p8 almost 2 months ago, please rebase and test your changes on recent master branch before sending them!
OE @ ~/meta-openembedded $ git show -1 --pretty=fuller 13db3c6 commit 13db3c65f525a6c87cd51961c3c1816e059478b9
Author: fan.xin <[email protected]> AuthorDate: Tue Jun 7 18:18:26 2016 +0900 Commit: Joe MacDonald <[email protected]> CommitDate: Wed Jun 15 19:52:21 2016 -0400
ntp: Security fixes via Upgrade to 4.2.8p8
Quoted 37 lines
Signed-off-by Pascal Bach <[email protected]>--- meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb +7
-1@@ -125,7 +125,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}\ "@@ -158,3 +158,9 @@ pkg_postinst_ntpdate() { fi } +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "100" + +ALTERNATIVE_${PN} = "ntpd" +ALTERNATIVE_LINK_NAME[ntpd] = "${sbindir}/ntpd"Signature · 7 lines
2.1.4 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]