summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/ntp')
-rwxr-xr-xmeta-networking/recipes-support/ntp/ntp/ntpd2
-rw-r--r--meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb (renamed from meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb)23
2 files changed, 16 insertions, 9 deletions
diff --git a/meta-networking/recipes-support/ntp/ntp/ntpd b/meta-networking/recipes-support/ntp/ntp/ntpd
index d1b9c49076..a0c43ed5e5 100755
--- a/meta-networking/recipes-support/ntp/ntp/ntpd
+++ b/meta-networking/recipes-support/ntp/ntp/ntpd
@@ -72,7 +72,7 @@ case "$1" in
72 startdaemon 72 startdaemon
73 ;; 73 ;;
74 status) 74 status)
75 status /usr/sbin/ntpd; 75 status ntpd;
76 exit $? 76 exit $?
77 ;; 77 ;;
78 *) 78 *)
diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb
index 4ed58cd6a4..33d19a696a 100644
--- a/meta-networking/recipes-support/ntp/ntp_4.2.8p17.bb
+++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p18.bb
@@ -6,7 +6,7 @@ or satellite receiver or modem."
6HOMEPAGE = "http://support.ntp.org" 6HOMEPAGE = "http://support.ntp.org"
7SECTION = "net" 7SECTION = "net"
8LICENSE = "NTP" 8LICENSE = "NTP"
9LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=3a8ffebbcad335abf2c39fec38671eec" 9LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=2311915f6d5142b06395231b0ffeaf29"
10 10
11DEPENDS = "libevent" 11DEPENDS = "libevent"
12 12
@@ -24,7 +24,9 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g
24 file://ntpd.list \ 24 file://ntpd.list \
25" 25"
26 26
27SRC_URI[sha256sum] = "103dd272e6a66c5b8df07dce5e9a02555fcd6f1397bdfb782237328e89d3a866" 27SRC_URI[sha256sum] = "cf84c5f3fb1a295284942624d823fffa634144e096cfc4f9969ac98ef5f468e5"
28
29UPSTREAM_CHECK_REGEX = "ntp-(?P<pver>(\d+(\.\d+)+)(p\d+)?)\.tar"
28 30
29CVE_STATUS[CVE-2016-9312] = "not-applicable-platform: Issue only applies on Windows" 31CVE_STATUS[CVE-2016-9312] = "not-applicable-platform: Issue only applies on Windows"
30CVE_STATUS[CVE-2019-11331] = "upstream-wontfix: inherent to RFC 5905 and cannot be fixed without breaking compatibility" 32CVE_STATUS[CVE-2019-11331] = "upstream-wontfix: inherent to RFC 5905 and cannot be fixed without breaking compatibility"
@@ -55,6 +57,11 @@ CVE_STATUS_NTP = " \
55 57
56inherit autotools update-rc.d useradd systemd pkgconfig 58inherit autotools update-rc.d useradd systemd pkgconfig
57 59
60# For some reason this recipe reconfigures the nested configure.ac files in
61# do_compile because libtool.m4 is newer than aclocal.m4, and that then
62# doesn't know about the site configuration.
63do_compile[prefuncs] += "autotools_sitefiles"
64
58# The ac_cv_header_readline_history is to stop ntpdc depending on either 65# The ac_cv_header_readline_history is to stop ntpdc depending on either
59# readline or curses 66# readline or curses
60EXTRA_OECONF += "--with-net-snmp-config=no \ 67EXTRA_OECONF += "--with-net-snmp-config=no \
@@ -90,8 +97,8 @@ PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
90 97
91do_install:append() { 98do_install:append() {
92 install -d ${D}${sysconfdir}/init.d 99 install -d ${D}${sysconfdir}/init.d
93 install -m 644 ${WORKDIR}/ntp.conf ${D}${sysconfdir} 100 install -m 644 ${UNPACKDIR}/ntp.conf ${D}${sysconfdir}
94 install -m 755 ${WORKDIR}/ntpd ${D}${sysconfdir}/init.d 101 install -m 755 ${UNPACKDIR}/ntpd ${D}${sysconfdir}/init.d
95 102
96 install -m 755 -d ${D}${NTP_USER_HOME} 103 install -m 755 -d ${D}${NTP_USER_HOME}
97 chown ntp:ntp ${D}${NTP_USER_HOME} 104 chown ntp:ntp ${D}${NTP_USER_HOME}
@@ -109,14 +116,14 @@ do_install:append() {
109 sed -i '/use/i use warnings;' ${D}${sbindir}/calc_tickadj 116 sed -i '/use/i use warnings;' ${D}${sbindir}/calc_tickadj
110 117
111 install -d ${D}/${sysconfdir}/default 118 install -d ${D}/${sysconfdir}/default
112 install -m 0644 ${WORKDIR}/sntp ${D}${sysconfdir}/default/ 119 install -m 0644 ${UNPACKDIR}/sntp ${D}${sysconfdir}/default/
113 120
114 install -d ${D}${systemd_unitdir}/system 121 install -d ${D}${systemd_unitdir}/system
115 install -m 0644 ${WORKDIR}/ntpd.service ${D}${systemd_unitdir}/system/ 122 install -m 0644 ${UNPACKDIR}/ntpd.service ${D}${systemd_unitdir}/system/
116 install -m 0644 ${WORKDIR}/sntp.service ${D}${systemd_unitdir}/system/ 123 install -m 0644 ${UNPACKDIR}/sntp.service ${D}${systemd_unitdir}/system/
117 124
118 install -d ${D}${systemd_unitdir}/ntp-units.d 125 install -d ${D}${systemd_unitdir}/ntp-units.d
119 install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list 126 install -m 0644 ${UNPACKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list
120 127
121 # Remove the empty libexecdir and bindir. 128 # Remove the empty libexecdir and bindir.
122 rmdir --ignore-fail-on-non-empty ${D}${libexecdir} 129 rmdir --ignore-fail-on-non-empty ${D}${libexecdir}