configure with Fedora/RHEL NTP servers

The list of servers taken from the chrony package.
This commit is contained in:
Michal Schmidt 2014-09-09 20:34:49 +02:00
parent bcf90854cb
commit 85c06859cf
1 changed files with 5 additions and 0 deletions

View File

@ -359,6 +359,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
@ -368,6 +372,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
)