Skip to contentSkip to conversation

ntp: fix 60-ntpd.list path

PATCH In review [email protected] 2 participants 2 messages Nov 8, 2013 – Nov 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ntp: fix 60-ntpd.list path

From: Roy Li <[email protected]>

60-ntpd.list should be installed into the same path as ntp systemd service file, like Fedora core; Orignal path refers
http://www.freedesktop.org/wiki/Software/systemd/timedated/, but where systemd_unitdir is assumed as /usr/lib/systemd, not /lib/systemd

---
 meta-networking/recipes-support/ntp/ntp.inc |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta-networking/recipes-support/ntp/ntp.inc +2 -3
index 65d90de..9ea24e9 100644
@@ -67,9 +67,8 @@ do_install_append() {
     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
+    install -d ${D}${systemd_unitdir}/ntp-units.d
+    install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
Signature · 1 line
1.7.10.4
#1 lore raw

Almost forgot about this one. Also merged earlier today. Thanks.

-J.

Quoted 28 lines · [[oe] [PATCH meta-networking] ntp: fix 60-ntpd.list path] On 13.11.08 (Fri…

From: Roy Li <[email protected]>

60-ntpd.list should be installed into the same path as ntp systemd service file, like Fedora core; Orignal path refers
http://www.freedesktop.org/wiki/Software/systemd/timedated/, but where systemd_unitdir is assumed as /usr/lib/systemd, not /lib/systemd

---
 meta-networking/recipes-support/ntp/ntp.inc |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
meta-networking/recipes-support/ntp/ntp.inc +2 -3
index 65d90de..9ea24e9 100644
@@ -67,9 +67,8 @@ do_install_append() {
     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
+    install -d ${D}${systemd_unitdir}/ntp-units.d
+    install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
 }
 
 PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils"
Signature · 2 lines
-Joe MacDonald.
:wq