ntp: bump to version 4.2.6p4 and enhance
* Bump to version 4.2.6p4 * Add new ntpsnmpd option * Fix style Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
78a8ff844b
commit
9a83a8a035
@ -6,22 +6,21 @@ config BR2_PACKAGE_NTP
|
|||||||
|
|
||||||
http://www.ntp.org/
|
http://www.ntp.org/
|
||||||
|
|
||||||
|
if BR2_PACKAGE_NTP
|
||||||
|
|
||||||
config BR2_PACKAGE_NTP_SNTP
|
config BR2_PACKAGE_NTP_SNTP
|
||||||
bool "sntp"
|
bool "sntp"
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
help
|
help
|
||||||
Simple network time protocol program
|
Simple network time protocol program
|
||||||
|
|
||||||
config BR2_PACKAGE_NTP_NTP_KEYGEN
|
config BR2_PACKAGE_NTP_NTP_KEYGEN
|
||||||
bool "ntp-keygen"
|
bool "ntp-keygen"
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
help
|
help
|
||||||
Create a NTP host key
|
Create a NTP host key
|
||||||
|
|
||||||
config BR2_PACKAGE_NTP_NTP_WAIT
|
config BR2_PACKAGE_NTP_NTP_WAIT
|
||||||
bool "ntp-wait"
|
bool "ntp-wait"
|
||||||
depends on BR2_PACKAGE_MICROPERL
|
depends on BR2_PACKAGE_MICROPERL
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
help
|
help
|
||||||
ntp-wait waits until the locally running ntpd is in state 4
|
ntp-wait waits until the locally running ntpd is in state 4
|
||||||
(synchronized). This could be useful at boot time, to delay the
|
(synchronized). This could be useful at boot time, to delay the
|
||||||
@ -29,7 +28,6 @@ config BR2_PACKAGE_NTP_NTP_WAIT
|
|||||||
|
|
||||||
config BR2_PACKAGE_NTP_NTPD
|
config BR2_PACKAGE_NTP_NTPD
|
||||||
bool "ntpd"
|
bool "ntpd"
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
ntpd is the time synchronization daemon keeping your local
|
ntpd is the time synchronization daemon keeping your local
|
||||||
@ -38,29 +36,30 @@ config BR2_PACKAGE_NTP_NTPD
|
|||||||
|
|
||||||
config BR2_PACKAGE_NTP_NTPDATE
|
config BR2_PACKAGE_NTP_NTPDATE
|
||||||
bool "ntpdate"
|
bool "ntpdate"
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
help
|
help
|
||||||
The ntpdate utility program is used to set the local date and time
|
The ntpdate utility program is used to set the local date and time
|
||||||
from an NTP server given as an argument.
|
from an NTP server given as an argument.
|
||||||
|
|
||||||
config BR2_PACKAGE_NTP_NTPDC
|
config BR2_PACKAGE_NTP_NTPDC
|
||||||
bool "ntpdc"
|
bool "ntpdc"
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
help
|
help
|
||||||
The ntpdc utility program is used to query an NTP daemon about
|
The ntpdc utility program is used to query an NTP daemon about
|
||||||
its current state and to request changes in that state.
|
its current state and to request changes in that state.
|
||||||
|
|
||||||
config BR2_PACKAGE_NTP_NTPQ
|
config BR2_PACKAGE_NTP_NTPQ
|
||||||
bool "ntpq"
|
bool "ntpq"
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
help
|
help
|
||||||
The ntpq utility program is used to query NTP servers requesting
|
The ntpq utility program is used to query NTP servers requesting
|
||||||
information about current state and/or changes in that state.
|
information about current state and/or changes in that state.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_NTP_NTPSNMPD
|
||||||
|
bool "ntpsnmpd"
|
||||||
|
help
|
||||||
|
Install ntpsnmpd NTP SNMP MIB agent.
|
||||||
|
|
||||||
config BR2_PACKAGE_NTP_NTPTRACE
|
config BR2_PACKAGE_NTP_NTPTRACE
|
||||||
bool "ntptrace"
|
bool "ntptrace"
|
||||||
depends on BR2_PACKAGE_MICROPERL
|
depends on BR2_PACKAGE_MICROPERL
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
help
|
help
|
||||||
ntptrace is a perl script that uses the ntpq utility program to
|
ntptrace is a perl script that uses the ntpq utility program to
|
||||||
follow the chain of NTP servers from a given host back to the
|
follow the chain of NTP servers from a given host back to the
|
||||||
@ -68,6 +67,7 @@ config BR2_PACKAGE_NTP_NTPTRACE
|
|||||||
|
|
||||||
config BR2_PACKAGE_NTP_TICKADJ
|
config BR2_PACKAGE_NTP_TICKADJ
|
||||||
bool "tickadj"
|
bool "tickadj"
|
||||||
depends on BR2_PACKAGE_NTP
|
|
||||||
help
|
help
|
||||||
set time-related kernel variables
|
set time-related kernel variables
|
||||||
|
|
||||||
|
endif
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
# ntp
|
# ntp
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
NTP_VERSION = 4.2.6p3
|
|
||||||
NTP_SOURCE = ntp-$(NTP_VERSION).tar.gz
|
|
||||||
NTP_SITE = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2
|
|
||||||
|
|
||||||
|
NTP_VERSION = 4.2.6p4
|
||||||
|
NTP_SITE = http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2
|
||||||
NTP_CONF_ENV = ac_cv_lib_md5_MD5Init=no
|
NTP_CONF_ENV = ac_cv_lib_md5_MD5Init=no
|
||||||
|
|
||||||
ifneq ($(BR2_INET_IPV6),y)
|
ifneq ($(BR2_INET_IPV6),y)
|
||||||
@ -15,8 +14,7 @@ endif
|
|||||||
|
|
||||||
NTP_CONF_OPT = --with-shared \
|
NTP_CONF_OPT = --with-shared \
|
||||||
--program-transform-name=s,,, \
|
--program-transform-name=s,,, \
|
||||||
--disable-tickadj \
|
--disable-tickadj
|
||||||
--without-ntpsnmpd
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
NTP_CONF_OPT += --with-crypto
|
NTP_CONF_OPT += --with-crypto
|
||||||
@ -25,6 +23,14 @@ else
|
|||||||
NTP_CONF_OPT += --without-crypto
|
NTP_CONF_OPT += --without-crypto
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_NTP_NTPSNMPD),y)
|
||||||
|
NTP_CONF_OPT += \
|
||||||
|
--with-net-snmp-config=$(STAGING_DIR)/usr/bin/net-snmp-config
|
||||||
|
NTP_DEPENDENCIES += netsnmp
|
||||||
|
else
|
||||||
|
NTP_CONF_OPT += --without-ntpsnmpd
|
||||||
|
endif
|
||||||
|
|
||||||
define NTP_PATCH_FIXUPS
|
define NTP_PATCH_FIXUPS
|
||||||
$(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," $(@D)/ntpd/refclock_pcf.c
|
$(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," $(@D)/ntpd/refclock_pcf.c
|
||||||
$(SED) '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/ strrchr(/g' $(@D)/ntpd/*.c
|
$(SED) '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/ strrchr(/g' $(@D)/ntpd/*.c
|
||||||
@ -35,6 +41,7 @@ NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTP_WAIT) += scripts/ntp-wait
|
|||||||
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPDATE) += ntpdate/ntpdate
|
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPDATE) += ntpdate/ntpdate
|
||||||
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPDC) += ntpdc/ntpdc
|
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPDC) += ntpdc/ntpdc
|
||||||
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPQ) += ntpq/ntpq
|
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPQ) += ntpq/ntpq
|
||||||
|
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPSNMPD) += ntpsnmpd/ntpsnmpd
|
||||||
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPTRACE) += scripts/ntptrace
|
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPTRACE) += scripts/ntptrace
|
||||||
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_SNTP) += sntp/sntp
|
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_SNTP) += sntp/sntp
|
||||||
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_TICKADJ) += util/tickadj
|
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_TICKADJ) += util/tickadj
|
||||||
|
Loading…
Reference in New Issue
Block a user