Summary: An NTP client/server
Name: chrony
Version: 3.5
-Release: 4
+Release: 5
License: GPL v2
Group: Daemons
Source0: http://download.tuxfamily.org/chrony/%{name}-%{version}.tar.gz
Source5: %{name}.logrotate
Patch0: allow-clock_adjtime.patch
Patch1: fix-seccomp-build.patch
+Patch2: dont-force-index.patch
URL: http://chrony.tuxfamily.org/
BuildRequires: asciidoc
BuildRequires: bison
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
# NOTE: It is not autoconf generated configre
--- /dev/null
+diff --git a/ntp_io.c b/ntp_io.c
+index ec844cb..e92d27e 100644
+--- a/ntp_io.c
++++ b/ntp_io.c
+@@ -827,8 +827,6 @@ NIO_SendPacket(NTP_Packet *packet, NTP_Remote_Address *remote_addr,
+
+ ipi = (struct in_pktinfo *) CMSG_DATA(cmsg);
+ ipi->ipi_spec_dst.s_addr = htonl(local_addr->ip_addr.addr.in4);
+- if (local_addr->if_index != INVALID_IF_INDEX)
+- ipi->ipi_ifindex = local_addr->if_index;
+ }
+ #endif
+
+@@ -847,8 +845,6 @@ NIO_SendPacket(NTP_Packet *packet, NTP_Remote_Address *remote_addr,
+ ipi = (struct in6_pktinfo *) CMSG_DATA(cmsg);
+ memcpy(&ipi->ipi6_addr.s6_addr, &local_addr->ip_addr.addr.in6,
+ sizeof(ipi->ipi6_addr.s6_addr));
+- if (local_addr->if_index != INVALID_IF_INDEX)
+- ipi->ipi6_ifindex = local_addr->if_index;
+ }
+ #endif
+