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