2024-01-05 17:47:13 +01:00
%define majver %(echo %version | cut -d. -f1-2)
%define maj3ver %(echo %version | cut -d. -f1-3)
Name : shorewall
2024-01-05 17:47:14 +01:00
Version : 4.6.3.1
2024-01-05 17:47:13 +01:00
Release : 1mamba
2024-01-05 17:47:13 +01:00
Summary : Shoreline Firewall, a high-level tool for configuring Netfilter
Group : Network/Security
Vendor : openmamba
Distribution : openmamba
Packager : Silvan Calarco <silvan.calarco@mambasoft.it>
URL : http://www.shorewall.net/index.htm
Source : http://slovakia.shorewall.net/pub/shorewall/%{majver} /shorewall-%{maj3ver} /shorewall-%{version} .tar.bz2
Source1 : shorewall-conf
Source2 : shorewall-interfaces
Source3 : shorewall-policy
Source4 : shorewall-rules
Source5 : shorewall-zones
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
#Source9: http://slovakia.shorewall.net/pub/shorewall/%{majver}/shorewall-%{version}/base/shorewall-shell-%{version}.tar.bz2
License : GPL
BuildArch : noarch
2024-01-05 17:47:13 +01:00
## AUTOBUILDREQ-BEGIN
BuildRequires : libperl
BuildRequires : perl-devel
## AUTOBUILDREQ-END
2024-01-05 17:47:13 +01:00
BuildRequires : shorewall-core >= %{version}
Requires : shorewall-core >= %{version}
Requires : iptables
Requires : iptables-ipv6
BuildRoot : %{_tmppath} /%{name} -%{version} -root
%description
The Shoreline Firewall, more commonly known as " S h o r e w a l l " , 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
%setup -q -a6
%build
./configure \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir} \
2024-01-05 17:47:13 +01:00
--systemd=%{_unitdir} \
2024-01-05 17:47:13 +01:00
HOST=linux
%install
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
DESTDIR=%{buildroot} ./install.sh
install %{SOURCE1} %{buildroot} %{_sysconfdir} /shorewall/shorewall.conf
install %{SOURCE2} %{buildroot} %{_sysconfdir} /shorewall/interfaces
install %{SOURCE3} %{buildroot} %{_sysconfdir} /shorewall/policy
install %{SOURCE4} %{buildroot} %{_sysconfdir} /shorewall/rules
install %{SOURCE5} %{buildroot} %{_sysconfdir} /shorewall/zones
2024-01-05 17:47:13 +01:00
rm -f %{buildroot} %{_sysconfdir} /init.d/shorewall
2024-01-05 17:47:13 +01:00
%clean
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
2024-01-05 17:47:13 +01:00
%post
if [ $1 -ge 1 ]; then
systemctl -q daemon-reload
systemctl -q reload-or-try-restart shorewall
fi
:
%preun
if [ $1 -eq 0 ]; then
systemctl -q stop shorewall
fi
:
2024-01-05 17:47:13 +01:00
%files
%defattr (-,root,root)
%dir %{_sysconfdir} /shorewall
%config (noreplace) %{_sysconfdir} /shorewall/*
%{_sysconfdir} /logrotate.d/shorewall
/sbin/shorewall
2024-01-05 17:47:13 +01:00
%{_unitdir} /shorewall.service
2024-01-05 17:47:13 +01:00
%dir %{_datadir} /shorewall
%{_datadir} /shorewall/*
%{_mandir} /man5/shorewall*.5*
%{_mandir} /man8/shorewall*.8*
%dir /var/lib/shorewall
%doc COPYING
#README.txt
%changelog
2024-01-05 17:47:14 +01:00
* Fri Aug 29 2014 Automatic Build System <autodist@mambasoft.it> 4.6.3.1-1mamba
- automatic version update by autodist
2024-01-05 17:47:14 +01:00
* Thu Aug 21 2014 Automatic Build System <autodist@mambasoft.it> 4.6.3-1mamba
- automatic version update by autodist
2024-01-05 17:47:14 +01:00
* Fri Aug 15 2014 Automatic Build System <autodist@mambasoft.it> 4.6.2.5-1mamba
- automatic version update by autodist
2024-01-05 17:47:14 +01:00
* Wed Aug 13 2014 Automatic Build System <autodist@mambasoft.it> 4.6.2.4-1mamba
- automatic version update by autodist
2024-01-05 17:47:13 +01:00
* Mon Jul 28 2014 Automatic Build System <autodist@mambasoft.it> 4.6.2.3-1mamba
- automatic version update by autodist
2024-01-05 17:47:13 +01:00
* Sun Jul 20 2014 Automatic Build System <autodist@mambasoft.it> 4.6.2.1-1mamba
- automatic version update by autodist
2024-01-05 17:47:13 +01:00
* Sat Jul 12 2014 Automatic Build System <autodist@mambasoft.it> 4.6.1.4-1mamba
- automatic version update by autodist
2024-01-05 17:47:13 +01:00
* Sun Jun 29 2014 Automatic Build System <autodist@mambasoft.it> 4.6.1.3-1mamba
- automatic version update by autodist
2024-01-05 17:47:13 +01:00
* Mon Jun 23 2014 Automatic Build System <autodist@mambasoft.it> 4.6.1.2-1mamba
- automatic version update by autodist
2024-01-05 17:47:13 +01:00
* Tue Jun 17 2014 Automatic Build System <autodist@mambasoft.it> 4.6.1.1-1mamba
- automatic version update by autodist
2024-01-05 17:47:13 +01:00
* Tue Jun 10 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.6.1-2mamba
- rebuilt with systemd support
2024-01-05 17:47:13 +01:00
* Mon Jun 09 2014 Automatic Build System <autodist@mambasoft.it> 4.6.1-1mamba
- automatic version update by autodist
2024-01-05 17:47:13 +01:00
* Mon May 12 2014 Automatic Build System <autodist@mambasoft.it> 4.5.21.9-1mamba
- automatic version update by autodist
* Fri Dec 20 2013 Automatic Build System <autodist@mambasoft.it> 4.5.21.5-1mamba
- automatic version update by autodist
* Sun Nov 24 2013 Automatic Build System <autodist@mambasoft.it> 4.5.21.4-1mamba
- automatic version update by autodist
* Sat Oct 26 2013 Automatic Build System <autodist@mambasoft.it> 4.5.21.3-1mamba
- automatic version update by autodist
* Wed Oct 23 2013 Automatic Build System <autodist@mambasoft.it> 4.5.21.2-1mamba
- automatic version update by autodist
* Wed Oct 09 2013 Automatic Build System <autodist@mambasoft.it> 4.5.21.1-1mamba
- automatic version update by autodist
* Sun Oct 06 2013 Automatic Build System <autodist@mambasoft.it> 4.5.21-1mamba
- automatic version update by autodist
* Fri Aug 30 2013 Automatic Build System <autodist@mambasoft.it> 4.5.20-1mamba
- automatic version update by autodist
* Thu Jul 25 2013 Automatic Build System <autodist@mambasoft.it> 4.5.19-1mamba
- automatic version update by autodist
* Sun Jun 30 2013 Automatic Build System <autodist@mambasoft.it> 4.5.18-1mamba
- automatic version update by autodist
* Mon Jun 03 2013 Automatic Build System <autodist@mambasoft.it> 4.5.17.1-1mamba
- automatic version update by autodist
* Sat Jun 01 2013 Automatic Build System <autodist@mambasoft.it> 4.5.17-1mamba
- automatic version update by autodist
* Fri May 03 2013 Automatic Build System <autodist@mambasoft.it> 4.5.16.1-1mamba
- update to 4.5.16.1
* Sun Apr 28 2013 Automatic Build System <autodist@mambasoft.it> 4.5.15-1mamba
- automatic version update by autodist
* Fri Mar 22 2013 Automatic Build System <autodist@mambasoft.it> 4.5.14-1mamba
- automatic version update by autodist
* Sun Oct 02 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.23.3-1mamba
- update to 4.4.23.3
* Sun Jun 19 2011 Automatic Build System <autodist@mambasoft.it> 4.4.19.4-1mamba
- automatic update by autodist
* Sun May 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.19.3-1mamba
- update to 4.4.19.3
* Wed May 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.19.1-1mamba
- update to 4.4.19.1
* Mon Jun 21 2010 Automatic Build System <autodist@mambasoft.it> 4.4.7.6-1mamba
- automatic update by autodist
* Mon Mar 08 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.7.5-1mamba
- update to 4.4.7.5
- added requirement for iptables-ipv6
* Mon Feb 01 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.6-1mamba
- update to 4.4.6
* Sat Feb 28 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.5-1mamba
- automatic update by autodist
* Wed Dec 10 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.2-1mamba
- update to 4.2.2
* Wed Jul 25 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.5-1mamba
- update to 3.4.5
- added a default working configuration for a single host with eth0
* Fri Jun 29 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.4-1mamba
- package created by autospec