[systemd] configure with Fedora/RHEL NTP servers
Michal Schmidt
michich at fedoraproject.org
Tue Sep 9 19:04:39 UTC 2014
commit 10e6a8e59d58686697858ca77ad8e301c8bdf9ef
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Sep 9 20:34:49 2014 +0200
configure with Fedora/RHEL NTP servers
The list of servers taken from the chrony package.
systemd.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/systemd.spec b/systemd.spec
index 789190e..beb5a23 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -274,6 +274,10 @@ sed -r -i 's/\blibsystemd-(login|journal|id128|daemon).c \\/\\/' Makefile.am
%endif
%endif
+%{?fedora: %global ntpvendor fedora}
+%{?rhel: %global ntpvendor rhel}
+%{!?ntpvendor: echo 'NTP vendor zone is not set!'; exit 1}
+
# first make python3 while source directory is empty
rm -rf build2 build3
mkdir build2
@@ -283,6 +287,7 @@ CONFIGURE_OPTS=(
--libexecdir=%{_prefix}/lib
--with-sysvinit-path=/etc/rc.d/init.d
--with-rc-local-script-path-start=/etc/rc.d/rc.local
+ --with-ntp-servers='0.%{ntpvendor}.pool.ntp.org 1.%{ntpvendor}.pool.ntp.org 2.%{ntpvendor}.pool.ntp.org 3.%{ntpvendor}.pool.ntp.org'
--disable-kdbus
)
More information about the scm-commits
mailing list