Brent Cook
6f93baf369
fix setproctitle on OS X and Linux
Call the compat code and select the correct emulation mode.
Remove the string encoding support, since we have fixed inputs for the
title string.
9 years ago
Brent Cook
b759f56133
add fallback err.h and queue.h
9 years ago
Brent Cook
aa14b765de
update install docs, fix outdated links
- add OS X privsep user creation instructions from jasper@
- update install instructions to be the same everywhere
- remove outdated compiler flags
9 years ago
Brent Cook
f55fb2f9bb
check for sockaddr_in.sin_len directly.
There is no standard SIN_LEN, unlike SIN6_LEN.
9 years ago
Brent Cook
4e94afcafe
support --privsep-user, overriding file paths
Allow overriding the user and the config file paths for ntpd.
This also adds back --privsep-path from OpenNTPD, which really only
changes the installation instructions from 'make install', since ntpd
always uses the home directory of the ntpd user.
This borrows from the Darren's portable OpenNTPD and from OpenSSL, add
credits and a license.
9 years ago
Brent Cook
04f3b3eeee
use per-OS files for adjfreq emulation
This makes it easier to see what is supported by each OS, and to improve
them individually.
9 years ago
Brent Cook
46eb3fcad9
remove unneeded compat string functions
9 years ago
Brent Cook
4b191ba09c
remove duplicate md5 defs, check for Solaris -lmd5
9 years ago
Brent Cook
9ef517cfb7
adjust checks for clock_(get_time/get_res)
ensure we get HAVE_ defines set by autoconf
9 years ago
Brent Cook
9b4d748b44
initial OS X support
Well, support may be too concrete of a term. There is a lot that is
missing in OS X, and not everything can be implemented with portability
shims. The time APIs in OS X seem to have frozen with NeXTSTEP and never
advanced with POSIX.
9 years ago
Brent Cook
c3dc8c10f3
remove OpenBSD hardcode in check for sensor support
9 years ago
Brent Cook
4f2207cfa8
remove __weak_alias
9 years ago
Brent Cook
0a716797e0
simplify library scans for various functions
9 years ago
Brent Cook
074a8e3928
FreeBSD compatibility fixes
EAI_NODATA has been made obsolete.
Properly detect MD5Init in -lmd
9 years ago
Brent Cook
1be998136e
check libmd for MD5 hash functions
9 years ago
Brent Cook
0d56dc4684
use libc SHA512 implementation
Remove dependency on libcrypto, include hash headers in a nicer way.
9 years ago
Brent Cook
d5b81b8ed2
new OpenNTPD portable tree
First attempt at building a new OpenNTPD portable project, based on the
latest OpenBSD source.
10 years ago