Accepting request 536441 from home:markkp:branches:network:time
- Modified the spec file to comment out the pool statement in chrony.conf if _not_ building for openSUSE. (bsc#1063704). OBS-URL: https://build.opensuse.org/request/show/536441 OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=33
This commit is contained in:
parent
de5d64bd86
commit
f16919c0b4
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 24 18:23:56 UTC 2017 - mpost@suse.com
|
||||||
|
|
||||||
|
- Modified the spec file to comment out the pool statement
|
||||||
|
in chrony.conf if _not_ building for openSUSE. (bsc#1063704).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 28 16:17:08 UTC 2017 - mrueckert@suse.de
|
Thu Sep 28 16:17:08 UTC 2017 - mrueckert@suse.de
|
||||||
|
|
||||||
|
13
chrony.spec
13
chrony.spec
@ -25,6 +25,10 @@
|
|||||||
%bcond_with systemd
|
%bcond_with systemd
|
||||||
%bcond_with syscallfilter
|
%bcond_with syscallfilter
|
||||||
%endif
|
%endif
|
||||||
|
# If is_opensuse is not defined, then this is an older version of SLES
|
||||||
|
# or some other distribution. So, if not defined then define it as 0
|
||||||
|
%if 0%{!?is_opensuse:%global is_opensuse 0}
|
||||||
|
%endif
|
||||||
Name: chrony
|
Name: chrony
|
||||||
Version: 3.2
|
Version: 3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -107,9 +111,16 @@ or a different computer.
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
|
|
||||||
# use our vendor zone (2.*pool.ntp.org names include IPv6 addresses)
|
# If this is an openSUSE build, use our vendor zone
|
||||||
|
# (2.*pool.ntp.org names include IPv6 addresses). If not
|
||||||
|
# an openSUSE build, comment out the pool statement
|
||||||
|
%if %{is_opensuse}
|
||||||
sed -e 's|^\(pool \)\(pool.ntp.org\)|\12.%{vendorzone}\2|' \
|
sed -e 's|^\(pool \)\(pool.ntp.org\)|\12.%{vendorzone}\2|' \
|
||||||
< examples/chrony.conf.example2 > chrony.conf
|
< examples/chrony.conf.example2 > chrony.conf
|
||||||
|
%else
|
||||||
|
sed -e 's|^\pool|! pool|' \
|
||||||
|
< examples/chrony.conf.example2 > chrony.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
touch -r examples/chrony.conf.example2 chrony.conf
|
touch -r examples/chrony.conf.example2 chrony.conf
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user