Browse Source

pull default ntpd.conf from openbsd source

OPENBSD_6_2
Brent Cook 6 years ago
parent
commit
b2fa6fb956
16 changed files with 19 additions and 37 deletions
  1. +1
    -0
      .gitignore
  2. +0
    -21
      ntpd.conf
  3. +1
    -1
      patches/0001-Handle-IPv6-DNS-records-on-IPv4-networks-more-libera.patch
  4. +1
    -1
      patches/0002-EAI_NODATA-does-not-exist-everywhere.patch
  5. +1
    -1
      patches/0003-conditionally-fill-in-sin_len-sin6_len-if-they-exist.patch
  6. +1
    -1
      patches/0004-check-if-rdomain-support-is-available.patch
  7. +1
    -1
      patches/0005-update-ntpd.conf-to-indicate-OS-dependent-options.patch
  8. +1
    -1
      patches/0006-allow-overriding-default-user-and-file-locations.patch
  9. +1
    -1
      patches/0007-add-p-option-to-create-a-pid-file.patch
  10. +1
    -1
      patches/0008-initialize-setproctitle-where-needed.patch
  11. +1
    -1
      patches/0009-Notify-the-user-when-constraint-support-is-disabled.patch
  12. +1
    -1
      patches/0010-add-a-method-for-updating-the-realtime-clock-on-sync.patch
  13. +1
    -1
      patches/0011-Deal-with-missing-SO_TIMESTAMP.patch
  14. +1
    -1
      patches/0012-check-result-of-ftello-ftruncate.patch
  15. +1
    -1
      patches/0013-set-IPV6_V6ONLY-if-we-are-binding-to-an-IPv6-address.patch
  16. +5
    -3
      update.sh

+ 1
- 0
.gitignore View File

@ -33,6 +33,7 @@ Makefile
Makefile.in
openntpd*.tar.gz
ntpd.conf
compat/arc4random.c
compat/arc4random_*
compat/chacha_private.h


+ 0
- 21
ntpd.conf View File

@ -1,21 +0,0 @@
# $OpenBSD: ntpd.conf,v 1.3 2015/05/18 11:10:03 dtucker Exp $
# sample ntpd configuration file, see ntpd.conf(5)
# Addresses to listen on (ntpd does not listen by default)
#listen on *
# sync to a single server
#server ntp.example.org
# use a random selection of NTP Pool Time Servers
# see http://support.ntp.org/bin/view/Servers/NTPPoolServers
servers pool.ntp.org
# use a specific local timedelta sensor (radio clock, etc)
#sensor nmea0
# use all detected timedelta sensors
#sensor *
# get the time constraint from a well-known HTTPS site
#constraints from "https://www.google.com/"

+ 1
- 1
patches/0001-Handle-IPv6-DNS-records-on-IPv4-networks-more-libera.patch View File

@ -1,4 +1,4 @@
From 7a3b9e1c6e340a8cfcb29cbac1ad4739a43e4929 Mon Sep 17 00:00:00 2001
From 3932b6e3f8a6053d9ce2054c1d4f056d557fc0ef Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Tue, 30 Dec 2014 09:10:22 -0600
Subject: [PATCH 01/13] Handle IPv6 DNS records on IPv4 networks more liberally


+ 1
- 1
patches/0002-EAI_NODATA-does-not-exist-everywhere.patch View File

@ -1,4 +1,4 @@
From e6b57234f53bfe3de18082dc2d374e14c189d37a Mon Sep 17 00:00:00 2001
From 25747c0ef42f61f122d73c9c8f7b1d6facd5c437 Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Tue, 30 Dec 2014 09:04:08 -0600
Subject: [PATCH 02/13] EAI_NODATA does not exist everywhere


+ 1
- 1
patches/0003-conditionally-fill-in-sin_len-sin6_len-if-they-exist.patch View File

@ -1,4 +1,4 @@
From 66c1f59300b4841caebd5e8cebd38dfe73dc197e Mon Sep 17 00:00:00 2001
From 36eb7d2a2843515b465e36a79b869dc2dd43439f Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Tue, 30 Dec 2014 09:02:50 -0600
Subject: [PATCH 03/13] conditionally fill in sin_len/sin6_len if they exist


+ 1
- 1
patches/0004-check-if-rdomain-support-is-available.patch View File

@ -1,4 +1,4 @@
From db8b0669905e63b8708181b400b887f8d19a6ce1 Mon Sep 17 00:00:00 2001
From ee9042fcbe380097c551c5edbcf4d683704c2ab9 Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Tue, 30 Dec 2014 09:05:46 -0600
Subject: [PATCH 04/13] check if rdomain support is available.


+ 1
- 1
patches/0005-update-ntpd.conf-to-indicate-OS-dependent-options.patch View File

@ -1,4 +1,4 @@
From 999b87a59812e6c485618d2806bc2a05af1787cc Mon Sep 17 00:00:00 2001
From 56a53ff670459660f858723115fff391203cc2e2 Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Tue, 30 Dec 2014 09:20:03 -0600
Subject: [PATCH 05/13] update ntpd.conf to indicate OS-dependent options


+ 1
- 1
patches/0006-allow-overriding-default-user-and-file-locations.patch View File

@ -1,4 +1,4 @@
From 3d967b9daff41f325171bef987218f6bd39a2703 Mon Sep 17 00:00:00 2001
From 1ba669c02b5e81551dfa3f1ce07fdfb7a00fd3c1 Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Thu, 1 Jan 2015 07:18:11 -0600
Subject: [PATCH 06/13] allow overriding default user and file locations


+ 1
- 1
patches/0007-add-p-option-to-create-a-pid-file.patch View File

@ -1,4 +1,4 @@
From 6e0861d02aadcdeb00995e307e805189e4eefbc8 Mon Sep 17 00:00:00 2001
From 933fd946afb55fdeaae822b84b0674ee114ad497 Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Wed, 31 Dec 2014 08:26:41 -0600
Subject: [PATCH 07/13] add -p option to create a pid file


+ 1
- 1
patches/0008-initialize-setproctitle-where-needed.patch View File

@ -1,4 +1,4 @@
From e5fe65b2c3ddccaf70b1cad493ff7efeda5ede6f Mon Sep 17 00:00:00 2001
From 4738a7078815a5c98e4ea227e3d9aa58bd076a4f Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Mon, 12 Jan 2015 06:18:31 -0600
Subject: [PATCH 08/13] initialize setproctitle where needed


+ 1
- 1
patches/0009-Notify-the-user-when-constraint-support-is-disabled.patch View File

@ -1,4 +1,4 @@
From 662cb42337bf04bb3d784a4f9571dc376228f401 Mon Sep 17 00:00:00 2001
From efb678b08cbff1e994513621b113e864dec9e0c6 Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Fri, 27 Mar 2015 23:14:15 -0500
Subject: [PATCH 09/13] Notify the user when constraint support is disabled.


+ 1
- 1
patches/0010-add-a-method-for-updating-the-realtime-clock-on-sync.patch View File

@ -1,4 +1,4 @@
From 6c6ea48c43c8438d0fadff1d994977f270f6236a Mon Sep 17 00:00:00 2001
From daec8e4e9571441a76485ae566b1e974d96752a9 Mon Sep 17 00:00:00 2001
From: Brent Cook <busterb@gmail.com>
Date: Mon, 4 May 2015 04:27:29 -0500
Subject: [PATCH 10/13] add a method for updating the realtime clock on sync


+ 1
- 1
patches/0011-Deal-with-missing-SO_TIMESTAMP.patch View File

@ -1,4 +1,4 @@
From 881d29d2e864c858458e87706751c35fe231519e Mon Sep 17 00:00:00 2001
From 551dfcb76bfcd11299729e69d4df5c61bcc6a994 Mon Sep 17 00:00:00 2001
From: Brent Cook <bcook@openbsd.org>
Date: Sun, 6 Dec 2015 22:35:38 -0600
Subject: [PATCH 11/13] Deal with missing SO_TIMESTAMP


+ 1
- 1
patches/0012-check-result-of-ftello-ftruncate.patch View File

@ -1,4 +1,4 @@
From ada94a3f01ba9dbcee3b74116b76d7da6ade2d6d Mon Sep 17 00:00:00 2001
From 974f13df1d84aa9199288cf4689db4f19f28af16 Mon Sep 17 00:00:00 2001
From: Brent Cook <bcook@openbsd.org>
Date: Mon, 21 Dec 2015 05:53:20 -0600
Subject: [PATCH 12/13] check result of ftello/ftruncate


+ 1
- 1
patches/0013-set-IPV6_V6ONLY-if-we-are-binding-to-an-IPv6-address.patch View File

@ -1,4 +1,4 @@
From 9398c9c6c64add64c176519794bf57f142efeaa5 Mon Sep 17 00:00:00 2001
From 1e633c87b63e0933c854f82b965a3bd686eb0c1c Mon Sep 17 00:00:00 2001
From: Brent Cook <bcook@openbsd.org>
Date: Sat, 13 Aug 2016 14:22:02 -0500
Subject: [PATCH 13/13] set IPV6_V6ONLY if we are binding to an IPv6 address


+ 5
- 3
update.sh View File

@ -21,6 +21,7 @@ fi
# setup source paths
dir=`pwd`
patches=$dir/patches
etc_src=$dir/openbsd/src/etc
libc_inc=$dir/openbsd/src/include
libc_src=$dir/openbsd/src/lib/libc
arc4random_src=$dir/openbsd/src/lib/libcrypto/arc4random
@ -34,11 +35,12 @@ CP_LIBC='do_cp_libc'
CP='cp -p'
PATCH='patch -p0 -s'
$CP $etc_src/ntpd.conf ./
sed '/DECLS/d' $libc_inc/md5.h > include/md5.h
sed '/DECLS/d' $libc_inc/sha2.h > include/sha2_openbsd.h
cp $libutil_src/imsg.h include/
cp $libutil_src/imsg.c compat/
cp $libutil_src/imsg-buffer.c compat/
$CP $libutil_src/imsg.h include/
$CP $libutil_src/imsg.c compat/
$CP $libutil_src/imsg-buffer.c compat/
(cd compat; $PATCH < $patches/patch-imsg.c)
for i in explicit_bzero.c strlcpy.c strlcat.c; do


Loading…
Cancel
Save