automatic version update by autodist [release 1.6.0-1mamba;Fri Jan 01 2016]
This commit is contained in:
parent
f647361efc
commit
07703523d0
@ -1,5 +1,5 @@
|
|||||||
Name: iptables
|
Name: iptables
|
||||||
Version: 1.4.21
|
Version: 1.6.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: kernel libraries, user tools/libraries for netfilter/iptables firewalling
|
Summary: kernel libraries, user tools/libraries for netfilter/iptables firewalling
|
||||||
Group: Network/Security
|
Group: Network/Security
|
||||||
@ -11,7 +11,15 @@ Source0: ftp://ftp.netfilter.org/pub/iptables/iptables-%{version}.tar.bz2
|
|||||||
Source1: iptables-initscript
|
Source1: iptables-initscript
|
||||||
Source2: iptables-nat.sh
|
Source2: iptables-nat.sh
|
||||||
License: GPL
|
License: GPL
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libmnl-devel
|
||||||
|
BuildRequires: libnetfilter_conntrack-devel
|
||||||
BuildRequires: libnfnetlink-devel
|
BuildRequires: libnfnetlink-devel
|
||||||
|
BuildRequires: libnftnl-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
Provides: iptables-nat
|
||||||
|
Obsoletes: iptables-nat
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%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.
|
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.
|
This package contains the header files needed for development with xtables.
|
||||||
|
|
||||||
%package nat
|
#%package nat
|
||||||
Summary: IPtables script that enables NAT functionality
|
#Summary: IPtables script that enables NAT functionality
|
||||||
Group: Network/Security
|
#Group: Network/Security
|
||||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
#Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
%description nat
|
#%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
|
#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.
|
#the variable ZONE=local.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -65,8 +73,8 @@ the variable ZONE=local.
|
|||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
%makeinstall
|
%makeinstall
|
||||||
|
|
||||||
install -D -m 755 %{S:1} %{buildroot}%{_initrddir}/iptables
|
#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:2} %{buildroot}%{_sbindir}/iptables-nat.sh
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||||
@ -83,22 +91,33 @@ exit 0
|
|||||||
%preun
|
%preun
|
||||||
#erase
|
#erase
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
service iptables stop
|
# service iptables stop
|
||||||
/sbin/chkconfig --del iptables
|
/sbin/chkconfig --del iptables
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post nat
|
%posttrans
|
||||||
if [ $1 -eq 1 ]; then
|
# clean old sysv broken links
|
||||||
/usr/sbin/iptables-nat.sh && \
|
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
||||||
/sbin/iptables-save > %{_sysconfdir}/sysconfig/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
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
#%{_sysconfdir}/xtables/connlabel.conf
|
%{_sysconfdir}/ethertypes
|
||||||
%{_initrddir}/iptables
|
#%{_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
|
||||||
/sbin/iptables-xml
|
/sbin/iptables-xml
|
||||||
/sbin/iptables-restore
|
/sbin/iptables-restore
|
||||||
@ -106,12 +125,10 @@ exit 0
|
|||||||
/sbin/xtables-multi
|
/sbin/xtables-multi
|
||||||
/sbin/nfnl_osf
|
/sbin/nfnl_osf
|
||||||
%dir %{_libdir}/xtables
|
%dir %{_libdir}/xtables
|
||||||
%{_libdir}/xtables/libipt_*.so
|
%{_libdir}/xtables/lib*.so
|
||||||
%{_libdir}/xtables/libxt_*.so
|
|
||||||
%{_libdir}/libxtables.so.*
|
%{_libdir}/libxtables.so.*
|
||||||
%{_libdir}/libiptc.so.*
|
%{_libdir}/libiptc.so.*
|
||||||
%{_libdir}/libip4tc.so.*
|
%{_libdir}/libip4tc.so.*
|
||||||
%{_libdir}/libip6tc.so.*
|
|
||||||
%dir %{_datadir}/xtables
|
%dir %{_datadir}/xtables
|
||||||
%{_datadir}/xtables/pf.os
|
%{_datadir}/xtables/pf.os
|
||||||
%{_mandir}/man1/iptables-xml.*
|
%{_mandir}/man1/iptables-xml.*
|
||||||
@ -125,6 +142,10 @@ exit 0
|
|||||||
/sbin/ip6tables
|
/sbin/ip6tables
|
||||||
/sbin/ip6tables-restore
|
/sbin/ip6tables-restore
|
||||||
/sbin/ip6tables-save
|
/sbin/ip6tables-save
|
||||||
|
/sbin/ip6tables-compat
|
||||||
|
/sbin/ip6tables-compat-restore
|
||||||
|
/sbin/ip6tables-compat-save
|
||||||
|
%{_libdir}/libip6tc.so.*
|
||||||
%{_libdir}/xtables/libip6t_*.so
|
%{_libdir}/xtables/libip6t_*.so
|
||||||
%{_mandir}/man8/ip6tables.*
|
%{_mandir}/man8/ip6tables.*
|
||||||
%{_mandir}/man8/ip6tables-restore.*
|
%{_mandir}/man8/ip6tables-restore.*
|
||||||
@ -148,11 +169,14 @@ exit 0
|
|||||||
%{_libdir}/pkgconfig/libip4tc.pc
|
%{_libdir}/pkgconfig/libip4tc.pc
|
||||||
%{_libdir}/pkgconfig/libip6tc.pc
|
%{_libdir}/pkgconfig/libip6tc.pc
|
||||||
|
|
||||||
%files nat
|
#%files nat
|
||||||
%defattr(-,root,root)
|
#%defattr(-,root,root)
|
||||||
%{_sbindir}/iptables-nat.sh
|
#%{_sbindir}/iptables-nat.sh
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Nov 22 2013 Automatic Build System <autodist@mambasoft.it> 1.4.21-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user