mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 18:25:07 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0da5cf9163 | ||
|
|
f6a39d75a7 | ||
|
|
25aa9f5b42 | ||
|
|
829b3adac3 |
2
NEWS
2
NEWS
@@ -8,6 +8,7 @@ New in version 1.28
|
|||||||
* Add generatecommandkey, minsamples, maxsamples and user directives
|
* Add generatecommandkey, minsamples, maxsamples and user directives
|
||||||
* Improve compatibility with NTPv1 and NTPv2 clients
|
* Improve compatibility with NTPv1 and NTPv2 clients
|
||||||
* Create sockets only in selected family with -4/-6 option
|
* Create sockets only in selected family with -4/-6 option
|
||||||
|
* Treat address bind errors as non-fatal
|
||||||
* Extend tracking log
|
* Extend tracking log
|
||||||
* Accept float values as initstepslew threshold
|
* Accept float values as initstepslew threshold
|
||||||
* Allow hostnames in offline, online and burst commands
|
* Allow hostnames in offline, online and burst commands
|
||||||
@@ -18,6 +19,7 @@ New in version 1.28
|
|||||||
* Set local stratum correctly
|
* Set local stratum correctly
|
||||||
* Remove unnecessary adjtimex calls
|
* Remove unnecessary adjtimex calls
|
||||||
* Set paths in documentation by configure
|
* Set paths in documentation by configure
|
||||||
|
* Update chrony.spec
|
||||||
|
|
||||||
New in version 1.27
|
New in version 1.27
|
||||||
===================
|
===================
|
||||||
|
|||||||
@@ -1,38 +1,43 @@
|
|||||||
|
%global chrony_version @@VERSION@@
|
||||||
|
%if 0%(echo %{chrony_version} | grep -q pre && echo 1)
|
||||||
|
%global prerelease %(echo %{chrony_version} | sed 's/.*-//')
|
||||||
|
%endif
|
||||||
Summary: An NTP client/server
|
Summary: An NTP client/server
|
||||||
Name: chrony
|
Name: chrony
|
||||||
Version: @@VERSION@@
|
Version: %(echo %{chrony_version} | sed 's/-.*//')
|
||||||
Release: 1
|
Release: %{!?prerelease:1}%{?prerelease:0.1.%{prerelease}}
|
||||||
Source: chrony-%{version}.tar.gz
|
Source: chrony-%{version}%{?prerelease:-%{prerelease}}.tar.gz
|
||||||
Copyright: GPL
|
License: GPLv2
|
||||||
Group: Applications/Utilities
|
Group: Applications/Utilities
|
||||||
Packager: Richard P. Curnow <rc@rc0.org.uk>
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n)
|
||||||
Requires: info
|
Requires: info
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A pair of programs for keeping computer clocks accurate. chronyd is a
|
chrony is a client and server for the Network Time Protocol (NTP).
|
||||||
background (daemon) program and chronyc is a command-line interface to it.
|
This program keeps your computer's clock accurate. It was specially
|
||||||
Time reference sources for chronyd can be RFC1305 NTP servers, human (via
|
designed to support systems with intermittent Internet connections,
|
||||||
keyboard and chronyc), and the computer's real-time clock at boot time (Linux
|
but it also works well in permanently connected environments. It can
|
||||||
only). chronyd can determine the rate at which the computer gains or loses
|
also use hardware reference clocks, the system real-time clock, or
|
||||||
time and compensate for it whilst no external reference is present. chronyd's
|
manual input as time references.
|
||||||
use of NTP servers can be switched on and off (through chronyc) to support
|
|
||||||
computers with dial-up/intermittent access to the Internet. chronyd can also
|
|
||||||
act as an RFC1305-compatible NTP server.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup -q -n %{name}-%{version}%{?prerelease:-%{prerelease}}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --prefix=%{_prefix} --mandir=%{_mandir}
|
./configure \
|
||||||
make CC=gcc CFLAGS=-O2 prefix=%{_prefix}
|
--prefix=%{_prefix} \
|
||||||
make chrony.txt prefix=%{_prefix}
|
--bindir=%{_bindir} \
|
||||||
make chrony.info prefix=%{_prefix}
|
--sbindir=%{_sbindir} \
|
||||||
|
--infodir=%{_infodir} \
|
||||||
|
--mandir=%{_mandir}
|
||||||
|
make
|
||||||
|
make chrony.txt
|
||||||
|
make chrony.info
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
cd $RPM_BUILD_DIR/chrony-%{version}
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix}
|
rm -rf $RPM_BUILD_ROOT%{_docdir}
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
||||||
cp chrony.info* $RPM_BUILD_ROOT%{_infodir}
|
cp chrony.info* $RPM_BUILD_ROOT%{_infodir}
|
||||||
|
|
||||||
@@ -47,6 +52,6 @@ cp chrony.info* $RPM_BUILD_ROOT%{_infodir}
|
|||||||
%doc README
|
%doc README
|
||||||
%doc chrony.txt
|
%doc chrony.txt
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%doc examples/chrony.conf.example
|
%doc examples/chrony.conf.example*
|
||||||
%doc examples/chrony.keys.example
|
%doc examples/chrony.keys.example
|
||||||
|
|
||||||
|
|||||||
2
client.c
2
client.c
@@ -2856,7 +2856,7 @@ static void
|
|||||||
display_gpl(void)
|
display_gpl(void)
|
||||||
{
|
{
|
||||||
printf("chrony version %s\n"
|
printf("chrony version %s\n"
|
||||||
"Copyright (C) 1997-2003, 2007, 2009-2012 Richard P. Curnow and others\n"
|
"Copyright (C) 1997-2003, 2007, 2009-2013 Richard P. Curnow and others\n"
|
||||||
"chrony comes with ABSOLUTELY NO WARRANTY. This is free software, and\n"
|
"chrony comes with ABSOLUTELY NO WARRANTY. This is free software, and\n"
|
||||||
"you are welcome to redistribute it under certain conditions. See the\n"
|
"you are welcome to redistribute it under certain conditions. See the\n"
|
||||||
"GNU General Public License version 2 for details.\n\n",
|
"GNU General Public License version 2 for details.\n\n",
|
||||||
|
|||||||
4
cmdmon.c
4
cmdmon.c
@@ -248,8 +248,10 @@ prepare_socket(int family)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bind(sock_fd, &my_addr.u, my_addr_len) < 0) {
|
if (bind(sock_fd, &my_addr.u, my_addr_len) < 0) {
|
||||||
LOG_FATAL(LOGF_CmdMon, "Could not bind %s command socket : %s",
|
LOG(LOGS_ERR, LOGF_CmdMon, "Could not bind %s command socket : %s",
|
||||||
family == AF_INET ? "IPv4" : "IPv6", strerror(errno));
|
family == AF_INET ? "IPv4" : "IPv6", strerror(errno));
|
||||||
|
close(sock_fd);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Register handler for read events on the socket */
|
/* Register handler for read events on the socket */
|
||||||
|
|||||||
4
ntp_io.c
4
ntp_io.c
@@ -210,8 +210,10 @@ prepare_socket(int family)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (bind(sock_fd, &my_addr.u, my_addr_len) < 0) {
|
if (bind(sock_fd, &my_addr.u, my_addr_len) < 0) {
|
||||||
LOG_FATAL(LOGF_NtpIO, "Could not bind %s NTP socket : %s",
|
LOG(LOGS_ERR, LOGF_NtpIO, "Could not bind %s NTP socket : %s",
|
||||||
family == AF_INET ? "IPv4" : "IPv6", strerror(errno));
|
family == AF_INET ? "IPv4" : "IPv6", strerror(errno));
|
||||||
|
close(sock_fd);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Register handler for read events on the socket */
|
/* Register handler for read events on the socket */
|
||||||
|
|||||||
Reference in New Issue
Block a user