[oe] [meta-networking] ntp: enable systemd-timedated control for ntp.service

Joe MacDonald joe at deserted.net
Thu Sep 5 13:14:20 UTC 2013


Merged, thanks.
-J.

[[oe] [meta-networking] ntp: enable systemd-timedated control for ntp.service] On 13.09.03 (Tue 08:58) Andreas Müller wrote:

> Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
> ---
>  meta-networking/recipes-support/ntp/ntp.inc       |    5 +++++
>  meta-networking/recipes-support/ntp/ntp/ntpd.list |    1 +
>  2 files changed, 6 insertions(+), 0 deletions(-)
>  create mode 100644 meta-networking/recipes-support/ntp/ntp/ntpd.list
> 
> diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
> index 79e7401..ebfa222 100644
> --- a/meta-networking/recipes-support/ntp/ntp.inc
> +++ b/meta-networking/recipes-support/ntp/ntp.inc
> @@ -22,6 +22,7 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g
>             file://ntpd.service \
>             file://sntp.service \
>             file://sntp \
> +           file://ntpd.list \
>  "
>  
>  inherit autotools update-rc.d systemd
> @@ -63,6 +64,10 @@ do_install_append() {
>      install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
>      install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
>      install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
> +
> +    # see http://www.freedesktop.org/wiki/Software/systemd/timedated/
> +    install -d ${D}${libdir}/systemd/ntp-units.d
> +    install -m 0644 ${WORKDIR}/ntpd.list ${D}${libdir}/systemd/ntp-units.d/60-ntpd.list
>  }
>  
>  PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
> diff --git a/meta-networking/recipes-support/ntp/ntp/ntpd.list b/meta-networking/recipes-support/ntp/ntp/ntpd.list
> new file mode 100644
> index 0000000..d1fe6b7
> --- /dev/null
> +++ b/meta-networking/recipes-support/ntp/ntp/ntpd.list
> @@ -0,0 +1 @@
> +ntpd.service
-- 
-Joe MacDonald.
:wq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20130905/fa2a139a/attachment-0002.sig>


More information about the Openembedded-devel mailing list