3 %bcond_without doc # without documentation (HOWTOS) which needed TeX
4 %bcond_without dist_kernel # without distribution kernel
6 %define netfilter_snap 20040629
7 %define iptables_version 1.2.11
8 %define llh_version 7:2.6.7.0-2
9 %define name6 ip6tables
11 Summary: Extensible packet filtering system && extensible NAT system
12 Summary(pl): System filtrowania pakietów oraz system translacji adresów (NAT)
13 Summary(pt_BR): Ferramenta para controlar a filtragem de pacotes no kernel-2.4.x
14 Summary(ru): õÔÉÌÉÔÙ ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÎÙÍÉ ÆÉÌØÔÒÁÍÉ ÑÄÒÁ Linux
15 Summary(uk): õÔÉ̦ÔÉ ÄÌÑ ËÅÒÕ×ÁÎÎÑ ÐÁËÅÔÎÉÍÉ Æ¦ÌØÔÒÁÍÉ ÑÄÒÁ Linux
16 Summary(zh_CN): LinuxÄں˰ü¹ýÂ˹ÜÀí¹¤¾ß
18 %if %{netfilter_snap} != 0
19 Version: %{iptables_version}_%{netfilter_snap}
21 Version: %{iptables_version}
24 Release: %{_rel}@%{_kernel_ver_str}
26 Group: Networking/Daemons
27 URL: http://www.netfilter.org/
28 Vendor: Netfilter mailing list <netfilter@lists.samba.org>
29 %if %{netfilter_snap} != 0
30 Source0: %{name}-%{iptables_version}_%{netfilter_snap}.tar.bz2
32 Source0: http://www.netfilter.org/files/%{name}-%{version}.tar.bz2
34 Source1: cvs://cvs.samba.org/netfilter/%{name}-howtos.tar.bz2
35 # Source1-md5: 2ed2b452daefe70ededd75dc0061fd07
37 Source3: %{name6}.init
38 Patch0: %{name}-netfilter.patch
39 Patch1: %{name}-Makefile.patch
40 Patch2: %{name}-1.2.9-ipt_imq.patch
41 Patch3: %{name}-libipt_time.patch
43 BuildRequires: sgml-tools
45 BuildRequires: tetex-dvips
46 BuildRequires: tetex-latex
47 BuildRequires: tetex-format-latex
48 BuildRequires: tetex-tex-babel
49 BuildRequires: sed >= 4.0
51 %if %{with dist_kernel} && %{netfilter_snap} != 0
52 BuildRequires: kernel-headers(netfilter) = %{netfilter_snap}
53 BuildRequires: kernel-source
54 Requires: kernel(netfilter) = %{netfilter_snap}
56 BuildRequires: linux-libc-headers >= %{llh_version}
57 BuildConflicts: kernel-headers < 2.3.0
58 Provides: firewall-userspace-tool
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 An extensible NAT system, and an extensible packet filtering system.
65 Replacement of ipchains in 2.4 kernels.
68 Wydajny system translacji adresów (NAT) oraz system filtrowania
69 pakietów. Zamiennik ipchains w j±drach 2.4
72 Esta é a ferramenta que controla o código de filtragem de pacotes do
73 kernel 2.4, obsoletando ipchains. Com esta ferramenta você pode
74 configurar filtros de pacotes, NAT, mascaramento (masquerading),
75 regras dinâmicas (stateful inspection), etc.
78 iptables ÕÐÒÁ×ÌÑÀÔ ËÏÄÏÍ ÆÉÌØÔÒÁÃÉÉ ÓÅÔÅ×ÙÈ ÐÁËÅÔÏ× × ÑÄÒÅ Linux. ïÎÉ
79 ÐÏÚ×ÏÌÑÀÔ ×ÁÍ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÍÅÖÓÅÔÅ×ÙÅ ÜËÒÁÎÙ (firewalls) É IP
83 iptables ÕÐÒÁ×ÌÑÀÔØ ËÏÄÏÍ Æ¦ÌØÔÒÁæ§ ÐÁËÅÔ¦× ÍÅÒÅÖ¦ × ÑÄÒ¦ Linux. ÷ÏÎÉ
84 ÄÏÚ×ÏÌÑÀÔØ ×ÁÍ ×ÓÔÁÎÏ×ÌÀ×ÁÔÉ Í¦ÖÍÅÒÅÖÅצ ÅËÒÁÎÉ (firewalls) ÔÁ IP
88 Summary: Libraries and headers for developing iptables extensions
89 Summary(pl): Biblioteki i nag³ówki do tworzenia rozszerzeñ iptables
90 Group: Development/Libraries
91 Requires: %{name} = %{version}-%{release}
94 Libraries and headers for developing iptables extensions.
96 %description devel -l pl
97 Biblioteki i pliki nag³ówkowe niezbêdne do tworzenia rozszerzeñ dla
101 Summary: Iptables init (RedHat style)
102 Summary(pl): Iptables init (w stylu RedHata)
103 Group: Networking/Admin
105 Requires(post,preun): /sbin/chkconfig
107 Obsoletes: firewall-init
108 Obsoletes: firewall-init-ipchains
111 Iptables-init is meant to provide an alternate way than firewall-init
112 to start and stop packet filtering through iptables(8).
114 %description init -l pl
115 Iptables-init ma na celu udostêpnienie alternatywnego w stosunku do
116 firewall-init sposobu w³±czania i wy³±czania filtrów IP j±dra poprzez
127 #%rm -f extensions/.set-test
129 chmod 755 extensions/.*-test*
132 %{__make} all experimental \
134 COPT_FLAGS="%{rpmcflags} -D%{!?debug:N}DEBUG" \
135 KERNEL_DIR="%{_kernelsrcdir}" \
139 %{__make} -C iptables-howtos
140 sed -i 's:$(HTML_HOWTOS)::g; s:$(PSUS_HOWTOS)::g' iptables-howtos/Makefile
144 rm -rf $RPM_BUILD_ROOT
145 install -d $RPM_BUILD_ROOT{%{_initrddir},%{_includedir},%{_libdir},%{_mandir}/man3,}
147 echo ".so iptables-save.8" > %{name6}-save.8
148 echo ".so iptables-restore.8" > %{name6}-restore.8
150 %{__make} install install-experimental \
151 DESTDIR=$RPM_BUILD_ROOT \
156 echo ".so iptables.8" > $RPM_BUILD_ROOT%{_mandir}/man8/%{name6}.8
159 cp -a include/{lib*,ip*} $RPM_BUILD_ROOT%{_includedir}
160 install lib*/lib*.a $RPM_BUILD_ROOT%{_libdir}
161 install libipq/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
163 install %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/%{name}
164 install %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/%{name6}
167 rm -rf $RPM_BUILD_ROOT
170 /sbin/chkconfig --add %{name}
171 /sbin/chkconfig --add %{name6}
174 if [ "$1" = "0" ]; then
175 /sbin/chkconfig --del %{name}
176 /sbin/chkconfig --del %{name6}
180 %defattr(644,root,root,755)
181 %{?with_doc:%doc iptables-howtos/{NAT,networking-concepts,packet-filtering}-HOWTO*}
182 %attr(755,root,root) %{_sbindir}/*
183 %dir %{_libdir}/iptables
184 %attr(755,root,root) %{_libdir}/iptables/*.so
188 %defattr(644,root,root,755)
189 %{?with_doc:%doc iptables-howtos/netfilter-hacking-HOWTO*}
192 %dir %{_includedir}/libip*
193 %{_includedir}/libip*/*.h
197 %defattr(644,root,root,755)
198 %attr(754,root,root) %{_initrddir}/*