Miroslav Lichvar
b03c7581f2
configure: fix test code to be compilable with -Werror
2014-06-02 16:46:53 +02:00
Miroslav Lichvar
ec4542bbe4
sys: convert Linux driver to use generic offset functions
...
Strip all slewing code (adjtime(), freq locked nano PLL, fast tick
slewing) from the Linux driver and use the new generic frequency only
slewing instead. The advantages include stable clock control with very
short update intervals, good control of the slewing frequency, cheap
cooking of raw time stamps and unlimited frequency offset.
2014-05-20 17:14:33 +02:00
Miroslav Lichvar
5483567190
nameserv: add asynchronous resolving with POSIX threads
...
Run getaddrinfo()/gethostbyname() in separate thread to avoid blocking.
Only one resolving thread is running at one time, so this should work
also on systems where the functions are not thread-safe.
2014-04-29 15:19:06 +02:00
Miroslav Lichvar
d243f1f8fe
configure: check if getaddrinfo() is available
...
This allows disabling IPv6 support and keeping getaddrinfo().
2014-04-29 12:43:03 +02:00
Miroslav Lichvar
5ca8aa7840
configure: sed Makefile with MYCPPFLAGS
2014-04-29 12:07:38 +02:00
Miroslav Lichvar
1eede1bc08
configure: replace unnecessary variables in Makefile
2014-04-29 12:07:38 +02:00
Miroslav Lichvar
ff31702f74
configure: add option to set default user
...
The default user is root by default, which disables root dropping by
default. The user directive or the -u option can still be used to set
the user.
2014-04-09 16:30:06 +02:00
Miroslav Lichvar
ea526b96dd
configure: suppress pkg-config errors
2014-02-05 08:53:15 +01:00
Miroslav Lichvar
1c3aff37de
Convert TRACEON LOG messages to DEBUG_LOG
2013-11-27 14:35:41 +01:00
Miroslav Lichvar
4bbc5520b8
Add support for debug messages
...
Add new DEBUG_LOG macro for debug messages. The messages are enabled
when compiled with --enable-debug and they are printed when the -d
option is used twice.
2013-11-27 14:35:38 +01:00
Miroslav Lichvar
030833087d
Append -lcap to EXTRA_LIBS in configure
2013-11-15 13:22:45 +01:00
Miroslav Lichvar
c38dbcc6b5
Link with -lrt for clock_gettime() if needed
2013-11-15 13:22:43 +01:00
Miroslav Lichvar
1d289787b6
Add PHC refclock driver
...
Implement a driver which allows using PTP hardware clock (PHC) as a
reference clock. It uses the PTP_SYS_OFFSET ioctl or clock_gettime()
to measure the offset between the PTP clock and the system clock. Ten
readings are made for every driver poll and the fastest one is returned.
As PHCs are typically kept in TAI instead of UTC, it's necessary to set
the TAI/UTC offset manually by the offset option. This could be improved
by obtaining the offset automatically from the right/UTC timezone.
2013-08-14 18:52:23 +02:00
Miroslav Lichvar
0e298bedf6
Create /etc and /var/lib/chrony on installation
2013-06-20 14:47:06 +02:00
Miroslav Lichvar
3d1be1cd75
Replace bzero with memset
2013-06-14 13:48:16 +02:00
Miroslav Lichvar
d46e2a69a1
Add --enable-trace to configure
2013-06-05 12:22:07 +02:00
Miroslav Lichvar
20f9454be3
Fix configure help message
2013-06-05 11:58:13 +02:00
Miroslav Lichvar
1c901b82dc
Add option to generate command key on start
...
With generatecommandkey directive, if no command key is found in the key
file on start, one will be generated automatically from /dev/urandom.
2013-05-21 14:02:31 +02:00
Miroslav Lichvar
51a2d8dfd8
Set paths in documentation by configure
2013-05-16 14:20:16 +02:00
Miroslav Lichvar
02524397c1
Try linking readline without ncurses first
2013-05-15 11:50:58 +02:00
Miroslav Lichvar
4e8ceaae86
Define DEFAULT_CONF_FILE in config.h
2013-05-07 16:35:40 +02:00
Miroslav Lichvar
0540b17fb9
Replace printf calls with echo in configure
2013-01-24 19:04:49 +01:00
Miroslav Lichvar
8893dda350
Save compiler messages to config.log in configure
2013-01-24 18:57:39 +01:00
Miroslav Lichvar
0c738d84af
Update copyright years
2012-02-28 13:11:56 +01:00
Miroslav Lichvar
15b6ab77ea
Update configure help text
2012-02-27 15:45:27 +01:00
Miroslav Lichvar
6673cadfa2
Check if struct in6_pktinfo is usable
2012-01-05 15:11:54 +01:00
Miroslav Lichvar
3cc6021e03
Add support for libtomcrypt
2011-11-02 13:53:00 +01:00
Miroslav Lichvar
375389fa1e
Add support for NSS library
...
This adds support for the NSSLOWHASH API provided by the freebl3
library.
2011-11-02 13:53:00 +01:00
Miroslav Lichvar
777303f130
Add support for different authentication hashes
...
Allow different hash functions to be used in the NTP and cmdmon
protocols. This breaks the cmdmon protocol compatibility. Extended key
file format is used to specify the hash functions for chronyd and new
authhash command is added to chronyc. MD5 is the default and the only
function included in the chrony source code, other functions will be
available from libraries.
2011-11-02 13:53:00 +01:00
Miroslav Lichvar
f570eb76b3
Check for timepps.h also in sys directory
2011-09-01 17:06:54 +02:00
Miroslav Lichvar
21b2063a6f
Retry on permanent DNS error by default
2011-07-13 14:49:22 +02:00
Miroslav Lichvar
2bfce03d29
Add configure option for sendmail path
2011-06-24 13:27:30 +02:00
Miroslav Lichvar
4ba3dd66ad
Set version string in config.h
2011-06-09 14:32:22 +02:00
Miroslav Lichvar
de4d14843f
Set source IPv6 address on NTP reply
...
This is needed on systems with multiple IPv6 addresses to reply with
the same source address as the destination address of the NTP request.
2011-05-24 18:07:06 +02:00
Miroslav Lichvar
18605795a7
Merge CCWARNFLAGS with CFLAGS
2011-05-24 18:07:06 +02:00
Miroslav Lichvar
da2c8d9076
Use config.h
2011-05-24 18:07:06 +02:00
Miroslav Lichvar
598c04eea2
Add configure option to force retry on DNS failure
...
This is apparently needed on system which keep nameservers specified
in /etc/resolv.conf even when there is no network connection. Should be
used with care as invalid names will be retried forever.
2011-04-05 18:14:05 +02:00
Miroslav Lichvar
efff149988
Use system headers for Linux RTC support
2011-02-11 17:56:05 +01:00
Miroslav Lichvar
b02d4092f1
Fix compiler warnings in PPS configure test
2011-02-11 17:31:38 +01:00
Miroslav Lichvar
d8fc5fee0a
Run configure tests with LDFLAGS
2010-08-17 12:31:03 +02:00
Miroslav Lichvar
feb86e336a
Check also for log and pow functions in configure
2009-12-13 15:00:13 +01:00
Miroslav Lichvar
7817bef866
Add FreeBSD-amd64 to configure
2009-12-13 15:00:13 +01:00
Miroslav Lichvar
fb538c3947
Improve configure
2009-12-04 13:12:31 +01:00
Miroslav Lichvar
159a9519e8
Clean up configure a bit
2009-11-27 16:47:20 +01:00
Miroslav Lichvar
5939fcb2eb
Add editline, readline, linuxcaps detection to configure
2009-11-27 15:59:32 +01:00
Miroslav Lichvar
4d6156b549
Add bindir, sbindir, docdir options to configure
2009-11-27 13:12:58 +01:00
Miroslav Lichvar
707b623ea8
Allow overriding system detection in configure
2009-11-12 15:07:35 +01:00
Miroslav Lichvar
fe2cfe1fae
Support LDFLAGS and CPPFLAGS in configure
2009-11-04 15:46:58 +01:00
Miroslav Lichvar
b4069a4c3b
Add PPS API refclock driver
2009-10-28 12:40:39 +01:00
Miroslav Lichvar
8265ff2890
Add IPv6 support
2009-10-13 14:44:33 +02:00