--- /dev/null
+diff -rNpu xtables-addons-1.28-pre2.6.35-checkversion/extensions/compat_xtables.c xtables-addons-1.28/extensions/compat_xtables.c
+--- xtables-addons-1.28-pre2.6.35-checkversion/extensions/compat_xtables.c 2010-07-24 11:33:11.000000000 +0200
++++ xtables-addons-1.28/extensions/compat_xtables.c 2010-09-01 09:23:44.000000000 +0200
+@@ -105,7 +105,7 @@ static bool xtnu_match_check(const char
+ return false;
+ if (nm->checkentry == NULL)
+ return true;
+- return nm->checkentry(&local_par);
++ return nm->checkentry(&local_par) == 0 ? true : false;
+ }
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28) && \
+@@ -313,7 +313,7 @@ static bool xtnu_target_check(const char
+ if (nt->checkentry == NULL)
+ /* this is valid, just like if there was no function */
+ return true;
+- return nt->checkentry(&local_par);
++ return nt->checkentry(&local_par) == 0 ? true : false;
+ }
+ #endif
+
%define _enable_debug_packages 0
%endif
-%define rel 8
+%define rel 9
Summary: Extensible packet filtering system && extensible NAT system
Summary(pl.UTF-8): System filtrowania pakietów oraz system translacji adresów (NAT)
Summary(pt_BR.UTF-8): Ferramenta para controlar a filtragem de pacotes no kernel-2.6.x
# Source0-md5: b94fe23370a1294b985e9a06a0f9d129
URL: http://xtables-addons.sourceforge.net/
Patch0: kernelrelease.patch
+Patch1: %{name}-pre2.6.35-checkentry.patch
BuildRequires: autoconf
BuildRequires: automake >= 1.11
BuildRequires: iptables-devel >= 1.4.3
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%{__sed} -i -e 's#build_ipset=m#build_ipset=n#' mconfig