X-Git-Url: http://git.pld-linux.org/?p=packages%2Fxtables-addons.git;a=blobdiff_plain;f=xtables-addons.spec;h=4b6cec18f3ab2810102c52db4141a7690e168214;hp=ef5524967ea6d7d8d72605f0c12675f2d97e67ae;hb=cf4c41045fe2144e5bcdb157b7a25840e273250a;hpb=69b400eae2a2647519124fedc7ac10ff0427737b diff --git a/xtables-addons.spec b/xtables-addons.spec index ef55249..4b6cec1 100644 --- a/xtables-addons.spec +++ b/xtables-addons.spec @@ -1,9 +1,11 @@ # +# UPDATE WARNING: xtables-addons 2.0 support only kernels 3.7+ +# +# # Conditional build: %bcond_without dist_kernel # without distribution kernel %bcond_without kernel # don't build kernel modules %bcond_without userspace # don't build userspace tools -%bcond_with ipset # include IPSET (6.x) %if %{without kernel} %undefine with_dist_kernel @@ -16,32 +18,28 @@ %define _enable_debug_packages 0 %endif -%define rel 3 +%define rel 5 %define pname xtables-addons Summary: Additional extensions for xtables packet filtering system Summary(pl.UTF-8): Dodatkowe rozszerzenia do systemu filtrowania pakietów xtables Name: %{pname}%{_alt_kernel} -Version: 1.42 +Version: 2.2 Release: %{rel} License: GPL v2 Group: Networking/Admin Source0: http://downloads.sourceforge.net/xtables-addons/%{pname}-%{version}.tar.xz -# Source0-md5: 7c996a0400667b57ab4fb53a013ae742 +# Source0-md5: bc60abaa3cacc907f646ec6f873054f5 URL: http://xtables-addons.sourceforge.net/ BuildRequires: autoconf >= 2.65 BuildRequires: automake >= 1:1.11 BuildRequires: iptables-devel >= 1.4.5 -%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.29} +%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:3.7} BuildRequires: libtool BuildRequires: pkgconfig >= 0.9.0 BuildRequires: rpmbuild(macros) >= 1.379 BuildRequires: tar >= 1.22 BuildRequires: xz Requires: iptables >= 1.4.5 -%if %{with ipset} -Provides: ipset = 6.7 -Obsoletes: ipset -%endif Obsoletes: iptables-ipp2p BuildRoot: %{tmpdir}/%{pname}-%{version}-root-%(id -u -n) @@ -85,10 +83,6 @@ Moduły jądra dla rozszerzeń z pakietu xtables-addons. %prep %setup -q -n %{pname}-%{version} -%if %{without ipset} -%{__sed} -i -e 's#build_ipset6=m#build_ipset6=#' mconfig -%endif - %build %{__libtoolize} %{__aclocal} @@ -112,19 +106,19 @@ srcdir=${PWD:-$(pwd)} rm -rf $RPM_BUILD_ROOT %if %{with kernel} -install -d $RPM_BUILD_ROOT{/etc/modprobe.d,/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter} -cd extensions -install iptable_rawpost.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/ipv4/netfilter -%install_kernel_modules -m compat_xtables -d kernel/net/netfilter -install -p {ACCOUNT/,pknock/,}xt_*.ko $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/net/netfilter -cd .. +%install_kernel_modules -m extensions/iptable_rawpost -d kernel/net/ipv4/netfilter +for drv in extensions/compat_xtables.ko extensions/{ACCOUNT/,pknock/,}xt_*.ko ; do +%install_kernel_modules -m ${drv%.ko} -d kernel/net/netfilter +done +install -d $RPM_BUILD_ROOT/etc/modprobe.d cat <<'EOF' > $RPM_BUILD_ROOT/etc/modprobe.d/xt_sysrq.conf # Set password at modprobe time. This file is secure if properly guarded, # i.e only readable by root. #options xt_SYSRQ password=cookies -# The hash algorithm can also be specified as a module option, for example, to use SHA-256 instead of the default SHA-1: +# The hash algorithm can also be specified as a module option, for example, +# to use SHA-256 instead of the default SHA-1: #options xt_SYSRQ hash=sha256 EOF %endif @@ -136,9 +130,6 @@ EOF DESTDIR=$RPM_BUILD_ROOT %{__rm} $RPM_BUILD_ROOT%{_libdir}/libxt_ACCOUNT_cl.{la,so} -%if %{with ipset} -%{__rm} $RPM_BUILD_ROOT%{_libdir}/libipset.{la,so} -%endif %endif %clean @@ -163,12 +154,6 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/xtables/libxt_*.so %{_mandir}/man8/iptaccount.8* %{_mandir}/man8/xtables-addons.8* -%if %{with ipset} -%attr(755,root,root) %{_sbindir}/ipset -%attr(755,root,root) %{_libdir}/libipset.so.*.*.* -%attr(755,root,root) %ghost %{_libdir}/libipset.so.1 -%{_mandir}/man8/ipset.8* -%endif %endif %if %{with kernel}