automatic version update by autodist [release 1.6.0-1mamba;Fri Jan 01 2016]

This commit is contained in:
Automatic Build System 2024-01-05 23:57:42 +01:00
parent f647361efc
commit 07703523d0

View File

@ -1,5 +1,5 @@
Name: iptables
Version: 1.4.21
Version: 1.6.0
Release: 1mamba
Summary: kernel libraries, user tools/libraries for netfilter/iptables firewalling
Group: Network/Security
@ -11,7 +11,15 @@ Source0: ftp://ftp.netfilter.org/pub/iptables/iptables-%{version}.tar.bz2
Source1: iptables-initscript
Source2: iptables-nat.sh
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libmnl-devel
BuildRequires: libnetfilter_conntrack-devel
BuildRequires: libnfnetlink-devel
BuildRequires: libnftnl-devel
## AUTOBUILDREQ-END
Provides: iptables-nat
Obsoletes: iptables-nat
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -41,14 +49,14 @@ Iptables is the new firewalling code in the 2.4.x and 2.6.x linux kernels.
It provides a more extensible architecture for packet matching and manipulation by moving all but the lowest level into userspace libraries and kernel modules.
This package contains the header files needed for development with xtables.
%package nat
Summary: IPtables script that enables NAT functionality
Group: Network/Security
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
#%package nat
#Summary: IPtables script that enables NAT functionality
#Group: Network/Security
#Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description nat
This is a simple script that enables iptables NAT functionality from an interface marked as local in /etc/sysconfig/network-devices/ifconfig.* using
the variable ZONE=local.
#%description nat
#This is a simple script that enables iptables NAT functionality from an interface marked as local in /etc/sysconfig/network-devices/ifconfig.* using
#the variable ZONE=local.
%prep
%setup -q
@ -65,8 +73,8 @@ the variable ZONE=local.
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
install -D -m 755 %{S:1} %{buildroot}%{_initrddir}/iptables
install -D -m 755 %{S:2} %{buildroot}%{_sbindir}/iptables-nat.sh
#install -D -m 755 %{S:1} %{buildroot}%{_initrddir}/iptables
#install -D -m 755 %{S:2} %{buildroot}%{_sbindir}/iptables-nat.sh
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
@ -83,22 +91,33 @@ exit 0
%preun
#erase
if [ $1 -eq 0 ]; then
service iptables stop
# service iptables stop
/sbin/chkconfig --del iptables
fi
exit 0
%post nat
if [ $1 -eq 1 ]; then
/usr/sbin/iptables-nat.sh && \
/sbin/iptables-save > %{_sysconfdir}/sysconfig/iptables
fi
exit 0
%posttrans
# clean old sysv broken links
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
:
#%post nat
#if [ $1 -eq 1 ]; then
# /usr/sbin/iptables-nat.sh && \
# /sbin/iptables-save > %{_sysconfdir}/sysconfig/iptables
#fi
#exit 0
%files
%defattr(-,root,root)
#%{_sysconfdir}/xtables/connlabel.conf
%{_initrddir}/iptables
%{_sysconfdir}/ethertypes
#%{_initrddir}/iptables
/sbin/arptables-compat
/sbin/ebtables-compat
/sbin/iptables-compat
/sbin/iptables-compat-restore
/sbin/iptables-compat-save
/sbin/xtables-compat-multi
/sbin/iptables
/sbin/iptables-xml
/sbin/iptables-restore
@ -106,12 +125,10 @@ exit 0
/sbin/xtables-multi
/sbin/nfnl_osf
%dir %{_libdir}/xtables
%{_libdir}/xtables/libipt_*.so
%{_libdir}/xtables/libxt_*.so
%{_libdir}/xtables/lib*.so
%{_libdir}/libxtables.so.*
%{_libdir}/libiptc.so.*
%{_libdir}/libip4tc.so.*
%{_libdir}/libip6tc.so.*
%dir %{_datadir}/xtables
%{_datadir}/xtables/pf.os
%{_mandir}/man1/iptables-xml.*
@ -125,6 +142,10 @@ exit 0
/sbin/ip6tables
/sbin/ip6tables-restore
/sbin/ip6tables-save
/sbin/ip6tables-compat
/sbin/ip6tables-compat-restore
/sbin/ip6tables-compat-save
%{_libdir}/libip6tc.so.*
%{_libdir}/xtables/libip6t_*.so
%{_mandir}/man8/ip6tables.*
%{_mandir}/man8/ip6tables-restore.*
@ -148,11 +169,14 @@ exit 0
%{_libdir}/pkgconfig/libip4tc.pc
%{_libdir}/pkgconfig/libip6tc.pc
%files nat
%defattr(-,root,root)
%{_sbindir}/iptables-nat.sh
#%files nat
#%defattr(-,root,root)
#%{_sbindir}/iptables-nat.sh
%changelog
* Fri Jan 01 2016 Automatic Build System <autodist@mambasoft.it> 1.6.0-1mamba
- automatic version update by autodist
* Fri Nov 22 2013 Automatic Build System <autodist@mambasoft.it> 1.4.21-1mamba
- automatic version update by autodist