Accepting request 1038940 from network:time
OBS-URL: https://build.opensuse.org/request/show/1038940 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/chrony?expand=0&rev=38
This commit is contained in:
commit
7363a8d551
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 16 11:37:25 UTC 2022 - Clemens Famulla-Conrad <cfamullaconrad@suse.com>
|
||||||
|
|
||||||
|
- Install chrony DHCP dispatcher script for Networkmanager
|
||||||
|
* chrony.nm-dispatcher.dhcp.patch /var/run to /run
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 1 14:40:46 UTC 2022 - Reinhard Max <max@suse.com>
|
Thu Sep 1 14:40:46 UTC 2022 - Reinhard Max <max@suse.com>
|
||||||
|
|
||||||
|
11
chrony.nm-dispatcher.dhcp.patch
Normal file
11
chrony.nm-dispatcher.dhcp.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- examples/chrony.nm-dispatcher.dhcp.orig
|
||||||
|
+++ examples/chrony.nm-dispatcher.dhcp
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
|
||||||
|
chronyc=/usr/bin/chronyc
|
||||||
|
server_options=iburst
|
||||||
|
-server_dir=/var/run/chrony-dhcp
|
||||||
|
+server_dir=/run/chrony-dhcp
|
||||||
|
|
||||||
|
dhcp_server_file=$server_dir/$interface.sources
|
||||||
|
dhcp_ntp_servers="$DHCP4_NTP_SERVERS $DHCP6_DHCP6_NTP_SERVERS"
|
13
chrony.spec
13
chrony.spec
@ -69,6 +69,7 @@ Patch1: chrony-service-helper.patch
|
|||||||
Patch2: chrony-logrotate.patch
|
Patch2: chrony-logrotate.patch
|
||||||
Patch3: chrony-service-ordering.patch
|
Patch3: chrony-service-ordering.patch
|
||||||
Patch7: chrony-htonl.patch
|
Patch7: chrony-htonl.patch
|
||||||
|
Patch8: chrony.nm-dispatcher.dhcp.patch
|
||||||
BuildRequires: NetworkManager-devel
|
BuildRequires: NetworkManager-devel
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
@ -179,6 +180,7 @@ e.g. because the servers will be set via DHCP.
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3
|
%patch3
|
||||||
%patch7
|
%patch7
|
||||||
|
%patch8
|
||||||
|
|
||||||
# Remove pool statements from the default /etc/chrony.conf. They will
|
# Remove pool statements from the default /etc/chrony.conf. They will
|
||||||
# be provided by branding packages in /etc/chrony.d/pool.conf .
|
# be provided by branding packages in /etc/chrony.d/pool.conf .
|
||||||
@ -190,6 +192,10 @@ cat << EOF >> chrony.conf
|
|||||||
|
|
||||||
# Also include any directives found in configuration files in /etc/chrony.d
|
# Also include any directives found in configuration files in /etc/chrony.d
|
||||||
include %{_sysconfdir}/chrony.d/*.conf
|
include %{_sysconfdir}/chrony.d/*.conf
|
||||||
|
|
||||||
|
# Add sourcedir needed by NetworkManager DHCP dispatcher
|
||||||
|
sourcedir /run/chrony-dhcp
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
touch -r examples/chrony.conf.example2 chrony.conf
|
touch -r examples/chrony.conf.example2 chrony.conf
|
||||||
@ -231,7 +237,9 @@ mkdir %{buildroot}%{_sysconfdir}/chrony.d
|
|||||||
install -Dpm 0640 examples/chrony.keys.example \
|
install -Dpm 0640 examples/chrony.keys.example \
|
||||||
%{buildroot}%{_sysconfdir}/chrony.keys
|
%{buildroot}%{_sysconfdir}/chrony.keys
|
||||||
install -Dpm 0755 examples/chrony.nm-dispatcher.onoffline \
|
install -Dpm 0755 examples/chrony.nm-dispatcher.onoffline \
|
||||||
%{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony
|
%{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-onoffline
|
||||||
|
install -Dpm 0755 examples/chrony.nm-dispatcher.dhcp \
|
||||||
|
%{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
|
||||||
install -Dpm 0755 %{SOURCE3} \
|
install -Dpm 0755 %{SOURCE3} \
|
||||||
%{buildroot}%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
%{buildroot}%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
|
||||||
%if %{with usr_etc}
|
%if %{with usr_etc}
|
||||||
@ -337,7 +345,8 @@ done
|
|||||||
%else
|
%else
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/chrony
|
%config(noreplace) %{_sysconfdir}/logrotate.d/chrony
|
||||||
%endif
|
%endif
|
||||||
%attr(0755,root,root) %{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony
|
%attr(0755,root,root) %{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-onoffline
|
||||||
|
%attr(0755,root,root) %{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
|
||||||
%dir %{_sysconfdir}/chrony.d/
|
%dir %{_sysconfdir}/chrony.d/
|
||||||
%dir %{_sysconfdir}/dhcp/
|
%dir %{_sysconfdir}/dhcp/
|
||||||
%dir %{_sysconfdir}/dhcp/dhclient.d/
|
%dir %{_sysconfdir}/dhcp/dhclient.d/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user