+++ /dev/null
-diff -urN ipset-6.8.orig/kernel/net/netfilter/ipset/ip_set_hash_netiface.c ipset-6.8/kernel/net/netfilter/ipset/ip_set_hash_netiface.c
---- ipset-6.8.orig/kernel/net/netfilter/ipset/ip_set_hash_netiface.c 2011-07-08 10:13:53.000000000 +0200
-+++ ipset-6.8/kernel/net/netfilter/ipset/ip_set_hash_netiface.c 2011-08-13 09:58:01.456999822 +0200
-@@ -41,25 +41,7 @@
- static inline long
- ifname_compare(const char *_a, const char *_b)
- {
-- const long *a = (const long *)_a;
-- const long *b = (const long *)_b;
--
-- BUILD_BUG_ON(IFNAMSIZ > 4 * sizeof(unsigned long));
-- if (a[0] != b[0])
-- return a[0] - b[0];
-- if (IFNAMSIZ > sizeof(long)) {
-- if (a[1] != b[1])
-- return a[1] - b[1];
-- }
-- if (IFNAMSIZ > 2 * sizeof(long)) {
-- if (a[2] != b[2])
-- return a[2] - b[2];
-- }
-- if (IFNAMSIZ > 3 * sizeof(long)) {
-- if (a[3] != b[3])
-- return a[3] - b[3];
-- }
-- return 0;
-+ return strcmp(_a, _b);
- }
-
- static void
%define _enable_debug_packages 0
%endif
-%define rel 19
+%define rel 1
%define pname ipset
Summary: IP sets utility
Summary(pl.UTF-8): Narzędzie do zarządzania zbiorami IP
Name: %{pname}%{_alt_kernel}
-Version: 6.12.1
+Version: 6.14
Release: %{rel}
License: GPL v2
Group: Networking/Admin
#Source0Download: http://ipset.netfilter.org/install.html
Source0: http://ipset.netfilter.org/%{pname}-%{version}.tar.bz2
-# Source0-md5: 80df500a4d93cb14e1373ae290716cda
+# Source0-md5: 70f2d4c054592236dcda285855a4ee58
Source1: %{pname}.init
Patch0: %{pname}-no_kernel.patch
-Patch1: %{pname}-hash-net-if-fix.patch
URL: http://ipset.netfilter.org/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.38.6}
BuildRequires: libmnl-devel >= 1
+BuildRequires: libltdl-devel
BuildRequires: libtool >= 2:2.0
%{?with_userspace:BuildRequires: linux-libc-headers >= 7:2.6.38.6}
BuildRequires: pkgconfig
%prep
%setup -q -n %{pname}-%{version}
%{!?with_kernel:%patch0 -p1}
-%patch1 -p1
%build
%{__libtoolize}
%doc ChangeLog ChangeLog.ippool README UPGRADE
%attr(755,root,root) %{_sbindir}/ipset
%attr(755,root,root) %{_libdir}/libipset.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libipset.so.2
+%attr(755,root,root) %ghost %{_libdir}/libipset.so.3
%{_mandir}/man8/ipset.8*
%files devel