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