addded shorewall6 (ipv6) [release 4.6.10.1-2mamba;Sat Jun 13 2015]
This commit is contained in:
parent
8bc0cefa05
commit
e38ab2a039
@ -2,7 +2,7 @@
|
|||||||
%define maj3ver %(echo %version | cut -d. -f1-3)
|
%define maj3ver %(echo %version | cut -d. -f1-3)
|
||||||
Name: shorewall
|
Name: shorewall
|
||||||
Version: 4.6.10.1
|
Version: 4.6.10.1
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Shoreline Firewall, a high-level tool for configuring Netfilter
|
Summary: Shoreline Firewall, a high-level tool for configuring Netfilter
|
||||||
Group: Network/Security
|
Group: Network/Security
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -18,6 +18,7 @@ Source5: shorewall-zones
|
|||||||
Source6: http://slovakia.shorewall.net/pub/shorewall/%{majver}/shorewall-%{maj3ver}/shorewall-docs-html-%{version}.tar.bz2
|
Source6: http://slovakia.shorewall.net/pub/shorewall/%{majver}/shorewall-%{maj3ver}/shorewall-docs-html-%{version}.tar.bz2
|
||||||
#Source8: http://slovakia.shorewall.net/pub/shorewall/%{majver}/shorewall-%{version}/base/shorewall-perl-%{version}.tar.bz2
|
#Source8: http://slovakia.shorewall.net/pub/shorewall/%{majver}/shorewall-%{version}/base/shorewall-perl-%{version}.tar.bz2
|
||||||
#Source9: http://slovakia.shorewall.net/pub/shorewall/%{majver}/shorewall-%{version}/base/shorewall-shell-%{version}.tar.bz2
|
#Source9: http://slovakia.shorewall.net/pub/shorewall/%{majver}/shorewall-%{version}/base/shorewall-shell-%{version}.tar.bz2
|
||||||
|
Source10: http://slovakia.shorewall.net/pub/shorewall/%{majver}/shorewall-%{maj3ver}/shorewall6-%{version}.tar.bz2
|
||||||
License: GPL
|
License: GPL
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
@ -28,15 +29,25 @@ BuildRequires: shorewall-core >= %{version}
|
|||||||
Requires: shorewall-core >= %{version}
|
Requires: shorewall-core >= %{version}
|
||||||
Requires: iptables
|
Requires: iptables
|
||||||
Requires: iptables-ipv6
|
Requires: iptables-ipv6
|
||||||
|
Requires: perl-Socket6
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Shoreline Firewall, more commonly known as "Shorewall", is a high-level tool for configuring Netfilter. You describe your firewall/gateway requirements using entries in a set of configuration files. Shorewall reads those configuration files and with the help of the iptables utility, Shorewall configures Netfilter to match your requirements. Shorewall can be used on a dedicated firewall system, a multi-function gateway/router/server or on a standalone GNU/Linux system. Shorewall does not use Netfilter's ipchains compatibility mode; as a consequence, Shorewall can take advantage of Netfilter's connection state tracking capabilities to create a stateful firewall.
|
The Shoreline Firewall, more commonly known as "Shorewall", is a high-level tool for configuring Netfilter. You describe your firewall/gateway requirements using entries in a set of configuration files. Shorewall reads those configuration files and with the help of the iptables utility, Shorewall configures Netfilter to match your requirements. Shorewall can be used on a dedicated firewall system, a multi-function gateway/router/server or on a standalone GNU/Linux system. Shorewall does not use Netfilter's ipchains compatibility mode; as a consequence, Shorewall can take advantage of Netfilter's connection state tracking capabilities to create a stateful firewall.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a6
|
%setup -q -a6 -a10
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
cd shorewall6-%{version}
|
||||||
|
./configure \
|
||||||
|
--prefix=%{_prefix} \
|
||||||
|
--mandir=%{_mandir} \
|
||||||
|
--sysconfdir=%{_sysconfdir} \
|
||||||
|
--systemd=%{_unitdir} \
|
||||||
|
HOST=linux
|
||||||
|
|
||||||
|
cd ..
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
@ -46,8 +57,12 @@ The Shoreline Firewall, more commonly known as "Shorewall", is a high-level tool
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
cd shorewall6-%{version}
|
||||||
DESTDIR=%{buildroot} ./install.sh
|
DESTDIR=%{buildroot} ./install.sh
|
||||||
|
install -D -m0644 shorewall6.service.214 %{buildroot}%{_unitdir}/shorewall6.service
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
DESTDIR=%{buildroot} ./install.sh
|
||||||
install %{SOURCE1} %{buildroot}%{_sysconfdir}/shorewall/shorewall.conf
|
install %{SOURCE1} %{buildroot}%{_sysconfdir}/shorewall/shorewall.conf
|
||||||
install %{SOURCE2} %{buildroot}%{_sysconfdir}/shorewall/interfaces
|
install %{SOURCE2} %{buildroot}%{_sysconfdir}/shorewall/interfaces
|
||||||
install %{SOURCE3} %{buildroot}%{_sysconfdir}/shorewall/policy
|
install %{SOURCE3} %{buildroot}%{_sysconfdir}/shorewall/policy
|
||||||
@ -56,6 +71,7 @@ install %{SOURCE5} %{buildroot}%{_sysconfdir}/shorewall/zones
|
|||||||
install -D -m0644 shorewall.service.214 %{buildroot}%{_unitdir}/shorewall.service
|
install -D -m0644 shorewall.service.214 %{buildroot}%{_unitdir}/shorewall.service
|
||||||
|
|
||||||
rm -f %{buildroot}%{_sysconfdir}/init.d/shorewall
|
rm -f %{buildroot}%{_sysconfdir}/init.d/shorewall
|
||||||
|
rm -f %{buildroot}%{_sysconfdir}/init.d/shorewall6
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -64,12 +80,14 @@ rm -f %{buildroot}%{_sysconfdir}/init.d/shorewall
|
|||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
systemctl -q daemon-reload
|
systemctl -q daemon-reload
|
||||||
systemctl -q reload-or-try-restart shorewall
|
systemctl -q reload-or-try-restart shorewall
|
||||||
|
systemctl -q reload-or-try-restart shorewall6
|
||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
systemctl -q stop shorewall
|
systemctl -q stop shorewall
|
||||||
|
systemctl -q stop shorewall6
|
||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
@ -77,18 +95,29 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_sysconfdir}/shorewall
|
%dir %{_sysconfdir}/shorewall
|
||||||
%config(noreplace) %{_sysconfdir}/shorewall/*
|
%config(noreplace) %{_sysconfdir}/shorewall/*
|
||||||
|
%dir %{_sysconfdir}/shorewall6
|
||||||
|
%config(noreplace) %{_sysconfdir}/shorewall6/*
|
||||||
%{_sysconfdir}/logrotate.d/shorewall
|
%{_sysconfdir}/logrotate.d/shorewall
|
||||||
|
%{_sysconfdir}/logrotate.d/shorewall6
|
||||||
/sbin/shorewall
|
/sbin/shorewall
|
||||||
|
/sbin/shorewall6
|
||||||
%{_unitdir}/shorewall.service
|
%{_unitdir}/shorewall.service
|
||||||
|
%{_unitdir}/shorewall6.service
|
||||||
%dir %{_datadir}/shorewall
|
%dir %{_datadir}/shorewall
|
||||||
%{_datadir}/shorewall/*
|
%{_datadir}/shorewall/*
|
||||||
|
%dir %{_datadir}/shorewall6
|
||||||
|
%{_datadir}/shorewall6/*
|
||||||
%{_mandir}/man5/shorewall*.5*
|
%{_mandir}/man5/shorewall*.5*
|
||||||
%{_mandir}/man8/shorewall*.8*
|
%{_mandir}/man8/shorewall*.8*
|
||||||
%dir /var/lib/shorewall
|
%dir /var/lib/shorewall
|
||||||
|
%dir /var/lib/shorewall6
|
||||||
#%doc COPYING
|
#%doc COPYING
|
||||||
#README.txt
|
#README.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 13 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6.10.1-2mamba
|
||||||
|
- addded shorewall6 (ipv6)
|
||||||
|
|
||||||
* Thu Jun 11 2015 Automatic Build System <autodist@mambasoft.it> 4.6.10.1-1mamba
|
* Thu Jun 11 2015 Automatic Build System <autodist@mambasoft.it> 4.6.10.1-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user