summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntp
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2013-09-03 08:58:30 +0200
committerJoe MacDonald <joe@deserted.net>2013-09-05 08:52:11 -0400
commitc98e6d3ffd5c433088566a907c6f56daa30029fe (patch)
tree2906b3a409bf9b1cf04b1b62ae3c5920c244329a /meta-networking/recipes-support/ntp
parent3d8520a0b4115a7b4200892447fa94296d9256af (diff)
downloadmeta-openembedded-c98e6d3ffd5c433088566a907c6f56daa30029fe.tar.gz
ntp: enable systemd-timedated control for ntp.service
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'meta-networking/recipes-support/ntp')
-rw-r--r--meta-networking/recipes-support/ntp/ntp.inc5
-rw-r--r--meta-networking/recipes-support/ntp/ntp/ntpd.list1
2 files changed, 6 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
index 6e8b452cc..65d90decb 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
22 file://ntpd.service \ 22 file://ntpd.service \
23 file://sntp.service \ 23 file://sntp.service \
24 file://sntp \ 24 file://sntp \
25 file://ntpd.list \
25" 26"
26 27
27inherit autotools update-rc.d systemd 28inherit autotools update-rc.d systemd
@@ -65,6 +66,10 @@ do_install_append() {
65 install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/ 66 install -m 0644 ${WORKDIR}/ntpdate.service ${D}${systemd_unitdir}/system/
66 install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/ 67 install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
67 install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/ 68 install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/
69
70 # see http://www.freedesktop.org/wiki/Software/systemd/timedated/
71 install -d ${D}${libdir}/systemd/ntp-units.d
72 install -m 0644 ${WORKDIR}/ntpd.list ${D}${libdir}/systemd/ntp-units.d/60-ntpd.list
68} 73}
69 74
70PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils" 75PACKAGES += "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 000000000..d1fe6b7e2
--- /dev/null
+++ b/meta-networking/recipes-support/ntp/ntp/ntpd.list
@@ -0,0 +1 @@
ntpd.service