Summary: Packet filtering tool Summary(ja): パケットフィルタリングツール Name: iptables Version: 1.3.6 Release: 0vl1LS License: GPL Group: System Environment/Base URL: http://www.netfilter.org/ Source0: http://netfilter.samba.org/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: ip6tables.init Patch10: iptables-1.3.6-ipt_recent.patch Patch11: iptables-1.3.6-Makefile.patch #Requires: kernel >= 2.4.0 #PreReq: chkconfig #BuildPrereq: perl #BuildPreReq: kernel-headers >= 2.4.0 BuildRoot: %{_tmppath}/%{name}-%{version}-root AutoReq: 0 Vendor: Project Vine %description This is the packet filtering tool included from kernel-2.4. It is much more advanced than ipchains and can take full advantage of the new features within the 2.4.x packet filtering code. It allows you to set up masquerading, full NAT, stateful inspection rules, etc. This version includes the libraries and header files you'll need to develop iptables. %description -l ja これは kernel-2.4から導入されたパケットフィルタリングツールです。 従来の ipchains よりも高機能で、kernel-2.4以降の新しいパケットフィ ルタリング機能のすべてを使用することができます。これを用いることで、 masquerading, full NAT、stateful inspection ルール といったものを 設定することができます。開発用ライブラリとヘッダファイルを含みます。 %package devel Summary: Libraries, includes, etc. to develop iptables Summary(ja): iptables 開発用ライブラリ、ヘッダファイル Group: System Environment/Base Requires: iptables = %{version} %description devel Libraries, include files, etc you can use to develop iptables. %description devel -l ja iptables を用いた開発に使用するライブラリやヘッダファイルです。 #%package ipv6 #Summary: IPv6 Packet filtering tool #Summary(ja): IPv6 用パケットフィルタリングツール #Group: System Environment/Base #Requires: kernel >= 2.4.0 # #%description ipv6 #This is the IPv6 packet filtering tool for kernel-2.4.x. %prep %setup -q %patch10 -p1 %patch11 -p1 # Put it to a reasonable place perl -pi -e "s,/usr/local,%{_prefix},g" * */* %build %ifarch alpha OPT=`echo $RPM_OPT_FLAGS | sed -e "s/-O./-O1/"` %else OPT="$RPM_OPT_FLAGS" %endif #make COPT_FLAGS="$OPT" LIBDIR=/lib #make COPT_FLAGS="$OPT" LIBDIR=/lib iptables-save iptables-restore #make COPT_FLAGS="$OPT" LIBDIR=/lib ip6tables-save ip6tables-restore export CC="gcc" make COPT_FLAGS="$OPT" LIBDIR=%{_libdir} make COPT_FLAGS="$OPT" LIBDIR=%{_libdir} iptables-save iptables-restore %install rm -rf %{buildroot} export CC="gcc" make install DESTDIR=%{buildroot} BINDIR=%{_sbindir} LIBDIR=%{_libdir} MANDIR=%{_mandir} #cp ip{6,}tables-{save,restore} %{buildroot}/sbin cp iptables-{save,restore} %{buildroot}/${_sbindir} cp iptables-*.8 %{buildroot}%{_mandir}/man8 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d install -c -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/iptables install -c -m755 %{SOURCE2} %{buildroot}%{_sysconfdir}/rc.d/init.d/ip6tables make install-devel DESTDIR=%{buildroot} BINDIR=%{_sbindir} LIBDIR=%{_libdir} MANDIR=%{_mandir} %post #/sbin/chkconfig --add iptables %preun #if [ "$1" = 0 ]; then # /sbin/chkconfig --del iptables #fi %clean rm -rf %{buildroot} %files %defattr(-,root,root) %config %{_sysconfdir}/rc.d/init.d/iptables %{_sbindir}/iptables* #%{_mandir}/*/iptables* %dir %{_libdir}/iptables %{_libdir}/iptables/libipt* %files devel %defattr(-,root,root) %{_libdir}/libipq.a #/lib/libiptc.a %{_includedir}/libipq.h #%{_mandir}/man3/* #%files ipv6 #%defattr(-,root,root,0755) #%config /etc/rc.d/init.d/ip6tables #/sbin/ip6tables* #/lib/iptables/libip6t* #%{_mandir}/*/ip6tables* %changelog * Sat Nov 04 2006 Daisuke SUZUKI 1.3.6-0vl1 - new upstream release - remove libiptc.a from %%files - libiptc is not a public interface * Wed Sep 06 2006 Kazutaka HARADA 1.3.5-0vl4 - updates Summaries and Descriptions () * Sun Aug 13 2006 Daisuke SUZUKI 1.3.5-0vl3 - updates Summaries () * Thu Jul 06 2006 MATSUBAYASHI Kohji 1.3.5-0vl2 - add Patch10 (to include libipt_recent.so) * Tue Jun 13 2006 Daisuke SUZUKI 1.3.5-0vl1 - new upstream release * Tue Jun 22 2004 Daisuke SUZUKI 1.2.11-0vl1 - new upstream release * Thu Jun 17 2004 Daisuke SUZUKI 1.2.10-0vl1 - new upstream release * Fri Nov 21 2003 Daisuke SUZUKI 1.2.9-0vl1 - new upstream release * Thu Jul 24 2003 Takeru INOUE 1.2.7a-0vl3 - add ipv6 version * Sun Mar 23 2003 Takeru INOUE 1.2.7a-0vl2 - rebuild development version * Sun Sep 29 2002 Daisuke SUZUKI 1.2.7a-0vl1 - new upstream release 1.2.7a * Mon Mar 25 2002 Seiya Nishizawa 1.2.6-0vl0 - updated to 1.2.6 * Thu Mar 07 2002 Toru Sagami 1.2.5-0vl1 - kernel24 -> kernel for Requires * Sat Mar 02 2002 Toru Sagami 1.2.5-0vl0 - updated to 1.2.5 and merged with RHL's spec - compatibilities: %%{_sbindir} -> /sbin, %%{_libdir} -> /lib * Mon Nov 19 2001 Daisuke SUZUKI 1.2.2-2vl1 - build for Vine Linux based on conectiva iptables package. * Sun Jun 17 2001 Harald Welte + iptables-1.2.2-2cl - fixes iptables-save / -restore problems (Closes: #3673) - fixes REJECT save problem - fixes ipv6 compile problem - moved binaries to sbindir instead of bindir * Wed May 30 2001 Harald Welte + iptables-1.2.2-1cl - updated to 1.2.2 (Closes: #3376) * Wed May 30 2001 Wanderlei Antonio Cavassin + iptables-1.2.1a-2cl - recompiled for kernel-2.4.4-2cl (Closes: #3354) - spec file changes provided by Vagner Farias * Fri Apr 20 2001 Harald Welte + iptables-1.2.1a-1cl - updated to version 1.2.1a because of various bugfixes * Fri Mar 16 2001 Harald Welte + iptables-1.2.1-1cl - updated to version 1.2.1 * Wed Jan 10 2001 Andreas Hasenack - updated to version 1.2 - added requirement for kernel >= 2.4.0 * Thu Dec 14 2000 Andreas Hasenack - first package for Conectiva Linux