summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntp/ntp.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/ntp/ntp.inc')
-rw-r--r--meta-networking/recipes-support/ntp/ntp.inc35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ntp/ntp.inc b/meta-networking/recipes-support/ntp/ntp.inc
new file mode 100644
index 0000000000..1d740f00fb
--- /dev/null
+++ b/meta-networking/recipes-support/ntp/ntp.inc
@@ -0,0 +1,35 @@
1DESCRIPTION = "The Network Time Protocol (NTP) is used to \
2synchronize the time of a computer client or server to \
3another server or reference time source, such as a radio \
4or satellite receiver or modem."
5HOMEPAGE = "http://ntp.isc.org/bin/view/Main/WebHome"
6SECTION = "console/network"
7LICENSE = "ntp"
8LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670"
9RSUGGESTS_${PN} = "iana-etc"
10
11SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \
12 file://ipv6only-workaround.patch \
13 file://ntpd \
14 file://ntp.conf \
15 file://ntpdate \
16 file://ntpd.service \
17"
18
19inherit autotools update-rc.d
20
21INITSCRIPT_NAME = "ntpd"
22# No dependencies, so just go in at the standard level (20)
23INITSCRIPT_PARAMS = "defaults"
24
25# The ac_cv_header_readline_history is to stop ntpdc depending on either
26# readline or curses
27EXTRA_OECONF = "--without-openssl --without-crypto ac_cv_header_readline_history_h=no"
28CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED"
29
30PACKAGES += "ntpdate ${PN}-bin ${PN}-tickadj ${PN}-utils"
31# NOTE: you don't need ntpdate, use "ntpd -q -g -x"
32# or the ntpdate systemd service
33
34# This should use rc.update
35FILES_ntpdate = "${bindir}/ntpdate ${sysconfdir}/init.d/ntpdate"