diff options
Diffstat (limited to 'meta-networking/recipes-support/ntp/ntp.inc')
| -rw-r--r-- | meta-networking/recipes-support/ntp/ntp.inc | 35 |
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 @@ | |||
| 1 | DESCRIPTION = "The Network Time Protocol (NTP) is used to \ | ||
| 2 | synchronize the time of a computer client or server to \ | ||
| 3 | another server or reference time source, such as a radio \ | ||
| 4 | or satellite receiver or modem." | ||
| 5 | HOMEPAGE = "http://ntp.isc.org/bin/view/Main/WebHome" | ||
| 6 | SECTION = "console/network" | ||
| 7 | LICENSE = "ntp" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=fea4b50c33b18c2194b4b1c9ca512670" | ||
| 9 | RSUGGESTS_${PN} = "iana-etc" | ||
| 10 | |||
| 11 | SRC_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 | |||
| 19 | inherit autotools update-rc.d | ||
| 20 | |||
| 21 | INITSCRIPT_NAME = "ntpd" | ||
| 22 | # No dependencies, so just go in at the standard level (20) | ||
| 23 | INITSCRIPT_PARAMS = "defaults" | ||
| 24 | |||
| 25 | # The ac_cv_header_readline_history is to stop ntpdc depending on either | ||
| 26 | # readline or curses | ||
| 27 | EXTRA_OECONF = "--without-openssl --without-crypto ac_cv_header_readline_history_h=no" | ||
| 28 | CFLAGS_append = " -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED" | ||
| 29 | |||
| 30 | PACKAGES += "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 | ||
| 35 | FILES_ntpdate = "${bindir}/ntpdate ${sysconfdir}/init.d/ntpdate" | ||
