]>
Commit | Line | Data |
---|---|---|
0e79507b | 1 | # |
f0f3ff9d | 2 | # TODO: |
c0ae8513 | 3 | # - update BR to real required llh version |
11e85ced | 4 | # - check if kernel-headers are still required to properly build iptabels for dist kernel |
83394586 | 5 | # - fix makefile (-D_UNKNOWN_KERNEL_POINTER_SIZE issue) |
75dcc0ed | 6 | # - owner needs rewrite to xt |
f0f3ff9d | 7 | # |
0e79507b | 8 | # Conditional build: |
c322322e TP |
9 | %bcond_without doc # without documentation (HOWTOS) which needed TeX |
10 | %bcond_without dist_kernel # without distribution kernel | |
c0ae8513 | 11 | %bcond_with vserver # build xt_owner module for non-dist kernel with vserver support |
d67a1056 | 12 | %bcond_with batch # build iptables-batch |
a0c2c091 | 13 | %bcond_with static # build static libraries, no dynamic modules (all linked into binaries) |
c0ae8513 | 14 | %bcond_with ipt_IPV4OPTSSTRIP # enable ipt_IPV4OPTSSTRIP for non-dist kernel |
11e85ced JB |
15 | %bcond_with ipt_rpc # enable ipt_rpc for non-dist kernel |
16 | %bcond_with xt_layer7 # enable xt_layer7 for non-dist kernel | |
c0ae8513 JB |
17 | %bcond_with usekernelsrc # include kernel headers from %{_kernelsrcdir} |
18 | ||
19 | %if %{with dist_kernel} | |
20 | %define with_ipt_IPV4OPTSSTRIP 1 | |
21 | %define with_ipt_rpc 1 | |
22 | %define with_xt_layer7 1 | |
23 | %define with_vserver 1 | |
c0ae8513 | 24 | %endif |
655beef5 | 25 | |
740f0f65 | 26 | %define name6 ip6tables |
0e79507b | 27 | Summary: Extensible packet filtering system && extensible NAT system |
e8c37038 ER |
28 | Summary(pl.UTF-8): System filtrowania pakietów oraz system translacji adresów (NAT) |
29 | Summary(pt_BR.UTF-8): Ferramenta para controlar a filtragem de pacotes no kernel-2.6.x | |
30 | Summary(ru.UTF-8): Утилиты для управления пакетными фильтрами ядра Linux | |
31 | Summary(uk.UTF-8): Утиліти для керування пакетними фільтрами ядра Linux | |
32 | Summary(zh_CN.UTF-8): Linux内核包过滤管理工具 | |
0e79507b | 33 | Name: iptables |
01369ac8 | 34 | Version: 1.4.20 |
8c899943 | 35 | Release: 1 |
a0c2c091 | 36 | License: GPL v2 |
07594664 | 37 | Group: Networking/Admin |
78e5603d | 38 | Source0: ftp://ftp.netfilter.org/pub/iptables/%{name}-%{version}.tar.bz2 |
01369ac8 | 39 | # Source0-md5: 387b92d3efcf4f07fe31c3bf0f1d18f5 |
0e79507b PS |
40 | Source1: cvs://cvs.samba.org/netfilter/%{name}-howtos.tar.bz2 |
41 | # Source1-md5: 2ed2b452daefe70ededd75dc0061fd07 | |
f17e2be4 | 42 | Source2: %{name}.init |
43 | Source3: %{name6}.init | |
90953ac7 ER |
44 | Source4: %{name}.upstart |
45 | Source5: %{name6}.upstart | |
a94df067 JR |
46 | Source6: %{name}-config |
47 | Source7: %{name6}-config | |
63a6c82f JR |
48 | Source8: %{name}.service |
49 | Source9: %{name6}.service | |
c0ae8513 | 50 | # --- GENERAL CHANGES (patches<10): |
d973e24a JB |
51 | Patch0: %{name}-man.patch |
52 | # additional utils; off by default | |
53 | Patch1: %{name}-batch.patch | |
4e86922f | 54 | Patch2: no-libiptc.patch |
534f47dd | 55 | Patch3: %{name}-aligned_u64.patch |
c0ae8513 | 56 | # --- ADDITIONAL/CHANGED EXTENSIONS: |
d973e24a | 57 | # just ipt_IPV4OPTSSTRIP now |
c0ae8513 | 58 | Patch10: %{name}-20070806.patch |
a0c2c091 | 59 | # xt_layer7; almost based on iptables-1.4-for-kernel-2.6.20forward-layer7-2.18.patch |
92b2e10a | 60 | # http://downloads.sourceforge.net/l7-filter/netfilter-layer7-v2.18.tar.gz |
d973e24a | 61 | Patch11: %{name}-layer7.patch |
a0c2c091 | 62 | # ipt_rpc |
d973e24a | 63 | Patch12: %{name}-old-1.3.7.patch |
efecc54e | 64 | # xt_IMQ; http://linuximq.net/patchs/iptables-1.4.12-IMQ-test4.diff |
d973e24a | 65 | Patch13: %{name}-imq.patch |
92b2e10a | 66 | # enhances ipt_owner/ip6t_owner; http://people.linux-vserver.org/~dhozac/p/m/iptables-1.3.5-owner-xid.patch (currently disabled, needs update for xt_owner) |
d973e24a JB |
67 | Patch14: %{name}-1.3.5-owner-xid.patch |
68 | # adjusts xt_owner for vserver-enabled kernel | |
69 | Patch15: %{name}-owner-struct-size-vs.patch | |
70 | # ipt_stealth; currently disabled (broken, see below) | |
71 | Patch16: %{name}-stealth.patch | |
c588d6c8 | 72 | URL: http://www.netfilter.org/ |
d973e24a | 73 | BuildRequires: autoconf >= 2.50 |
6dc7a739 | 74 | BuildRequires: automake |
92a25fae | 75 | BuildRequires: groff |
01369ac8 | 76 | BuildRequires: libnetfilter_conntrack-devel >= 1.0.4 |
a0c2c091 | 77 | BuildRequires: libnfnetlink-devel >= 1.0 |
78e5603d | 78 | BuildRequires: libtool |
d973e24a | 79 | BuildRequires: pkgconfig >= 1:0.9.0 |
63a6c82f | 80 | BuildRequires: rpmbuild(macros) >= 1.647 |
0e79507b | 81 | %if %{with doc} |
c7a0fe01 | 82 | BuildRequires: sed >= 4.0 |
0e79507b PS |
83 | BuildRequires: sgml-tools |
84 | BuildRequires: sgmls | |
c322322e | 85 | BuildRequires: tetex-dvips |
6d30ffc5 | 86 | BuildRequires: tetex-format-latex |
c588d6c8 | 87 | BuildRequires: tetex-latex |
0e79507b | 88 | BuildRequires: tetex-tex-babel |
90b6f30d | 89 | BuildRequires: texlive-fonts-cmsuper |
122b99b3 | 90 | BuildRequires: texlive-fonts-jknappen |
199610f3 | 91 | %endif |
c0ae8513 | 92 | %if %{with dist_kernel} |
c0ae8513 | 93 | BuildRequires: kernel%{_alt_kernel}-headers(netfilter) |
0e79507b | 94 | %endif |
c0ae8513 | 95 | BuildRequires: linux-libc-headers >= 7:2.6.22.1 |
d973e24a | 96 | Requires: %{name}-libs = %{version}-%{release} |
ce449f84 | 97 | Requires: libnetfilter_conntrack >= 1.0.4 |
d973e24a | 98 | Requires: libnfnetlink >= 1.0 |
c322322e | 99 | Provides: firewall-userspace-tool |
0e79507b | 100 | Obsoletes: ipchains |
e51026eb | 101 | Obsoletes: iptables24-compat |
c7a0fe01 | 102 | Obsoletes: netfilter |
149c216c | 103 | Conflicts: xtables-addons < 1.25 |
0e79507b PS |
104 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
105 | ||
106 | %description | |
107 | An extensible NAT system, and an extensible packet filtering system. | |
cc6a4371 | 108 | Replacement of ipchains in 2.4 and higher kernels. |
0e79507b | 109 | |
30bd20eb JR |
110 | %description -l pl.UTF-8 |
111 | Wydajny system translacji adresów (NAT) oraz system filtrowania | |
112 | pakietów. Zamiennik ipchains w jądrach 2.4 i nowszych. | |
0e79507b | 113 | |
30bd20eb JR |
114 | %description -l pt_BR.UTF-8 |
115 | Esta é a ferramenta que controla o código de filtragem de pacotes do | |
116 | kernel 2.4, obsoletando ipchains. Com esta ferramenta você pode | |
0e79507b | 117 | configurar filtros de pacotes, NAT, mascaramento (masquerading), |
30bd20eb | 118 | regras dinâmicas (stateful inspection), etc. |
0e79507b | 119 | |
30bd20eb JR |
120 | %description -l ru.UTF-8 |
121 | iptables управляют кодом фильтрации сетевых пакетов в ядре Linux. Они | |
122 | позволяют вам устанавливать межсетевые экраны (firewalls) и IP | |
123 | маскарадинг, и т.п. | |
0e79507b | 124 | |
30bd20eb JR |
125 | %description -l uk.UTF-8 |
126 | iptables управляють кодом фільтрації пакетів мережі в ядрі Linux. Вони | |
127 | дозволяють вам встановлювати міжмережеві екрани (firewalls) та IP | |
128 | маскарадинг, тощо. | |
0e79507b | 129 | |
dfc0441a AM |
130 | %package libs |
131 | Summary: iptables libraries | |
132 | Summary(pl.UTF-8): Biblioteki iptables | |
e4e1bc3c | 133 | Group: Libraries |
ae000808 | 134 | Conflicts: iptables < 1.4.3-1 |
dfc0441a AM |
135 | |
136 | %description libs | |
137 | iptables libraries. | |
138 | ||
139 | %description libs -l pl.UTF-8 | |
140 | Biblioteki iptables. | |
141 | ||
0e79507b PS |
142 | %package devel |
143 | Summary: Libraries and headers for developing iptables extensions | |
e8c37038 | 144 | Summary(pl.UTF-8): Biblioteki i nagłówki do tworzenia rozszerzeń iptables |
0e79507b | 145 | Group: Development/Libraries |
dfc0441a | 146 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
e51026eb | 147 | Obsoletes: iptables24-devel |
0e79507b PS |
148 | |
149 | %description devel | |
150 | Libraries and headers for developing iptables extensions. | |
151 | ||
30bd20eb JR |
152 | %description devel -l pl.UTF-8 |
153 | Biblioteki i pliki nagłówkowe niezbędne do tworzenia rozszerzeń dla | |
0e79507b PS |
154 | iptables. |
155 | ||
dfc0441a AM |
156 | %package static |
157 | Summary: Static iptables libraries | |
158 | Summary(pl.UTF-8): Biblioteki statyczne iptables | |
159 | Group: Development/Libraries | |
160 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
161 | ||
162 | %description static | |
163 | Static iptables libraries. | |
164 | ||
dbbdf4ad | 165 | %description static -l pl.UTF-8 |
dfc0441a AM |
166 | Biblioteki statyczne iptables. |
167 | ||
0e79507b PS |
168 | %package init |
169 | Summary: Iptables init (RedHat style) | |
e8c37038 | 170 | Summary(pl.UTF-8): Iptables init (w stylu RedHata) |
0e79507b | 171 | Group: Networking/Admin |
c322322e | 172 | Requires(post,preun): /sbin/chkconfig |
63a6c82f | 173 | Requires(post,preun,postun): systemd-units >= 38 |
c8cf446f | 174 | Requires: %{name} |
655beef5 | 175 | Requires: rc-scripts >= 0.4.3.0 |
63a6c82f | 176 | Requires: systemd-units >= 38 |
0e79507b | 177 | Obsoletes: firewall-init |
52d89633 | 178 | Obsoletes: firewall-init-ipchains |
e51026eb | 179 | Obsoletes: iptables24-init |
0e79507b PS |
180 | |
181 | %description init | |
182 | Iptables-init is meant to provide an alternate way than firewall-init | |
183 | to start and stop packet filtering through iptables(8). | |
184 | ||
30bd20eb JR |
185 | %description init -l pl.UTF-8 |
186 | Iptables-init ma na celu udostępnienie alternatywnego w stosunku do | |
187 | firewall-init sposobu włączania i wyłączania filtrów IP jądra poprzez | |
0e79507b PS |
188 | iptables(8). |
189 | ||
190 | %prep | |
78e5603d | 191 | %setup -q -a1 |
65ffbe22 | 192 | %patch0 -p1 |
d973e24a | 193 | %if %{with batch} |
65ffbe22 | 194 | %patch1 -p1 |
93ad9851 | 195 | %endif |
4e86922f | 196 | %patch2 -p1 |
534f47dd | 197 | %patch3 -p1 |
e803115b | 198 | |
c0ae8513 JB |
199 | %{?with_ipt_IPV4OPTSSTRIP:%patch10 -p1} |
200 | %{?with_xt_layer7:%patch11 -p1} | |
201 | %{?with_ipt_rpc:%patch12 -p1} | |
efecc54e | 202 | %patch13 -p1 |
d973e24a JB |
203 | %if %{with vserver} |
204 | #patch14 -p1 | |
205 | %patch15 -p1 | |
dfc0441a | 206 | %endif |
d973e24a JB |
207 | # builds but init() api is broken, see warnings |
208 | #patch16 -p1 | |
6c13dbc4 | 209 | |
0e79507b | 210 | %build |
78e5603d | 211 | %{__libtoolize} |
0a44bfb5 | 212 | %{__aclocal} -I m4 |
03ece50a | 213 | %{__autoconf} |
c0ae8513 | 214 | %{__autoheader} |
6dc7a739 | 215 | %{__automake} |
216 | %configure \ | |
b0abf64e | 217 | CFLAGS="%{rpmcflags} %{rpmcppflags} -D%{!?debug:N}DEBUG" \ |
c0ae8513 | 218 | %{?with_usekernelsrc:--with-kernel=%{_kernelsrcdir}} \ |
6dc7a739 | 219 | --enable-libipq \ |
a0c2c091 | 220 | %{?with_static:--enable-static} |
6dc7a739 | 221 | |
a0c2c091 JB |
222 | %{__make} all \ |
223 | V=1 | |
0e79507b | 224 | |
199610f3 | 225 | %if %{with doc} |
2958d7d0 | 226 | %{__make} -j1 -C iptables-howtos |
199610f3 PG |
227 | sed -i 's:$(HTML_HOWTOS)::g; s:$(PSUS_HOWTOS)::g' iptables-howtos/Makefile |
228 | %endif | |
0e79507b PS |
229 | |
230 | %install | |
231 | rm -rf $RPM_BUILD_ROOT | |
a94df067 | 232 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} \ |
63a6c82f JR |
233 | $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_mandir}/man3} \ |
234 | $RPM_BUILD_ROOT%{systemdunitdir} | |
0e79507b | 235 | |
6dc7a739 | 236 | %{__make} install \ |
0e79507b PS |
237 | DESTDIR=$RPM_BUILD_ROOT \ |
238 | BINDIR=%{_sbindir} \ | |
239 | MANDIR=%{_mandir} \ | |
240 | LIBDIR=%{_libdir} | |
241 | ||
f9caff1e JB |
242 | # upstream solution with empty library with two DT_NEEDED entries doesn't work |
243 | # with PLD's default LDFLAGS (--as-needed --no-copy-dt-needed-entries); | |
244 | # use ld script instead (see no-libiptc.patch for source) | |
245 | cp -p libiptc/libiptc.ld $RPM_BUILD_ROOT%{_libdir}/libiptc.so | |
246 | ||
90953ac7 ER |
247 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
248 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name6} | |
249 | install -d $RPM_BUILD_ROOT/etc/init | |
250 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/init/%{name}.conf | |
251 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/init/%{name6}.conf | |
c322322e | 252 | |
a94df067 JR |
253 | install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-config |
254 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/%{name6}-config | |
255 | ||
63a6c82f JR |
256 | install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service |
257 | install -p %{SOURCE9} $RPM_BUILD_ROOT%{systemdunitdir}/%{name6}.service | |
258 | ||
0e79507b PS |
259 | %clean |
260 | rm -rf $RPM_BUILD_ROOT | |
261 | ||
a0c2c091 JB |
262 | %post libs -p /sbin/ldconfig |
263 | %postun libs -p /sbin/ldconfig | |
dfc0441a | 264 | |
0e79507b PS |
265 | %post init |
266 | /sbin/chkconfig --add %{name} | |
740f0f65 | 267 | /sbin/chkconfig --add %{name6} |
63a6c82f | 268 | %systemd_post %{name}.service %{name6}.service |
0e79507b PS |
269 | |
270 | %preun init | |
271 | if [ "$1" = "0" ]; then | |
272 | /sbin/chkconfig --del %{name} | |
740f0f65 | 273 | /sbin/chkconfig --del %{name6} |
0e79507b | 274 | fi |
63a6c82f JR |
275 | %systemd_preun %{name}.service %{name6}.service |
276 | ||
277 | %postun init | |
278 | %systemd_reload | |
279 | ||
e6516b13 | 280 | %triggerpostun init -- %{name}-init < 1.4.13-2 |
63a6c82f | 281 | %systemd_trigger %{name}.service %{name6}.service |
0e79507b PS |
282 | |
283 | %files | |
284 | %defattr(644,root,root,755) | |
0e79507b | 285 | %{?with_doc:%doc iptables-howtos/{NAT,networking-concepts,packet-filtering}-HOWTO*} |
6dc7a739 | 286 | %attr(755,root,root) %{_bindir}/iptables-xml |
c7a0fe01 ER |
287 | %attr(755,root,root) %{_sbindir}/iptables |
288 | %attr(755,root,root) %{_sbindir}/iptables-restore | |
289 | %attr(755,root,root) %{_sbindir}/iptables-save | |
c7a0fe01 ER |
290 | %attr(755,root,root) %{_sbindir}/ip6tables |
291 | %attr(755,root,root) %{_sbindir}/ip6tables-restore | |
292 | %attr(755,root,root) %{_sbindir}/ip6tables-save | |
dfc0441a AM |
293 | %if %{with batch} |
294 | %attr(755,root,root) %{_sbindir}/iptables-batch | |
295 | %attr(755,root,root) %{_sbindir}/ip6tables-batch | |
296 | %endif | |
d67a1056 | 297 | %attr(755,root,root) %{_sbindir}/nfnl_osf |
9b1e8e39 | 298 | %attr(755,root,root) %{_sbindir}/xtables-multi |
d67a1056 | 299 | %{_datadir}/xtables |
a0c2c091 JB |
300 | %dir %{_libdir}/xtables |
301 | %attr(755,root,root) %{_libdir}/xtables/libip6t_HL.so | |
302 | %attr(755,root,root) %{_libdir}/xtables/libip6t_LOG.so | |
303 | %attr(755,root,root) %{_libdir}/xtables/libip6t_REJECT.so | |
6dc7a739 | 304 | %attr(755,root,root) %{_libdir}/xtables/libip6t_ah.so |
305 | %attr(755,root,root) %{_libdir}/xtables/libip6t_dst.so | |
306 | %attr(755,root,root) %{_libdir}/xtables/libip6t_eui64.so | |
307 | %attr(755,root,root) %{_libdir}/xtables/libip6t_frag.so | |
308 | %attr(755,root,root) %{_libdir}/xtables/libip6t_hbh.so | |
309 | %attr(755,root,root) %{_libdir}/xtables/libip6t_hl.so | |
6dc7a739 | 310 | %attr(755,root,root) %{_libdir}/xtables/libip6t_icmp6.so |
6dc7a739 | 311 | %attr(755,root,root) %{_libdir}/xtables/libip6t_ipv6header.so |
6dc7a739 | 312 | %attr(755,root,root) %{_libdir}/xtables/libip6t_mh.so |
6dc7a739 | 313 | %attr(755,root,root) %{_libdir}/xtables/libip6t_rt.so |
6dc7a739 | 314 | %attr(755,root,root) %{_libdir}/xtables/libipt_CLUSTERIP.so |
315 | %attr(755,root,root) %{_libdir}/xtables/libipt_DNAT.so | |
6dc7a739 | 316 | %attr(755,root,root) %{_libdir}/xtables/libipt_ECN.so |
6dc7a739 | 317 | %attr(755,root,root) %{_libdir}/xtables/libipt_LOG.so |
318 | %attr(755,root,root) %{_libdir}/xtables/libipt_MASQUERADE.so | |
319 | %attr(755,root,root) %{_libdir}/xtables/libipt_MIRROR.so | |
320 | %attr(755,root,root) %{_libdir}/xtables/libipt_NETMAP.so | |
6dc7a739 | 321 | %attr(755,root,root) %{_libdir}/xtables/libipt_REDIRECT.so |
322 | %attr(755,root,root) %{_libdir}/xtables/libipt_REJECT.so | |
6dc7a739 | 323 | %attr(755,root,root) %{_libdir}/xtables/libipt_SAME.so |
6dc7a739 | 324 | %attr(755,root,root) %{_libdir}/xtables/libipt_SNAT.so |
6dc7a739 | 325 | %attr(755,root,root) %{_libdir}/xtables/libipt_TTL.so |
326 | %attr(755,root,root) %{_libdir}/xtables/libipt_ULOG.so | |
a0c2c091 | 327 | %attr(755,root,root) %{_libdir}/xtables/libipt_ah.so |
a0c2c091 | 328 | %attr(755,root,root) %{_libdir}/xtables/libipt_icmp.so |
a0c2c091 | 329 | %attr(755,root,root) %{_libdir}/xtables/libipt_realm.so |
d973e24a | 330 | # disabled, see above |
a0c2c091 JB |
331 | #%attr(755,root,root) %{_libdir}/xtables/libipt_stealth.so |
332 | %attr(755,root,root) %{_libdir}/xtables/libipt_ttl.so | |
6dc7a739 | 333 | %attr(755,root,root) %{_libdir}/xtables/libipt_unclean.so |
df84948a AM |
334 | %attr(755,root,root) %{_libdir}/xtables/libip6t_DNAT.so |
335 | %attr(755,root,root) %{_libdir}/xtables/libip6t_DNPT.so | |
336 | %attr(755,root,root) %{_libdir}/xtables/libip6t_MASQUERADE.so | |
337 | %attr(755,root,root) %{_libdir}/xtables/libip6t_NETMAP.so | |
338 | %attr(755,root,root) %{_libdir}/xtables/libip6t_REDIRECT.so | |
339 | %attr(755,root,root) %{_libdir}/xtables/libip6t_SNAT.so | |
340 | %attr(755,root,root) %{_libdir}/xtables/libip6t_SNPT.so | |
9b1e8e39 | 341 | %attr(755,root,root) %{_libdir}/xtables/libxt_AUDIT.so |
0a44bfb5 | 342 | %attr(755,root,root) %{_libdir}/xtables/libxt_CHECKSUM.so |
6dc7a739 | 343 | %attr(755,root,root) %{_libdir}/xtables/libxt_CLASSIFY.so |
a0c2c091 JB |
344 | %attr(755,root,root) %{_libdir}/xtables/libxt_CONNMARK.so |
345 | %attr(755,root,root) %{_libdir}/xtables/libxt_CONNSECMARK.so | |
346 | %attr(755,root,root) %{_libdir}/xtables/libxt_CT.so | |
347 | %attr(755,root,root) %{_libdir}/xtables/libxt_DSCP.so | |
2c2ecb60 | 348 | %attr(755,root,root) %{_libdir}/xtables/libxt_HMARK.so |
a0c2c091 JB |
349 | %attr(755,root,root) %{_libdir}/xtables/libxt_IDLETIMER.so |
350 | %attr(755,root,root) %{_libdir}/xtables/libxt_IMQ.so | |
351 | %attr(755,root,root) %{_libdir}/xtables/libxt_LED.so | |
352 | %attr(755,root,root) %{_libdir}/xtables/libxt_MARK.so | |
353 | %attr(755,root,root) %{_libdir}/xtables/libxt_NFLOG.so | |
354 | %attr(755,root,root) %{_libdir}/xtables/libxt_NFQUEUE.so | |
355 | %attr(755,root,root) %{_libdir}/xtables/libxt_NOTRACK.so | |
356 | %attr(755,root,root) %{_libdir}/xtables/libxt_RATEEST.so | |
357 | %attr(755,root,root) %{_libdir}/xtables/libxt_SECMARK.so | |
358 | %attr(755,root,root) %{_libdir}/xtables/libxt_SET.so | |
359 | %attr(755,root,root) %{_libdir}/xtables/libxt_TCPMSS.so | |
360 | %attr(755,root,root) %{_libdir}/xtables/libxt_TCPOPTSTRIP.so | |
361 | %attr(755,root,root) %{_libdir}/xtables/libxt_TEE.so | |
362 | %attr(755,root,root) %{_libdir}/xtables/libxt_TOS.so | |
363 | %attr(755,root,root) %{_libdir}/xtables/libxt_TPROXY.so | |
364 | %attr(755,root,root) %{_libdir}/xtables/libxt_TRACE.so | |
f5742d8d | 365 | %attr(755,root,root) %{_libdir}/xtables/libxt_addrtype.so |
488dc05d | 366 | %attr(755,root,root) %{_libdir}/xtables/libxt_bpf.so |
ab1d9cfc | 367 | %attr(755,root,root) %{_libdir}/xtables/libxt_cluster.so |
6dc7a739 | 368 | %attr(755,root,root) %{_libdir}/xtables/libxt_comment.so |
369 | %attr(755,root,root) %{_libdir}/xtables/libxt_connbytes.so | |
488dc05d | 370 | %attr(755,root,root) %{_libdir}/xtables/libxt_connlabel.so |
6dc7a739 | 371 | %attr(755,root,root) %{_libdir}/xtables/libxt_connlimit.so |
372 | %attr(755,root,root) %{_libdir}/xtables/libxt_connmark.so | |
6dc7a739 | 373 | %attr(755,root,root) %{_libdir}/xtables/libxt_conntrack.so |
0a44bfb5 | 374 | %attr(755,root,root) %{_libdir}/xtables/libxt_cpu.so |
6dc7a739 | 375 | %attr(755,root,root) %{_libdir}/xtables/libxt_dccp.so |
9b1e8e39 | 376 | %attr(755,root,root) %{_libdir}/xtables/libxt_devgroup.so |
6dc7a739 | 377 | %attr(755,root,root) %{_libdir}/xtables/libxt_dscp.so |
f5742d8d | 378 | %attr(755,root,root) %{_libdir}/xtables/libxt_ecn.so |
6dc7a739 | 379 | %attr(755,root,root) %{_libdir}/xtables/libxt_esp.so |
380 | %attr(755,root,root) %{_libdir}/xtables/libxt_hashlimit.so | |
381 | %attr(755,root,root) %{_libdir}/xtables/libxt_helper.so | |
382 | %attr(755,root,root) %{_libdir}/xtables/libxt_iprange.so | |
0a44bfb5 | 383 | %attr(755,root,root) %{_libdir}/xtables/libxt_ipvs.so |
6dc7a739 | 384 | %attr(755,root,root) %{_libdir}/xtables/libxt_length.so |
385 | %attr(755,root,root) %{_libdir}/xtables/libxt_limit.so | |
386 | %attr(755,root,root) %{_libdir}/xtables/libxt_mac.so | |
387 | %attr(755,root,root) %{_libdir}/xtables/libxt_mark.so | |
6dc7a739 | 388 | %attr(755,root,root) %{_libdir}/xtables/libxt_multiport.so |
f5742d8d | 389 | %attr(755,root,root) %{_libdir}/xtables/libxt_nfacct.so |
d67a1056 | 390 | %attr(755,root,root) %{_libdir}/xtables/libxt_osf.so |
a0c2c091 | 391 | %attr(755,root,root) %{_libdir}/xtables/libxt_owner.so |
6dc7a739 | 392 | %attr(755,root,root) %{_libdir}/xtables/libxt_physdev.so |
393 | %attr(755,root,root) %{_libdir}/xtables/libxt_pkttype.so | |
ab1d9cfc | 394 | %attr(755,root,root) %{_libdir}/xtables/libxt_policy.so |
6dc7a739 | 395 | %attr(755,root,root) %{_libdir}/xtables/libxt_quota.so |
75dcc0ed | 396 | %attr(755,root,root) %{_libdir}/xtables/libxt_rateest.so |
a0c2c091 | 397 | %attr(755,root,root) %{_libdir}/xtables/libxt_recent.so |
f5742d8d | 398 | %attr(755,root,root) %{_libdir}/xtables/libxt_rpfilter.so |
6dc7a739 | 399 | %attr(755,root,root) %{_libdir}/xtables/libxt_sctp.so |
ec60ce35 | 400 | %attr(755,root,root) %{_libdir}/xtables/libxt_set.so |
6dc7a739 | 401 | %attr(755,root,root) %{_libdir}/xtables/libxt_socket.so |
402 | %attr(755,root,root) %{_libdir}/xtables/libxt_standard.so | |
403 | %attr(755,root,root) %{_libdir}/xtables/libxt_state.so | |
404 | %attr(755,root,root) %{_libdir}/xtables/libxt_statistic.so | |
405 | %attr(755,root,root) %{_libdir}/xtables/libxt_string.so | |
6dc7a739 | 406 | %attr(755,root,root) %{_libdir}/xtables/libxt_tcp.so |
a0c2c091 | 407 | %attr(755,root,root) %{_libdir}/xtables/libxt_tcpmss.so |
6dc7a739 | 408 | %attr(755,root,root) %{_libdir}/xtables/libxt_time.so |
409 | %attr(755,root,root) %{_libdir}/xtables/libxt_tos.so | |
6dc7a739 | 410 | %attr(755,root,root) %{_libdir}/xtables/libxt_u32.so |
411 | %attr(755,root,root) %{_libdir}/xtables/libxt_udp.so | |
c0ae8513 JB |
412 | %{?with_ipt_IPV4OPTSSTRIP:%attr(755,root,root) %{_libdir}/xtables/libipt_IPV4OPTSSTRIP.so} |
413 | %{?with_ipt_rpc:%attr(755,root,root) %{_libdir}/xtables/libipt_rpc.so} | |
414 | %{?with_xt_layer7:%attr(755,root,root) %{_libdir}/xtables/libxt_layer7.so} | |
b4dea9ed | 415 | %{_mandir}/man1/iptables-xml.1* |
a0c2c091 JB |
416 | %{_mandir}/man8/ip6tables.8* |
417 | %{_mandir}/man8/ip6tables-restore.8* | |
418 | %{_mandir}/man8/ip6tables-save.8* | |
419 | %{_mandir}/man8/iptables.8* | |
f59ad890 | 420 | %{_mandir}/man8/iptables-extensions.8* |
a0c2c091 JB |
421 | %{_mandir}/man8/iptables-restore.8* |
422 | %{_mandir}/man8/iptables-save.8* | |
0e79507b | 423 | |
dfc0441a AM |
424 | %files libs |
425 | %defattr(644,root,root,755) | |
a0c2c091 | 426 | %attr(755,root,root) %{_libdir}/libip4tc.so.*.*.* |
d67a1056 | 427 | %attr(755,root,root) %ghost %{_libdir}/libip4tc.so.0 |
a0c2c091 | 428 | %attr(755,root,root) %{_libdir}/libip6tc.so.*.*.* |
d67a1056 | 429 | %attr(755,root,root) %ghost %{_libdir}/libip6tc.so.0 |
a0c2c091 JB |
430 | %attr(755,root,root) %{_libdir}/libipq.so.*.*.* |
431 | %attr(755,root,root) %ghost %{_libdir}/libipq.so.0 | |
a0c2c091 | 432 | %attr(755,root,root) %{_libdir}/libxtables.so.*.*.* |
8c899943 | 433 | %attr(755,root,root) %ghost %{_libdir}/libxtables.so.10 |
dfc0441a | 434 | |
0e79507b PS |
435 | %files devel |
436 | %defattr(644,root,root,755) | |
437 | %{?with_doc:%doc iptables-howtos/netfilter-hacking-HOWTO*} | |
a0c2c091 JB |
438 | %attr(755,root,root) %{_libdir}/libip4tc.so |
439 | %attr(755,root,root) %{_libdir}/libip6tc.so | |
440 | %attr(755,root,root) %{_libdir}/libipq.so | |
f9caff1e | 441 | %attr(755,root,root) %{_libdir}/libiptc.so |
a0c2c091 JB |
442 | %attr(755,root,root) %{_libdir}/libxtables.so |
443 | %{_libdir}/libip4tc.la | |
444 | %{_libdir}/libip6tc.la | |
445 | %{_libdir}/libipq.la | |
a0c2c091 JB |
446 | %{_libdir}/libxtables.la |
447 | %{_includedir}/libipq.h | |
448 | %{_includedir}/xtables.h | |
f59ad890 | 449 | %{_includedir}/xtables-version.h |
dfc0441a | 450 | %{_includedir}/libiptc |
e803115b AM |
451 | %{_pkgconfigdir}/libip4tc.pc |
452 | %{_pkgconfigdir}/libip6tc.pc | |
9a5acd07 | 453 | %{_pkgconfigdir}/libipq.pc |
a0c2c091 JB |
454 | %{_pkgconfigdir}/libiptc.pc |
455 | %{_pkgconfigdir}/xtables.pc | |
456 | %{_mandir}/man3/ipq_*.3* | |
457 | %{_mandir}/man3/libipq.3* | |
0e79507b | 458 | |
d67a1056 | 459 | %if %{with static} |
dfc0441a AM |
460 | %files static |
461 | %defattr(644,root,root,755) | |
a0c2c091 JB |
462 | %{_libdir}/libip4tc.a |
463 | %{_libdir}/libip6tc.a | |
464 | %{_libdir}/libipq.a | |
a0c2c091 | 465 | %{_libdir}/libxtables.a |
d67a1056 | 466 | %endif |
dfc0441a | 467 | |
0e79507b PS |
468 | %files init |
469 | %defattr(644,root,root,755) | |
a94df067 JR |
470 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}-config |
471 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name6}-config | |
c7a0fe01 ER |
472 | %attr(754,root,root) /etc/rc.d/init.d/iptables |
473 | %attr(754,root,root) /etc/rc.d/init.d/ip6tables | |
90953ac7 ER |
474 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name}.conf |
475 | %config(noreplace) %verify(not md5 mtime size) /etc/init/%{name6}.conf | |
63a6c82f JR |
476 | %{systemdunitdir}/%{name}.service |
477 | %{systemdunitdir}/%{name6}.service |