Summary: IP sets utility
Summary(pl.UTF-8): Narzędzie do zarządzania zbiorami IP
Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
-Version: 7.3
+Version: 7.4
Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
License: GPL v2
Group: Networking/Admin
#Source0Download: http://ipset.netfilter.org/install.html
Source0: http://ipset.netfilter.org/%{pname}-%{version}.tar.bz2
-# Source0-md5: a041d186097a23f1f87208f11144907e
+# Source0-md5: f9dda6f2fc3bb941e0ca3a6c292baf2c
Source1: %{pname}.init
-Patch0: kernel-5.0.patch
-Patch1: kernel-5.1.patch
URL: http://ipset.netfilter.org/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
%prep
%setup -q -n %{pname}-%{version}
-%patch0 -p1
-%patch1 -p1
%build
%{__aclocal}
+++ /dev/null
---- ipset-7.1/configure.ac~ 2018-12-10 18:35:31.000000000 +0100
-+++ ipset-7.1/configure.ac 2019-03-10 18:03:26.965123071 +0100
-@@ -581,7 +581,7 @@
-
- AC_MSG_CHECKING([kernel source for netlink extended ACK])
- if test -f $ksourcedir/include/linux/netlink.h && \
-- $AWK '/^extern void netlink_ack\(/,/\)/' $ksourcedir/include/linux/netlink.h | $GREP -q 'const struct netlink_ext_ack'; then
-+ $AWK '/void netlink_ack\(/,/\)/' $ksourcedir/include/linux/netlink.h | $GREP -q 'const struct netlink_ext_ack'; then
- AC_MSG_RESULT(yes)
- AC_SUBST(HAVE_NETLINK_EXTENDED_ACK, define)
- else
+++ /dev/null
---- ipset-7.1/kernel/net/netfilter/ipset/ip_set_hash_gen.h~ 2018-12-10 18:35:31.000000000 +0100
-+++ ipset-7.1/kernel/net/netfilter/ipset/ip_set_hash_gen.h 2019-05-07 18:42:08.063827159 +0200
-@@ -666,8 +666,11 @@
- spin_unlock_bh(&set->lock);
-
- /* Give time to other readers of the set */
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
-+ synchronize_rcu();
-+#else
- synchronize_rcu_bh();
--
-+#endif
- pr_debug("set %s resized from %u (%p) to %u (%p)\n", set->name,
- orig->htable_bits, orig, t->htable_bits, t);
- /* If there's nobody else dumping the table, destroy it */