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