/contrib/ntp/html/build/hints/bsdi

https://bitbucket.org/freebsd/freebsd-head/ · #! · 65 lines · 47 code · 18 blank · 0 comment · 0 complexity · d657eba3a699d383626c6dc6af86369c MD5 · raw file

  1. hints/bsdi
  2. Author: Bdale Garbee, bdale@gag.com
  3. Last revision: 27Oct94 (Paul Vixie)
  4. Included in this distribution of XNTP is a configuration file suitable
  5. for use with BSDI's BSD/OS 1.1 (formerly BSD/386 1.1). On this system,
  6. the "cc" command is GCC 1.4x rather than PCC or GCC 2.x. It is imperative
  7. that "cc" be used since it predefines the symbol __bsdi__; if you want to
  8. use another compiler you will need to add -D__bsdi__ to catch the various
  9. #ifdef's required for this system.
  10. The Kinemetrics/Truetime GPS-TM/TMD driver is known to work on this system.
  11. The GPS-805 and GOES should also work fine. Hell, they should all work fine
  12. but it's hard to test very many locally.
  13. Due to BNR2's strict interpretation of POSIX and XNTP's use of SIGIO, BSD/OS
  14. can only handle one refclock per daemon. We're working this out with the
  15. system architects.
  16. The config file is machine/bsdi, and the following steps should be all that
  17. are required to install and use the bits.
  18. Note that you will need GNU sed; the version supplied with BSD/OS 1.1 loops
  19. endlessly during "make refconf". Likewise you should get GNU make, which
  20. the instructions below assume that you have put in /usr/local/bin/gnumake.
  21. To build the software:
  22. rm -f Config.local
  23. gnumake refconf
  24. gnumake MAKE=gnumake
  25. To install the software:
  26. gnumake install
  27. This will place all of the executables in /usr/local/etc. The config
  28. file is expected to be /usr/local/etc/xntp.conf and the key file for
  29. the optional authentication is /etc/ntp.keys.
  30. Craft a config file and a key file, and put them in the right places.
  31. There is information on how to do this elsewhere in the documentation,
  32. the only thing I'll mention is that I put the drift file in
  33. /var/log/ntp.drift, and the authdelay on my 486DX/50 system is
  34. 0.000064. Your mileage will vary, learn to use the authspeed tools
  35. if you're going to authenticate.
  36. In the file /etc/rc.local, make sure that the invocation of ntpd is
  37. commented out, and add an invocation of xntpd. Here's what I'm using:
  38. echo -n 'starting local daemons:'
  39. if [ -f /etc/ntp.keys -a -f /usr/local/etc/xntp.conf ]; then
  40. echo -n ' xntpd'; /usr/local/etc/xntpd
  41. fi
  42. #XXX# echo -n ' ntpd'; /usr/libexec/ntpd -t
  43. At this point, you should be good to go. Try running /usr/local/etc/xntpd and
  44. using ntpq or xntpdc to see if things are working, then pay attention the next
  45. time you reboot to make sure that xntpd is being invoked, and use ntpq or
  46. xntpdc again to make sure all is well.
  47. Enjoy!