commit:     eafdb1971ecba1906f3f9e586623d134f6d064c5
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 26 08:19:13 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Thu Sep 26 08:21:06 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eafdb197

net-misc/chrony: Use Gentoo vendor pool

Package-Manager: Portage-2.3.76, Repoman-2.3.17
Fixes: https://bugs.gentoo.org/621702
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 .../chrony/{chrony-3.5.ebuild => chrony-3.5-r1.ebuild}   |  1 +
 net-misc/chrony/chrony-9999.ebuild                       |  1 +
 .../chrony/files/chrony-3.5-pool-vendor-gentoo.patch     | 16 ++++++++++++++++
 3 files changed, 18 insertions(+)

diff --git a/net-misc/chrony/chrony-3.5.ebuild 
b/net-misc/chrony/chrony-3.5-r1.ebuild
similarity index 98%
rename from net-misc/chrony/chrony-3.5.ebuild
rename to net-misc/chrony/chrony-3.5-r1.ebuild
index c74eea646f9..e280760fd28 100644
--- a/net-misc/chrony/chrony-3.5.ebuild
+++ b/net-misc/chrony/chrony-3.5-r1.ebuild
@@ -40,6 +40,7 @@ RESTRICT=test
 S="${WORKDIR}/${P/_/-}"
 
 PATCHES=(
+       "${FILESDIR}"/${PN}-3.5-pool-vendor-gentoo.patch
        "${FILESDIR}"/${PN}-3.5-systemd-gentoo.patch
 )
 

diff --git a/net-misc/chrony/chrony-9999.ebuild 
b/net-misc/chrony/chrony-9999.ebuild
index 53dd5de5b8a..5cac01a6dee 100644
--- a/net-misc/chrony/chrony-9999.ebuild
+++ b/net-misc/chrony/chrony-9999.ebuild
@@ -38,6 +38,7 @@ RESTRICT=test
 S="${WORKDIR}/${P/_/-}"
 
 PATCHES=(
+       "${FILESDIR}"/${PN}-3.5-pool-vendor-gentoo.patch
        "${FILESDIR}"/${PN}-3.5-systemd-gentoo.patch
 )
 

diff --git a/net-misc/chrony/files/chrony-3.5-pool-vendor-gentoo.patch 
b/net-misc/chrony/files/chrony-3.5-pool-vendor-gentoo.patch
new file mode 100644
index 00000000000..817a4106738
--- /dev/null
+++ b/net-misc/chrony/files/chrony-3.5-pool-vendor-gentoo.patch
@@ -0,0 +1,16 @@
+- Use the Gentoo pool
+- Use the server directive instead of the pool directive so we get four time
+  sources and not twelve.
+
+--- a/examples/chrony.conf.example1
++++ b/examples/chrony.conf.example1
+@@ -1,5 +1,8 @@
+ # Use public NTP servers from the pool.ntp.org project.
+-pool pool.ntp.org iburst
++server 0.gentoo.pool.ntp.org iburst
++server 1.gentoo.pool.ntp.org iburst
++server 2.gentoo.pool.ntp.org iburst
++server 3.gentoo.pool.ntp.org iburst
+ 
+ # Record the rate at which the system clock gains/losses time.
+ driftfile /var/lib/chrony/drift

Reply via email to