| 1 | Summary: Packet filtering tool |
|---|
| 2 | Summary(ja): パケットフィルタリングツール |
|---|
| 3 | Name: iptables |
|---|
| 4 | Version: 1.4.10 |
|---|
| 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 | BuildRequires: perl |
|---|
| 16 | BuildRequires: 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 | * Fri Apr 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.10-1 |
|---|
| 165 | - update to 1.4.10 |
|---|
| 166 | |
|---|
| 167 | * Thu Mar 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.7-1 |
|---|
| 168 | - new upstream release |
|---|
| 169 | |
|---|
| 170 | * Wed Aug 12 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.4-2 |
|---|
| 171 | - don't fail initscript if config file is not found. |
|---|
| 172 | |
|---|
| 173 | * Wed Jun 17 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4.4-1 |
|---|
| 174 | - new upstream release |
|---|
| 175 | |
|---|
| 176 | * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3.2-1 |
|---|
| 177 | - new upstream release |
|---|
| 178 | |
|---|
| 179 | * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3.1-1 |
|---|
| 180 | - new upstream release |
|---|
| 181 | - libiptc is now shared |
|---|
| 182 | - drop patch1 |
|---|
| 183 | - update patch2 |
|---|
| 184 | - fix typo in spec file |
|---|
| 185 | |
|---|
| 186 | * Fri Apr 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-2 |
|---|
| 187 | - rebuild to add sign.. |
|---|
| 188 | |
|---|
| 189 | * Wed Apr 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-1 |
|---|
| 190 | - new upstream release |
|---|
| 191 | - spec in utf-8 |
|---|
| 192 | |
|---|
| 193 | * Sat Jul 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.3.6-0vl2 |
|---|
| 194 | - changed devel package Group to Development/Libraries |
|---|
| 195 | |
|---|
| 196 | * Sat Nov 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.6-0vl1 |
|---|
| 197 | - new upstream release |
|---|
| 198 | - remove libiptc.a from %%files |
|---|
| 199 | - libiptc is not a public interface |
|---|
| 200 | |
|---|
| 201 | * Wed Sep 06 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.3.5-0vl4 |
|---|
| 202 | - updates Summaries and Descriptions (<BTS:0101>) |
|---|
| 203 | |
|---|
| 204 | * Sun Aug 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-0vl3 |
|---|
| 205 | - updates Summaries (<BTS:0101>) |
|---|
| 206 | |
|---|
| 207 | * Thu Jul 06 2006 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.3.5-0vl2 |
|---|
| 208 | - add Patch10 (to include libipt_recent.so) |
|---|
| 209 | |
|---|
| 210 | * Tue Jun 13 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-0vl1 |
|---|
| 211 | - new upstream release |
|---|
| 212 | |
|---|
| 213 | * Tue Jun 22 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.11-0vl1 |
|---|
| 214 | - new upstream release |
|---|
| 215 | |
|---|
| 216 | * Thu Jun 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl1 |
|---|
| 217 | - new upstream release |
|---|
| 218 | |
|---|
| 219 | * Fri Nov 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.9-0vl1 |
|---|
| 220 | - new upstream release |
|---|
| 221 | |
|---|
| 222 | * Thu Jul 24 2003 Takeru INOUE <takeru.inoue@gamma.ocn.ne.jp> 1.2.7a-0vl3 |
|---|
| 223 | - add ipv6 version |
|---|
| 224 | |
|---|
| 225 | * Sun Mar 23 2003 Takeru INOUE <takeru.inoue@gamma.ocn.ne.jp> 1.2.7a-0vl2 |
|---|
| 226 | - rebuild development version |
|---|
| 227 | |
|---|
| 228 | * Sun Sep 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7a-0vl1 |
|---|
| 229 | - new upstream release 1.2.7a |
|---|
| 230 | |
|---|
| 231 | * Mon Mar 25 2002 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.2.6-0vl0 |
|---|
| 232 | - updated to 1.2.6 |
|---|
| 233 | |
|---|
| 234 | * Thu Mar 07 2002 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl1 |
|---|
| 235 | - kernel24 -> kernel for Requires |
|---|
| 236 | |
|---|
| 237 | * Sat Mar 02 2002 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl0 |
|---|
| 238 | - updated to 1.2.5 and merged with RHL's spec |
|---|
| 239 | - compatibilities: %%{_sbindir} -> /sbin, %%{_libdir} -> /lib |
|---|
| 240 | |
|---|
| 241 | * Mon Nov 19 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-2vl1 |
|---|
| 242 | - build for Vine Linux based on conectiva iptables package. |
|---|
| 243 | |
|---|
| 244 | * Sun Jun 17 2001 Harald Welte <laforge@conectiva.com> |
|---|
| 245 | + iptables-1.2.2-2cl |
|---|
| 246 | - fixes iptables-save / -restore problems (Closes: #3673) |
|---|
| 247 | - fixes REJECT save problem |
|---|
| 248 | - fixes ipv6 compile problem |
|---|
| 249 | - moved binaries to sbindir instead of bindir |
|---|
| 250 | |
|---|
| 251 | * Wed May 30 2001 Harald Welte <laforge@conectiva.com> |
|---|
| 252 | + iptables-1.2.2-1cl |
|---|
| 253 | - updated to 1.2.2 (Closes: #3376) |
|---|
| 254 | |
|---|
| 255 | * Wed May 30 2001 Wanderlei Antonio Cavassin <cavassin@conectiva.com> |
|---|
| 256 | + iptables-1.2.1a-2cl |
|---|
| 257 | - recompiled for kernel-2.4.4-2cl (Closes: #3354) |
|---|
| 258 | - spec file changes provided by Vagner Farias <vfarias@conectiva.com> |
|---|
| 259 | |
|---|
| 260 | * Fri Apr 20 2001 Harald Welte <laforge@conectiva.com> |
|---|
| 261 | + iptables-1.2.1a-1cl |
|---|
| 262 | - updated to version 1.2.1a because of various bugfixes |
|---|
| 263 | |
|---|
| 264 | * Fri Mar 16 2001 Harald Welte <laforge@conectiva.com> |
|---|
| 265 | + iptables-1.2.1-1cl |
|---|
| 266 | - updated to version 1.2.1 |
|---|
| 267 | |
|---|
| 268 | * Wed Jan 10 2001 Andreas Hasenack <andreas@conectiva.com> |
|---|
| 269 | - updated to version 1.2 |
|---|
| 270 | - added requirement for kernel >= 2.4.0 |
|---|
| 271 | |
|---|
| 272 | * Thu Dec 14 2000 Andreas Hasenack <andreas@conectiva.com> |
|---|
| 273 | - first package for Conectiva Linux |
|---|