X-Git-Url: http://git.pld-linux.org/?p=packages%2Fxtables-addons.git;a=blobdiff_plain;f=xtables-addons.spec;h=d97e4ade2a63e17ed0d08cc441838960de298620;hp=7ac22a2da1df4ad0ec067bf81343f992bb3638ba;hb=a02ef74ef80c83988c1171495aad5b0b074606b6;hpb=38184c53060d891be202c37e99c878b36e448a7e diff --git a/xtables-addons.spec b/xtables-addons.spec index 7ac22a2..d97e4ad 100644 --- a/xtables-addons.spec +++ b/xtables-addons.spec @@ -18,23 +18,22 @@ %define _enable_debug_packages 0 %endif -%define rel 6 +%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.47.1 +Version: 2.3 Release: %{rel} License: GPL v2 Group: Networking/Admin Source0: http://downloads.sourceforge.net/xtables-addons/%{pname}-%{version}.tar.xz -# Source0-md5: 92b9fc72980f9046622446d451296994 -Patch0: %{pname}-DNETMAP.patch +# Source0-md5: 7d942729c365a549513511061f74c3e3 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.32} +%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:3.7} BuildRequires: libtool BuildRequires: pkgconfig >= 0.9.0 BuildRequires: rpmbuild(macros) >= 1.379 @@ -83,7 +82,6 @@ Moduły jądra dla rozszerzeń z pakietu xtables-addons. %prep %setup -q -n %{pname}-%{version} -%patch0 -p1 %build %{__libtoolize} @@ -108,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