[oe] [meta-networking][PATCH] ntp: make ntp and alternative for ntpd

Martin Jansa martin.jansa at gmail.com
Fri Aug 5 10:26:07 UTC 2016


On Thu, Aug 04, 2016 at 09:54:19AM +0200, Pascal Bach wrote:
> 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 <fan.xin at jp.fujitsu.com>
AuthorDate: Tue Jun 7 18:18:26 2016 +0900
Commit:     Joe MacDonald <joe_macdonald at mentor.com>
CommitDate: Wed Jun 15 19:52:21 2016 -0400

    ntp: Security fixes via Upgrade to 4.2.8p8

> 
> Signed-off-by: Pascal Bach <pascal.bach at siemens.com>
> ---
>  meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb
> index ff4ba64..63e7d60 100644
> --- a/meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb
> +++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb
> @@ -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"
> -- 
> 2.1.4
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20160805/912d196a/attachment-0002.sig>


More information about the Openembedded-devel mailing list