1 | Summary: Packet filtering tool |
---|
2 | Summary(ja): パケットフィルタリングツール |
---|
3 | Name: iptables |
---|
4 | Version: 1.6.2 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: GPL |
---|
7 | Group: System Environment/Base |
---|
8 | URL: http://www.netfilter.org/ |
---|
9 | Source0: ftp://ftp.netfilter.org/pub/iptables/%{name}-%{version}.tar.bz2 |
---|
10 | Source1: iptables.init |
---|
11 | Source2: iptables-config |
---|
12 | # Patch5: iptables-1.4.3.1-cloexec.patch |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: bison flex perl |
---|
16 | BuildRequires: kernel-headers >= 2.4.0 |
---|
17 | BuildRequires: libmnl-devel |
---|
18 | BuildRequires: libnetfilter_conntrack-devel |
---|
19 | BuildRequires: libnfnetlink-devel |
---|
20 | BuildRequires: libnftnl-devel |
---|
21 | BuildRequires: libpcap-devel |
---|
22 | Conflicts : kernel < 2.4.20 |
---|
23 | Requires(post): chkconfig |
---|
24 | Requires(preun): chkconfig |
---|
25 | |
---|
26 | Vendor: Project Vine |
---|
27 | Distribution: Vine Linux |
---|
28 | Packager: daisuke |
---|
29 | |
---|
30 | %description |
---|
31 | The iptables utility controls the network packet filtering code in the |
---|
32 | Linux kernel. If you need to set up firewalls and/or IP masquerading, |
---|
33 | you should install this package. |
---|
34 | |
---|
35 | %description -l ja |
---|
36 | iptables は Linux kernel のネットワークパケットフィルタを制御するための |
---|
37 | ユーティリティです。これを用いることで、ファイアウオールや IP マスカレー |
---|
38 | ディング, NAT などを設定することができます。 |
---|
39 | |
---|
40 | %package devel |
---|
41 | Summary: Libraries, includes, etc. to develop iptables |
---|
42 | Summary(ja): iptables 開発用ライブラリ、ヘッダファイル |
---|
43 | Group: Development/Libraries |
---|
44 | Requires: iptables = %{version}-%{release} |
---|
45 | |
---|
46 | %description devel |
---|
47 | Libraries, include files, etc you can use to develop iptables. |
---|
48 | |
---|
49 | %description devel -l ja |
---|
50 | iptables を用いた開発に使用するライブラリやヘッダファイルです。 |
---|
51 | |
---|
52 | %package ipv6 |
---|
53 | Summary: IPv6 Packet filtering tool |
---|
54 | Summary(ja): IPv6 用パケットフィルタリングツール |
---|
55 | Group: System Environment/Base |
---|
56 | Requires: %{name} = %{version}-%{release} |
---|
57 | Requires(post): chkconfig |
---|
58 | Requires(preun): chkconfig |
---|
59 | |
---|
60 | %description ipv6 |
---|
61 | The iptables package contains IPv6 (the next version of the IP |
---|
62 | protocol) support for iptables. Iptables controls the Linux kernel |
---|
63 | network packet filtering code, allowing you to set up firewalls and IP |
---|
64 | masquerading. |
---|
65 | |
---|
66 | %description ipv6 -l ja |
---|
67 | iptables-ipv6 は iptables で IPv6 をサポートするためのパッケージです。 |
---|
68 | これを用いることで、IPv6 環境におけるファイアウオールや IP マスカレー |
---|
69 | ディング, NAT などを設定することができます。 |
---|
70 | |
---|
71 | %prep |
---|
72 | %setup -q |
---|
73 | # %patch5 -p1 -b .cloexec |
---|
74 | |
---|
75 | %build |
---|
76 | CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ |
---|
77 | ./configure \ |
---|
78 | --enable-devel \ |
---|
79 | --enable-bpf-compiler \ |
---|
80 | --enable-libipq \ |
---|
81 | --prefix=/usr \ |
---|
82 | --bindir=/bin \ |
---|
83 | --sbindir=/sbin \ |
---|
84 | --sysconfdir=/etc \ |
---|
85 | --libdir=%{_libdir} \ |
---|
86 | --libexecdir=/%{_lib} \ |
---|
87 | --with-xtlibdir=/%{_lib}/xtables \ |
---|
88 | --mandir=%{_mandir} \ |
---|
89 | --includedir=%{_includedir} \ |
---|
90 | --with-kernel=/usr \ |
---|
91 | --with-kbuild=/usr \ |
---|
92 | --with-ksource=/usr |
---|
93 | |
---|
94 | # do not use rpath |
---|
95 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
96 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
97 | |
---|
98 | make %{?_smp_mflags} |
---|
99 | |
---|
100 | %install |
---|
101 | rm -rf %{buildroot} |
---|
102 | |
---|
103 | make install DESTDIR=%{buildroot} |
---|
104 | # remove la file(s) |
---|
105 | rm -f %{buildroot}/%{_libdir}/*.la |
---|
106 | |
---|
107 | # install ip*tables.h header files |
---|
108 | install -m 644 include/ip*tables.h %{buildroot}%{_includedir}/ |
---|
109 | |
---|
110 | # install ipulog header file |
---|
111 | install -d -m 755 %{buildroot}%{_includedir}/libipulog/ |
---|
112 | install -m 644 include/libipulog/*.h %{buildroot}%{_includedir}/libipulog/ |
---|
113 | |
---|
114 | # install init scripts and configuration files |
---|
115 | install -d -m 755 %{buildroot}/etc/rc.d/init.d |
---|
116 | install -c -m 755 %{SOURCE1} %{buildroot}/etc/rc.d/init.d/iptables |
---|
117 | sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE1} > ip6tables.init |
---|
118 | install -c -m 755 ip6tables.init %{buildroot}/etc/rc.d/init.d/ip6tables |
---|
119 | install -d -m 755 %{buildroot}/etc/sysconfig |
---|
120 | install -c -m 755 %{SOURCE2} %{buildroot}/etc/sysconfig/iptables-config |
---|
121 | sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE2} > ip6tables-config |
---|
122 | install -c -m 755 ip6tables-config %{buildroot}/etc/sysconfig/ip6tables-config |
---|
123 | |
---|
124 | %clean |
---|
125 | rm -rf %{buildroot} |
---|
126 | |
---|
127 | %post |
---|
128 | /sbin/ldconfig |
---|
129 | /sbin/chkconfig --add iptables |
---|
130 | |
---|
131 | %postun -p /sbin/ldconfig |
---|
132 | |
---|
133 | %preun |
---|
134 | if [ "$1" = 0 ]; then |
---|
135 | /sbin/chkconfig --del iptables |
---|
136 | fi |
---|
137 | |
---|
138 | %post ipv6 |
---|
139 | /sbin/chkconfig --add ip6tables |
---|
140 | |
---|
141 | %preun ipv6 |
---|
142 | if [ "$1" = 0 ]; then |
---|
143 | /sbin/chkconfig --del ip6tables |
---|
144 | fi |
---|
145 | |
---|
146 | %files |
---|
147 | %defattr(-,root,root) |
---|
148 | %doc COPYING INSTALL INCOMPATIBILITIES |
---|
149 | %attr(0755,root,root) /etc/rc.d/init.d/iptables |
---|
150 | %config(noreplace) %attr(0600,root,root) /etc/sysconfig/iptables-config |
---|
151 | %config(noreplace) %attr(0600,root,root) /etc/ethertypes |
---|
152 | /sbin/arptables-compat |
---|
153 | /sbin/ebtables-compat |
---|
154 | /sbin/iptables* |
---|
155 | /sbin/nfbpf_compile |
---|
156 | /sbin/nfnl_osf |
---|
157 | /sbin/xtables-compat-multi |
---|
158 | /sbin/xtables-multi |
---|
159 | %{_mandir}/man1/iptables-xml* |
---|
160 | %{_mandir}/man8/iptables* |
---|
161 | %{_mandir}/man8/nfnl_osf.8* |
---|
162 | %dir /%{_lib}/xtables |
---|
163 | /%{_lib}/xtables/libarpt* |
---|
164 | /%{_lib}/xtables/libebt* |
---|
165 | /%{_lib}/xtables/libipt* |
---|
166 | /%{_lib}/xtables/libxt* |
---|
167 | %{_libdir}/libip*tc.so.* |
---|
168 | %{_libdir}/libxtables.so.* |
---|
169 | %{_libdir}/libipq.so.* |
---|
170 | %{_datadir}/xtables/pf.os |
---|
171 | |
---|
172 | %files ipv6 |
---|
173 | %defattr(-,root,root) |
---|
174 | %attr(0755,root,root) /etc/rc.d/init.d/ip6tables |
---|
175 | %config(noreplace) %attr(0600,root,root) /etc/sysconfig/ip6tables-config |
---|
176 | /sbin/ip6tables* |
---|
177 | /bin/iptables-xml |
---|
178 | %{_mandir}/man8/ip6tables* |
---|
179 | /%{_lib}/xtables/libip6t* |
---|
180 | |
---|
181 | %files devel |
---|
182 | %defattr(-,root,root) |
---|
183 | %{_includedir}/*.h |
---|
184 | %dir %{_includedir}/libiptc |
---|
185 | %{_includedir}/libiptc/*.h |
---|
186 | %dir %{_includedir}/libipulog |
---|
187 | %{_includedir}/libipulog/*.h |
---|
188 | %{_mandir}/man3/* |
---|
189 | %{_libdir}/libipq.so |
---|
190 | %{_libdir}/libip*tc.so |
---|
191 | %{_libdir}/libxtables.so |
---|
192 | %{_libdir}/pkgconfig/libiptc.pc |
---|
193 | %{_libdir}/pkgconfig/libip4tc.pc |
---|
194 | %{_libdir}/pkgconfig/libip6tc.pc |
---|
195 | %{_libdir}/pkgconfig/libipq.pc |
---|
196 | %{_libdir}/pkgconfig/xtables.pc |
---|
197 | |
---|
198 | %changelog |
---|
199 | * Sat Feb 24 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.6.2-1 |
---|
200 | - new upstream release. |
---|
201 | |
---|
202 | * Tue Dec 10 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.21 |
---|
203 | - new upstream release. |
---|
204 | |
---|
205 | * Fri Oct 19 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4.16.3 |
---|
206 | - new upstream release 1.4.16.2 |
---|
207 | - update source1 url |
---|
208 | |
---|
209 | * Thu Oct 18 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4.16.2 |
---|
210 | - new upstream release 1.4.16.2 |
---|
211 | - fix ipv6 subpackage ja discription |
---|
212 | - drop old patch |
---|
213 | - add with-xtlibdir in configure section |
---|
214 | |
---|
215 | * Fri Apr 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.10-1 |
---|
216 | - update to 1.4.10 |
---|
217 | |
---|
218 | * Thu Mar 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.7-1 |
---|
219 | - new upstream release |
---|
220 | |
---|
221 | * Wed Aug 12 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-2 |
---|
222 | - don't fail initscript if config file is not found. |
---|
223 | |
---|
224 | * Wed Jun 17 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4.4-1 |
---|
225 | - new upstream release |
---|
226 | |
---|
227 | * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3.2-1 |
---|
228 | - new upstream release |
---|
229 | |
---|
230 | * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3.1-1 |
---|
231 | - new upstream release |
---|
232 | - libiptc is now shared |
---|
233 | - drop patch1 |
---|
234 | - update patch2 |
---|
235 | - fix typo in spec file |
---|
236 | |
---|
237 | * Fri Apr 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-2 |
---|
238 | - rebuild to add sign.. |
---|
239 | |
---|
240 | * Wed Apr 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-1 |
---|
241 | - new upstream release |
---|
242 | - spec in utf-8 |
---|
243 | |
---|
244 | * Sat Jul 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.6-0vl2 |
---|
245 | - changed devel package Group to Development/Libraries |
---|
246 | |
---|
247 | * Sat Nov 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.6-0vl1 |
---|
248 | - new upstream release |
---|
249 | - remove libiptc.a from %%files |
---|
250 | - libiptc is not a public interface |
---|
251 | |
---|
252 | * Wed Sep 06 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.3.5-0vl4 |
---|
253 | - updates Summaries and Descriptions (<BTS:0101>) |
---|
254 | |
---|
255 | * Sun Aug 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-0vl3 |
---|
256 | - updates Summaries (<BTS:0101>) |
---|
257 | |
---|
258 | * Thu Jul 06 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.5-0vl2 |
---|
259 | - add Patch10 (to include libipt_recent.so) |
---|
260 | |
---|
261 | * Tue Jun 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-0vl1 |
---|
262 | - new upstream release |
---|
263 | |
---|
264 | * Tue Jun 22 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.11-0vl1 |
---|
265 | - new upstream release |
---|
266 | |
---|
267 | * Thu Jun 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl1 |
---|
268 | - new upstream release |
---|
269 | |
---|
270 | * Fri Nov 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.9-0vl1 |
---|
271 | - new upstream release |
---|
272 | |
---|
273 | * Thu Jul 24 2003 Takeru INOUE <takeru.inoue@gamma.ocn.ne.jp> 1.2.7a-0vl3 |
---|
274 | - add ipv6 version |
---|
275 | |
---|
276 | * Sun Mar 23 2003 Takeru INOUE <takeru.inoue@gamma.ocn.ne.jp> 1.2.7a-0vl2 |
---|
277 | - rebuild development version |
---|
278 | |
---|
279 | * Sun Sep 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7a-0vl1 |
---|
280 | - new upstream release 1.2.7a |
---|
281 | |
---|
282 | * Mon Mar 25 2002 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.2.6-0vl0 |
---|
283 | - updated to 1.2.6 |
---|
284 | |
---|
285 | * Thu Mar 07 2002 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl1 |
---|
286 | - kernel24 -> kernel for Requires |
---|
287 | |
---|
288 | * Sat Mar 02 2002 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl0 |
---|
289 | - updated to 1.2.5 and merged with RHL's spec |
---|
290 | - compatibilities: %%{_sbindir} -> /sbin, %%{_libdir} -> /lib |
---|
291 | |
---|
292 | * Mon Nov 19 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-2vl1 |
---|
293 | - build for Vine Linux based on conectiva iptables package. |
---|
294 | |
---|
295 | * Sun Jun 17 2001 Harald Welte <laforge@conectiva.com> |
---|
296 | + iptables-1.2.2-2cl |
---|
297 | - fixes iptables-save / -restore problems (Closes: #3673) |
---|
298 | - fixes REJECT save problem |
---|
299 | - fixes ipv6 compile problem |
---|
300 | - moved binaries to sbindir instead of bindir |
---|
301 | |
---|
302 | * Wed May 30 2001 Harald Welte <laforge@conectiva.com> |
---|
303 | + iptables-1.2.2-1cl |
---|
304 | - updated to 1.2.2 (Closes: #3376) |
---|
305 | |
---|
306 | * Wed May 30 2001 Wanderlei Antonio Cavassin <cavassin@conectiva.com> |
---|
307 | + iptables-1.2.1a-2cl |
---|
308 | - recompiled for kernel-2.4.4-2cl (Closes: #3354) |
---|
309 | - spec file changes provided by Vagner Farias <vfarias@conectiva.com> |
---|
310 | |
---|
311 | * Fri Apr 20 2001 Harald Welte <laforge@conectiva.com> |
---|
312 | + iptables-1.2.1a-1cl |
---|
313 | - updated to version 1.2.1a because of various bugfixes |
---|
314 | |
---|
315 | * Fri Mar 16 2001 Harald Welte <laforge@conectiva.com> |
---|
316 | + iptables-1.2.1-1cl |
---|
317 | - updated to version 1.2.1 |
---|
318 | |
---|
319 | * Wed Jan 10 2001 Andreas Hasenack <andreas@conectiva.com> |
---|
320 | - updated to version 1.2 |
---|
321 | - added requirement for kernel >= 2.4.0 |
---|
322 | |
---|
323 | * Thu Dec 14 2000 Andreas Hasenack <andreas@conectiva.com> |
---|
324 | - first package for Conectiva Linux |
---|
325 | |
---|