2004-09-09 06:19:25 +00:00
|
|
|
|
Name: iptables
|
|
|
|
|
Summary: Tools for managing Linux kernel packet filtering capabilities.
|
2004-09-09 06:20:13 +00:00
|
|
|
|
Version: 1.2.4
|
2004-09-09 06:20:04 +00:00
|
|
|
|
Release: 2
|
2004-09-09 06:19:25 +00:00
|
|
|
|
Source: http://netfilter.kernelnotes.org/%{name}-%{version}.tar.bz2
|
2004-09-09 06:19:38 +00:00
|
|
|
|
Source1: iptables.init
|
2004-09-09 06:19:55 +00:00
|
|
|
|
Patch1: iptables-1.2.2-bug50990.patch
|
2004-09-09 06:19:25 +00:00
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
URL: http://netfilter.kernelnotes.org/
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
|
|
|
|
License: GPL
|
|
|
|
|
BuildPrereq: /usr/bin/perl
|
2004-09-09 06:19:38 +00:00
|
|
|
|
Requires: kernel >= 2.4.0
|
|
|
|
|
Requires(post,postun): chkconfig
|
|
|
|
|
# Obsoletes: ipchains
|
2004-09-09 06:19:25 +00:00
|
|
|
|
Prefix: %{_prefix}
|
2004-09-09 06:19:38 +00:00
|
|
|
|
|
|
|
|
|
%package ipv6
|
2004-09-09 06:19:55 +00:00
|
|
|
|
Summary: IPv6 support for iptables.
|
2004-09-09 06:19:38 +00:00
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
Requires: %{name} = %{version}
|
2004-09-09 06:19:25 +00:00
|
|
|
|
|
|
|
|
|
%description
|
2004-09-09 06:19:55 +00:00
|
|
|
|
The iptables utility controls the network packet filtering code in the
|
|
|
|
|
Linux kernel. If you need to set up firewalls and/or IP masquerading,
|
|
|
|
|
you should install this package.
|
2004-09-09 06:19:25 +00:00
|
|
|
|
|
2004-09-09 06:19:38 +00:00
|
|
|
|
%description ipv6
|
2004-09-09 06:19:55 +00:00
|
|
|
|
The iptables package contains IPv6 (the next version of the IP
|
|
|
|
|
protocol) support for iptables. Iptables controls the Linux kernel
|
|
|
|
|
network packet filtering code, allowing you to set up firewalls and IP
|
|
|
|
|
masquerading.
|
2004-09-09 06:19:38 +00:00
|
|
|
|
|
|
|
|
|
Install iptables-ipv6 if you need to set up firewalling for your
|
2004-09-09 06:19:55 +00:00
|
|
|
|
network and you are using ipv6.
|
2004-09-09 06:19:38 +00:00
|
|
|
|
|
2004-09-09 06:19:25 +00:00
|
|
|
|
%prep
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%setup -q
|
2004-09-09 06:19:55 +00:00
|
|
|
|
%patch1 -p1 -b .50990
|
2004-09-09 06:19:25 +00:00
|
|
|
|
# Put it to a reasonable place
|
|
|
|
|
perl -pi -e "s,/usr/local,%{prefix},g" * */*
|
|
|
|
|
|
|
|
|
|
%build
|
2004-09-09 06:19:38 +00:00
|
|
|
|
%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
|
2004-09-09 06:19:25 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2004-09-09 06:19:38 +00:00
|
|
|
|
make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/lib MANDIR=%{_mandir}
|
|
|
|
|
cp iptables-save $RPM_BUILD_ROOT/sbin
|
|
|
|
|
cp iptables-restore $RPM_BUILD_ROOT/sbin
|
|
|
|
|
cp iptables-*.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
|
|
|
|
install -c -m755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/iptables
|
2004-09-09 06:19:25 +00:00
|
|
|
|
|
|
|
|
|
%clean
|
2004-09-09 06:19:38 +00:00
|
|
|
|
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
chkconfig --add iptables
|
|
|
|
|
|
|
|
|
|
%preun
|
2004-09-09 06:20:13 +00:00
|
|
|
|
if [ "$1" = 0 ]; then
|
2004-09-09 06:19:55 +00:00
|
|
|
|
chkconfig --del iptables
|
|
|
|
|
fi
|
2004-09-09 06:19:25 +00:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,0755)
|
2004-09-09 06:19:38 +00:00
|
|
|
|
%config /etc/rc.d/init.d/iptables
|
|
|
|
|
/sbin/iptables*
|
2004-09-09 06:19:25 +00:00
|
|
|
|
%{_mandir}/*/*
|
2004-09-09 06:19:38 +00:00
|
|
|
|
%dir /lib/iptables
|
|
|
|
|
/lib/iptables/libipt*
|
|
|
|
|
|
|
|
|
|
%files ipv6
|
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
|
/sbin/ip6tables
|
|
|
|
|
/lib/iptables/libip6t*
|
2004-09-09 06:19:25 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 06:20:13 +00:00
|
|
|
|
* Mon Nov 5 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.4-2
|
|
|
|
|
- Fix %preun script
|
|
|
|
|
|
|
|
|
|
* Tue Oct 30 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.4-1
|
|
|
|
|
- Update to 1.2.4 (various fixes, including security fixes; among others:
|
|
|
|
|
#42990, #50500, #53325, #54280)
|
|
|
|
|
- Fix init script (#31133)
|
2004-09-09 06:20:04 +00:00
|
|
|
|
|
2004-09-09 06:19:55 +00:00
|
|
|
|
* Mon Sep 3 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.3-1
|
|
|
|
|
- 1.2.3 (5 security fixes, some other fixes)
|
|
|
|
|
- Fix updating (#53032)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 27 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-4
|
|
|
|
|
- Fix #50990
|
|
|
|
|
- Add some fixes from current CVS; should fix #52620
|
|
|
|
|
|
2004-09-09 06:19:48 +00:00
|
|
|
|
* Mon Jul 16 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-3
|
|
|
|
|
- Add some fixes from the current CVS tree; fixes #49154 and some IPv6
|
|
|
|
|
issues
|
|
|
|
|
|
2004-09-09 06:19:45 +00:00
|
|
|
|
* Tue Jun 26 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-2
|
|
|
|
|
- Fix iptables-save reject-with (#45632), Patch from Michael Schwendt
|
|
|
|
|
<mschwendt@yahoo.com>
|
|
|
|
|
|
|
|
|
|
* Tue May 8 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.2-1
|
|
|
|
|
- 1.2.2
|
|
|
|
|
|
2004-09-09 06:19:38 +00:00
|
|
|
|
* Wed Mar 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 1.2.1a, fixes #28412, #31136, #31460, #31133
|
|
|
|
|
|
|
|
|
|
* Thu Mar 1 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Yet another initscript fix (#30173)
|
|
|
|
|
- Fix the fixes; they fixed some issues but broke more important
|
|
|
|
|
stuff :/ (#30176)
|
|
|
|
|
|
|
|
|
|
* Tue Feb 27 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Fix up initscript (#27962)
|
|
|
|
|
- Add fixes from CVS to iptables-{restore,save}, fixing #28412
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2001 Karsten Hopp <karsten@redhat.de>
|
|
|
|
|
- create /etc/sysconfig/iptables mode 600 (same problem as #24245)
|
|
|
|
|
|
|
|
|
|
* Mon Feb 05 2001 Karsten Hopp <karsten@redhat.de>
|
|
|
|
|
- fix bugzilla #25986 (initscript not marked as config file)
|
|
|
|
|
- fix bugzilla #25962 (iptables-restore)
|
|
|
|
|
- mv chkconfig --del from postun to preun
|
|
|
|
|
|
|
|
|
|
* Thu Feb 1 2001 Trond Eivind Glomsr<EFBFBD>d <teg@redhat.com>
|
|
|
|
|
- Fix check for ipchains
|
|
|
|
|
|
|
|
|
|
* Mon Jan 29 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Some fixes to init scripts
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Add some fixes from CVS, fixes among other things Bug #24732
|
|
|
|
|
|
|
|
|
|
* Wed Jan 17 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- Add missing man pages, fix up init script (Bug #17676)
|
|
|
|
|
|
|
|
|
|
* Mon Jan 15 2001 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- add init script
|
|
|
|
|
|
|
|
|
|
* Mon Jan 15 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 1.2
|
|
|
|
|
- fix up ipv6 split
|
|
|
|
|
- add init script
|
|
|
|
|
- Move the plugins from /usr/lib/iptables to /lib/iptables.
|
|
|
|
|
This needs to work before /usr is mounted...
|
|
|
|
|
- Use -O1 on alpha (compiler bug)
|
|
|
|
|
|
|
|
|
|
* Sat Jan 6 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 1.1.2
|
|
|
|
|
- Add IPv6 support (in separate package)
|
|
|
|
|
|
2004-09-09 06:19:25 +00:00
|
|
|
|
* Thu Aug 17 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- build everywhere
|
|
|
|
|
|
|
|
|
|
* Tue Jul 25 2000 Bernhard Rosenkraenzer <bero@redhat.com>
|
|
|
|
|
- 1.1.1
|
|
|
|
|
|
|
|
|
|
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 27 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- move iptables to /sbin.
|
|
|
|
|
- excludearch alpha for now, not building there because of compiler bug(?)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 9 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- don't obsolete ipchains either
|
|
|
|
|
- update to 1.1.0
|
|
|
|
|
|
|
|
|
|
* Mon Jun 4 2000 Bill Nottingham <notting@redhat.com>
|
|
|
|
|
- remove explicit kernel requirement
|
|
|
|
|
|
|
|
|
|
* Tue May 2 2000 Bernhard Rosenkr<EFBFBD>nzer <bero@redhat.com>
|
|
|
|
|
- initial package
|