Name: xtables-addons Summary: Extensions targets and matches for iptables Version: 1.47.1 Release: 3.80%{?dist}.art # The entire source code is GPLv2 except ACCOUNT/libxt_ACCOUNT_cl.* which is LGPLv2 License: GPLv2 and LGPLv2 Group: System Environment/Base URL: http://xtables-addons.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz Source1: ipset.init Source2: ipset-config BuildRequires: iptables-devel >= 1.4.5 BuildRequires: autoconf automake libtool Provides: %{name}-kmod-common = %{version} Requires: %{name}-kmod >= %{version} %if 0%{?el6} Requires: ipset >= 6.11 Requires(post): chkconfig Requires(preun): chkconfig # This is for /sbin/service Requires(preun): initscripts Requires(postun): initscripts %endif Obsoletes: %{name}-devel < 1.27-1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Xtables-addons provides extra modules for iptables not present in the kernel, and is the successor of patch-o-matic. Extensions includes new targets like TEE, TARPIT, CHAOS, or modules like geoip, ipset, and account. This package provides the userspace libraries for iptables to use extensions in the %{name}-kmod package. You must also install the %{name}-kmod package. %prep %setup -q #./autogen.sh if [ ! -e /%{_lib}/xtables/libxt_CHECKSUM.so ]; then sed -i 's/build_CHECKSUM=/build_CHECKSUM=m/' mconfig fi if [ ! -e /%{_lib}/xtables/libxt_TEE.so ]; then sed -i 's/build_TEE=/build_TEE=m/' mconfig fi sed -i 's/build_ipset6=/build_ipset6=m/' mconfig #sed -i 's/1.10b/1.10.1/' configure.ac %build #aclocal %configure --without-kbuild make V=1 %{?_smp_mflags} %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install # We add xt_geoip database scripts manually rm -rf %{buildroot}%{_libexecdir} rm -f geoip/{Makefile*,.gitignore} chmod 0644 geoip/* # fix for EL #if [ -d %{buildroot}/lib64/xtables ]; then # mv %{buildroot}/lib64/xtables %{buildroot}%{_libdir} # rm -rf %{buildroot}/lib64 #fi #if [ -d %{buildroot}/lib/xtables ]; then # mv %{buildroot}/lib/xtables %{buildroot}%{_libdir} # rm -rf %{buildroot}/lib #fi # There is no -devel package. So no need for these files rm -f %{buildroot}%{_libdir}/*.{la,so} %if 0%{?el6} # install init scripts and configuration files install -D -pm 0755 %{SOURCE1} %{buildroot}/etc/init.d/ipset install -D -pm 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/ipset-config %endif %post /sbin/ldconfig %if 0%{?el6} /sbin/chkconfig --add ipset %preun if [ $1 = 0 ] ; then /sbin/service ipset stop >/dev/null 2>&1 /sbin/chkconfig --del ipset fi %postun /sbin/ldconfig if [ "$1" -ge "1" ] ; then /sbin/service ipset condrestart >/dev/null 2>&1 || : fi %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE README doc/* geoip %if 0%{?el6} %attr(0755,root,root) /etc/init.d/* %config(noreplace) %{_sysconfdir}/sysconfig/* %endif /%{_lib}/xtables/*.so /%{_libdir}/*.so.* %{_sbindir}/iptaccount %{_mandir}/man?/* %changelog * Mon Nov 05 2012 Support - 1.47.1-1 - pdate to 1.47.1 - Add support for ASL EL5 and EL6 platforms * Wed Oct 03 2012 Nicolas Chauvet - 1.46-1 - Update to 1.46 * Tue Jul 31 2012 Nicolas Chauvet - 1.45-1 - Update to 1.45 * Thu Jun 14 2012 Nicolas Chauvet - 1.42-3 - Fix ipset path in F-16 and later * Tue Jun 05 2012 Nicolas Chauvet - 1.42-2 - Fix for UsrMove - rfbz#2360 - Fix Conflict with ipset - rfbz#2201 - Add Requires ipset >= 6.11 - rfbz#2226 * Thu Apr 12 2012 Nicolas Chauvet - 1.42-1 - Update to 1.42 * Tue Jan 24 2012 Nicolas Chauvet - 1.41-1 - Update to 1.41 * Thu Nov 17 2011 Nicolas Chauvet - 1.39-1 - Update to 1.39 * Wed Oct 27 2010 Chen Lei - 1.30-1 - update to 1.30 * Sun Jul 25 2010 Chen Lei - 1.28-1 - update to 1.28 * Mon Jun 28 2010 Chen Lei - 1.27-2 - rebuild for kernel 2.6.35 * Mon May 31 2010 Chen Lei - 1.27-1 - update to 1.27 * Sun May 02 2010 Chen Lei - 1.26-1 - update to 1.26 * Mon Apr 26 2010 Chen Lei - 1.25-1 - update to 1.25 * Sun Apr 25 2010 Thorsten Leemhuis - 1.24-2 - rebuilt * Thu Mar 18 2010 Chen Lei - 1.24-1 - initial rpm build