Accepting request 738617 from YaST:Head
submit new version 4.2.5 OBS-URL: https://build.opensuse.org/request/show/738617 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/yast2-ntp-client?expand=0&rev=115
This commit is contained in:
commit
557000123a
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d81c4219fa947703c149e7aa1ba9b6644596c8122cfd122e01ee0e56fa5fc1a9
|
|
||||||
size 66088
|
|
3
yast2-ntp-client-4.2.5.tar.bz2
Normal file
3
yast2-ntp-client-4.2.5.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:75e062e43c9d2e30c329b32dcc014184e586a94d61fe62473a579706b563f9a7
|
||||||
|
size 66849
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 14 18:20:17 UTC 2019 - Josef Reidinger <jreidinger@suse.com>
|
||||||
|
|
||||||
|
- switch from cron to systemd timers (jsc#SLE-9113)
|
||||||
|
- 4.2.5
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 2 11:42:34 UTC 2019 - Josef Reidinger <jreidinger@suse.com>
|
Wed Oct 2 11:42:34 UTC 2019 - Josef Reidinger <jreidinger@suse.com>
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: yast2-ntp-client
|
Name: yast2-ntp-client
|
||||||
Version: 4.2.4
|
Version: 4.2.5
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: YaST2 - NTP Client Configuration
|
Summary: YaST2 - NTP Client Configuration
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
@ -28,10 +28,11 @@ Source0: %{name}-%{version}.tar.bz2
|
|||||||
|
|
||||||
BuildRequires: augeas-lenses
|
BuildRequires: augeas-lenses
|
||||||
BuildRequires: autoyast2-installation
|
BuildRequires: autoyast2-installation
|
||||||
# Needed for /etc/cron.* ownership; those directories have special permission handling
|
|
||||||
BuildRequires: cron
|
|
||||||
BuildRequires: perl-XML-Writer
|
BuildRequires: perl-XML-Writer
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
|
# need as it own /usr/lib/systemd and for systemd macros
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%{?systemd_requires}
|
||||||
# cwm/popup
|
# cwm/popup
|
||||||
BuildRequires: yast2 >= 4.1.15
|
BuildRequires: yast2 >= 4.1.15
|
||||||
BuildRequires: yast2-country-data
|
BuildRequires: yast2-country-data
|
||||||
@ -71,12 +72,32 @@ This package contains the YaST2 component for NTP client configuration.
|
|||||||
%yast_metainfo
|
%yast_metainfo
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
%service_add_post yast-timesync.service
|
||||||
|
|
||||||
# upgrade old name and convert it to chrony (bsc#1079122)
|
# upgrade old name and convert it to chrony (bsc#1079122)
|
||||||
if [ -f /etc/cron.d/novell.ntp-synchronize ]; then
|
if [ -f /etc/cron.d/novell.ntp-synchronize ]; then
|
||||||
mv /etc/cron.d/novell.ntp-synchronize /etc/cron.d/suse-ntp_synchronize
|
mv /etc/cron.d/novell.ntp-synchronize /etc/cron.d/suse-ntp_synchronize
|
||||||
sed -i 's:\* \* \* \* root .*:* * * * root /usr/sbin/chronyd -q \&>/dev/null:' /etc/cron.d/suse-ntp_synchronize
|
sed -i 's:\* \* \* \* root .*:* * * * root /usr/sbin/chronyd -q \&>/dev/null:' /etc/cron.d/suse-ntp_synchronize
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# and now update cron to systemd timer. We need to support upgrade from SLE12 and also SLE15 SP1.
|
||||||
|
# jsc#SLE-9113
|
||||||
|
if [ -f /etc/cron.d/suse-ntp_synchronize ]; then
|
||||||
|
/usr/bin/erb timeout=$(grep -o '[[:digit:]]\+' /etc/cron.d/suse-ntp_synchronize) /usr/share/YaST2/data/yast-timesync.timer.erb > /etc/systemd/system/yast-timesync.timer
|
||||||
|
/bin/systemctl enable yast-timesync.timer
|
||||||
|
/bin/systemctl start yast-timesync.timer
|
||||||
|
rm /etc/cron.d/suse-ntp_synchronize
|
||||||
|
fi
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%service_add_pre yast-timesync.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%service_del_postun yast-timesync.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun yast-timesync.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{yast_clientdir}
|
%{yast_clientdir}
|
||||||
%{yast_libdir}
|
%{yast_libdir}
|
||||||
@ -86,8 +107,8 @@ fi
|
|||||||
%{yast_metainfodir}
|
%{yast_metainfodir}
|
||||||
%{yast_ydatadir}
|
%{yast_ydatadir}
|
||||||
%{yast_schemadir}
|
%{yast_schemadir}
|
||||||
%ghost %{_sysconfdir}/cron.d/suse-ntp_synchronize
|
|
||||||
%{yast_icondir}
|
%{yast_icondir}
|
||||||
|
%{_unitdir}/yast-timesync.service
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc %{yast_docdir}
|
%doc %{yast_docdir}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user