auto-import iptables-1.2.5-2 from iptables-1.2.5-2.src.rpm
This commit is contained in:
parent
53f42a8f3f
commit
5cb149b6bb
@ -1 +1 @@
|
|||||||
iptables-1.2.4.tar.bz2
|
iptables-1.2.5.tar.bz2
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
Name: iptables
|
Name: iptables
|
||||||
Summary: Tools for managing Linux kernel packet filtering capabilities.
|
Summary: Tools for managing Linux kernel packet filtering capabilities.
|
||||||
Version: 1.2.4
|
Version: 1.2.5
|
||||||
Release: 2s.1
|
Release: 2
|
||||||
Source: http://netfilter.kernelnotes.org/%{name}-%{version}.tar.bz2
|
Source: http://netfilter.kernelnotes.org/%{name}-%{version}.tar.bz2
|
||||||
Source1: iptables.init
|
Source1: iptables.init
|
||||||
|
Source2: ip6tables.init
|
||||||
Patch1: iptables-1.2.2-bug50990.patch
|
Patch1: iptables-1.2.2-bug50990.patch
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://netfilter.kernelnotes.org/
|
URL: http://www.netfilter.org/
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||||
License: GPL
|
License: GPL
|
||||||
BuildPrereq: /usr/bin/perl
|
BuildPrereq: /usr/bin/perl
|
||||||
@ -50,42 +51,62 @@ OPT="$RPM_OPT_FLAGS"
|
|||||||
%endif
|
%endif
|
||||||
make COPT_FLAGS="$OPT" LIBDIR=/lib
|
make COPT_FLAGS="$OPT" LIBDIR=/lib
|
||||||
make COPT_FLAGS="$OPT" LIBDIR=/lib iptables-save iptables-restore
|
make COPT_FLAGS="$OPT" LIBDIR=/lib iptables-save iptables-restore
|
||||||
|
make COPT_FLAGS="$OPT" LIBDIR=/lib ip6tables-save ip6tables-restore
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/lib MANDIR=%{_mandir}
|
make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/lib MANDIR=%{_mandir}
|
||||||
cp iptables-save $RPM_BUILD_ROOT/sbin
|
cp ip{6,}tables-{save,restore} $RPM_BUILD_ROOT/sbin
|
||||||
cp iptables-restore $RPM_BUILD_ROOT/sbin
|
|
||||||
cp iptables-*.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
cp iptables-*.8 $RPM_BUILD_ROOT%{_mandir}/man8
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
install -c -m755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/iptables
|
install -c -m755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/iptables
|
||||||
|
install -c -m755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/ip6tables
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
|
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
chkconfig --add iptables
|
/sbin/chkconfig --add iptables
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" = 0 ]; then
|
if [ "$1" = 0 ]; then
|
||||||
chkconfig --del iptables
|
/sbin/chkconfig --del iptables
|
||||||
|
fi
|
||||||
|
|
||||||
|
%post ipv6
|
||||||
|
/sbin/chkconfig --add ip6tables
|
||||||
|
|
||||||
|
%preun ipv6
|
||||||
|
if [ "$1" = 0 ]; then
|
||||||
|
/sbin/chkconfig --del ip6tables
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
%config /etc/rc.d/init.d/iptables
|
%config /etc/rc.d/init.d/iptables
|
||||||
/sbin/iptables*
|
/sbin/iptables*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/iptables*
|
||||||
%dir /lib/iptables
|
%dir /lib/iptables
|
||||||
/lib/iptables/libipt*
|
/lib/iptables/libipt*
|
||||||
|
|
||||||
%files ipv6
|
%files ipv6
|
||||||
%defattr(-,root,root,0755)
|
%defattr(-,root,root,0755)
|
||||||
/sbin/ip6tables
|
%config /etc/rc.d/init.d/ip6tables
|
||||||
|
/sbin/ip6tables*
|
||||||
/lib/iptables/libip6t*
|
/lib/iptables/libip6t*
|
||||||
|
%{_mandir}/*/ip6tables*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Mar 18 2003 D. Marlin <dmarlin@redhat.com>
|
* Tue Feb 12 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.5-2
|
||||||
- new s390 release number and rebuild for s390 (bug #85960)
|
- Merge ip6tables improvements from Ian Prowell <iprowell@prowell.org>
|
||||||
|
#59402
|
||||||
|
- Update URL (#59354)
|
||||||
|
- Use /sbin/chkconfig rather than chkconfig in %postun script
|
||||||
|
|
||||||
|
* Fri Jan 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.5-1
|
||||||
|
- 1.2.5
|
||||||
|
|
||||||
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||||||
|
- automated rebuild
|
||||||
|
|
||||||
* Mon Nov 5 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.4-2
|
* Mon Nov 5 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.2.4-2
|
||||||
- Fix %preun script
|
- Fix %preun script
|
||||||
|
Loading…
Reference in New Issue
Block a user