%define majver %(echo %version | cut -d. -f1-2) %define maj3ver %(echo %version | cut -d. -f1-3) Name: shorewall Version: 5.2.8 Release: 3mamba Summary: Shoreline Firewall, a high-level tool for configuring Netfilter Group: Network/Security Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://shorewall.org/ Source: https://shorewall.org/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: https://shorewall.org/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 Source10: https://shorewall.org/pub/shorewall/%{majver}/shorewall-%{maj3ver}/shorewall6-%{version}.tar.bz2 Source12: shorewall-interfaces6 Source13: shorewall-policy6 Source14: shorewall-rules6 Source15: shorewall-zones6 License: GPL BuildArch: noarch ## AUTOBUILDREQ-BEGIN BuildRequires: libperl BuildRequires: perl-Scalar-List-Utils BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: shorewall-core >= %{version} Requires: shorewall-core >= %{version} Requires: iptables Requires: iptables-ipv6 Requires: perl-Socket6 %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. %prep %setup -q -a6 -a10 sed -i "s|shorewall -6|shorewall6|" shorewall6-%{version}/shorewall6.service %build cd shorewall6-%{version} ./configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --mandir=%{_mandir} \ --sysconfdir=%{_sysconfdir} \ --systemd=%{_unitdir} \ HOST=linux cd .. ./configure \ --prefix=%{_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --mandir=%{_mandir} \ --sysconfdir=%{_sysconfdir} \ --systemd=%{_unitdir} \ HOST=linux %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" cd shorewall6-%{version} DESTDIR=%{buildroot} ./install.sh install -D -m0644 shorewall6.service %{buildroot}%{_unitdir}/shorewall6.service cd .. 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 install %{SOURCE12} %{buildroot}%{_sysconfdir}/shorewall6/interfaces install %{SOURCE13} %{buildroot}%{_sysconfdir}/shorewall6/policy install %{SOURCE14} %{buildroot}%{_sysconfdir}/shorewall6/rules install %{SOURCE15} %{buildroot}%{_sysconfdir}/shorewall6/zones install -D -m0644 shorewall.service %{buildroot}%{_unitdir}/shorewall.service rm -f %{buildroot}%{_sysconfdir}/init.d/shorewall rm -f %{buildroot}%{_sysconfdir}/init.d/shorewall6 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %systemd_post shorewall %systemd_post shorewall6 : %preun %systemd_preun shorewall %systemd_preun shorewall6 : %postun %systemd_postun_with_restart shorewall %systemd_postun_with_restart shorewall6 : %files %defattr(-,root,root) %dir %{_sysconfdir}/shorewall %config(noreplace) %{_sysconfdir}/shorewall/* %dir %{_sysconfdir}/shorewall6 %config(noreplace) %{_sysconfdir}/shorewall6/* %{_sysconfdir}/logrotate.d/shorewall %{_sysconfdir}/logrotate.d/shorewall6 #/sbin/shorewall %{_sbindir}/shorewall6 %{_unitdir}/shorewall.service %{_unitdir}/shorewall6.service %dir %{_datadir}/shorewall %{_datadir}/shorewall/* %dir %{_datadir}/shorewall6 %{_datadir}/shorewall6/* %{_mandir}/man5/shorewall*.5* %{_mandir}/man8/shorewall*.8* %dir /var/lib/shorewall %dir /var/lib/shorewall6 #%doc COPYING #README.txt %changelog * Tue Jul 25 2023 Silvan Calarco 5.2.8-3mamba - shorewall6: service script: invoke shorewall6 instead of shorewall -6 * Sun Aug 08 2021 Silvan Calarco 5.2.8-2mamba - update default configuration and systemd service management * Fri Sep 25 2020 Automatic Build System 5.2.8-1mamba - automatic version update by autodist * Wed Sep 09 2020 Silvan Calarco 5.2.7-1mamba - update to 5.2.7 * Tue Jul 07 2020 Automatic Build System 5.2.6-1mamba - automatic version update by autodist * Mon Jun 29 2020 Automatic Build System 5.2.5.2-1mamba - automatic version update by autodist * Wed Jun 24 2020 Automatic Build System 5.2.5.1-1mamba - automatic version update by autodist * Mon Jun 15 2020 Automatic Build System 5.2.5-1mamba - automatic version update by autodist * Sat May 16 2020 Automatic Build System 5.2.4.5-1mamba - automatic version update by autodist * Fri May 01 2020 Automatic Build System 5.2.4.4-1mamba - automatic version update by autodist * Fri Apr 24 2020 Automatic Build System 5.2.4.3-1mamba - automatic version update by autodist * Tue Apr 21 2020 Automatic Build System 5.2.4.2-1mamba - automatic version update by autodist * Sat Apr 18 2020 Automatic Build System 5.2.4.1-1mamba - automatic version update by autodist * Wed Mar 25 2020 Automatic Build System 5.2.4-1mamba - automatic version update by autodist * Tue Mar 10 2020 Automatic Build System 5.2.3.7-1mamba - automatic version update by autodist * Thu Feb 20 2020 Automatic Build System 5.2.3.6-1mamba - automatic version update by autodist * Sun Jan 19 2020 Automatic Build System 5.2.3.5-1mamba - automatic version update by autodist * Fri Aug 30 2019 Automatic Build System 5.2.3.4-1mamba - automatic version update by autodist * Mon Apr 15 2019 Automatic Build System 5.2.3.3-1mamba - automatic version update by autodist * Tue Mar 19 2019 Automatic Build System 5.2.3.2-1mamba - automatic version update by autodist * Thu Feb 28 2019 Automatic Build System 5.2.3.1-1mamba - automatic version update by autodist * Sun Feb 17 2019 Automatic Build System 5.2.3-1mamba - automatic version update by autodist * Tue Jan 29 2019 Automatic Build System 5.2.2-1mamba - automatic version update by autodist * Sun Dec 23 2018 Automatic Build System 5.2.1.4-1mamba - automatic version update by autodist * Thu Dec 13 2018 Automatic Build System 5.2.1.3-1mamba - automatic version update by autodist * Thu Dec 06 2018 Automatic Build System 5.2.1.2-1mamba - automatic version update by autodist * Wed Oct 31 2018 Automatic Build System 5.2.1.1-1mamba - automatic version update by autodist * Thu Oct 04 2018 Automatic Build System 5.2.1-1mamba - automatic version update by autodist * Mon Jun 04 2018 Automatic Build System 5.2.0.4-1mamba - automatic version update by autodist * Mon Mar 05 2018 Automatic Build System 5.1.12.3-1mamba - automatic version update by autodist * Sat Feb 10 2018 Automatic Build System 5.1.12.1-1mamba - automatic version update by autodist * Tue Jan 30 2018 Automatic Build System 5.1.11.2-1mamba - automatic version update by autodist * Mon Jan 22 2018 Automatic Build System 5.1.11.1-1mamba - automatic version update by autodist * Fri Jan 05 2018 Automatic Build System 5.1.10.2-1mamba - automatic version update by autodist * Sat Nov 11 2017 Automatic Build System 5.1.8.1-1mamba - automatic version update by autodist * Mon Oct 23 2017 Automatic Build System 5.1.8-1mamba - automatic version update by autodist * Sun Oct 08 2017 Automatic Build System 5.1.7.2-1mamba - automatic version update by autodist * Mon Sep 25 2017 Automatic Build System 5.1.7.1-1mamba - automatic version update by autodist * Sat Sep 09 2017 Automatic Build System 5.1.6.1-1mamba - automatic version update by autodist * Wed Aug 09 2017 Automatic Build System 5.1.5.2-1mamba - automatic version update by autodist * Sat Jun 17 2017 Silvan Calarco 5.1.3.2-1mamba - update to 5.1.3.2 * Fri Dec 23 2016 Automatic Build System 5.0.15.2-1mamba - automatic version update by autodist * Fri Dec 16 2016 Automatic Build System 5.0.15.1-1mamba - automatic version update by autodist * Sat Nov 05 2016 Automatic Build System 5.0.14-1mamba - automatic version update by autodist * Wed Oct 26 2016 Automatic Build System 5.0.13.4-1mamba - automatic version update by autodist * Wed Oct 19 2016 Automatic Build System 5.0.13-1mamba - automatic version update by autodist * Sun Oct 16 2016 Automatic Build System 5.0.12.1-1mamba - automatic version update by autodist * Thu Sep 01 2016 Automatic Build System 5.0.11-1mamba - automatic version update by autodist * Sun Feb 14 2016 Automatic Build System 5.0.4-1mamba - automatic version update by autodist * Sun Jan 03 2016 Automatic Build System 5.0.3.1-1mamba - automatic version update by autodist * Sat Jan 02 2016 Automatic Build System 5.0.3-1mamba - automatic version update by autodist * Sat Dec 05 2015 Automatic Build System 5.0.2.1-1mamba - automatic version update by autodist * Thu Nov 19 2015 Automatic Build System 5.0.2-1mamba - automatic version update by autodist * Thu Oct 29 2015 Automatic Build System 5.0.1.1-1mamba - automatic version update by autodist * Wed Oct 14 2015 Automatic Build System 5.0.1-1mamba - automatic version update by autodist * Sat Sep 19 2015 Automatic Build System 4.6.13.1-1mamba - automatic version update by autodist * Sun Sep 13 2015 Automatic Build System 4.6.13-1mamba - automatic version update by autodist * Thu Sep 10 2015 Silvan Calarco 4.6.12.1-2mamba - fix default ipv6 rules file * Tue Aug 25 2015 Automatic Build System 4.6.12.1-1mamba - automatic version update by autodist * Sat Aug 22 2015 Automatic Build System 4.6.12-1mamba - automatic version update by autodist * Wed Jul 15 2015 Automatic Build System 4.6.11.1-1mamba - automatic version update by autodist * Wed Jul 08 2015 Automatic Build System 4.6.11-1mamba - automatic version update by autodist * Sat Jun 13 2015 Silvan Calarco 4.6.10.1-2mamba - addded shorewall6 (ipv6) * Thu Jun 11 2015 Automatic Build System 4.6.10.1-1mamba - automatic version update by autodist * Tue Jun 02 2015 Automatic Build System 4.6.10-1mamba - automatic version update by autodist * Thu May 07 2015 Automatic Build System 4.6.9-1mamba - automatic version update by autodist * Sun Apr 12 2015 Automatic Build System 4.6.8.1-1mamba - automatic version update by autodist * Sat Apr 04 2015 Automatic Build System 4.6.8-1mamba - automatic version update by autodist * Thu Mar 12 2015 Automatic Build System 4.6.7-1mamba - automatic version update by autodist * Sat Feb 07 2015 Automatic Build System 4.6.6.2-1mamba - automatic version update by autodist * Sun Jan 25 2015 Automatic Build System 4.6.6.1-1mamba - automatic version update by autodist * Tue Jan 20 2015 Automatic Build System 4.6.6-1mamba - automatic version update by autodist * Tue Jan 13 2015 Automatic Build System 4.6.5.5-1mamba - automatic version update by autodist * Sun Jan 11 2015 Automatic Build System 4.6.5.4-1mamba - automatic version update by autodist * Thu Dec 18 2014 Automatic Build System 4.6.5.3-1mamba - automatic version update by autodist * Thu Dec 11 2014 Automatic Build System 4.6.5.2-1mamba - automatic version update by autodist * Mon Oct 20 2014 Automatic Build System 4.6.4.3-1mamba - automatic version update by autodist * Sun Oct 12 2014 Automatic Build System 4.6.4.1-1mamba - automatic version update by autodist * Thu Sep 18 2014 Automatic Build System 4.6.3.4-1mamba - automatic version update by autodist * Mon Sep 15 2014 Automatic Build System 4.6.3.3-1mamba - automatic version update by autodist * Sat Sep 06 2014 Automatic Build System 4.6.3.2-1mamba - automatic version update by autodist * Fri Aug 29 2014 Automatic Build System 4.6.3.1-1mamba - automatic version update by autodist * Thu Aug 21 2014 Automatic Build System 4.6.3-1mamba - automatic version update by autodist * Fri Aug 15 2014 Automatic Build System 4.6.2.5-1mamba - automatic version update by autodist * Wed Aug 13 2014 Automatic Build System 4.6.2.4-1mamba - automatic version update by autodist * Mon Jul 28 2014 Automatic Build System 4.6.2.3-1mamba - automatic version update by autodist * Sun Jul 20 2014 Automatic Build System 4.6.2.1-1mamba - automatic version update by autodist * Sat Jul 12 2014 Automatic Build System 4.6.1.4-1mamba - automatic version update by autodist * Sun Jun 29 2014 Automatic Build System 4.6.1.3-1mamba - automatic version update by autodist * Mon Jun 23 2014 Automatic Build System 4.6.1.2-1mamba - automatic version update by autodist * Tue Jun 17 2014 Automatic Build System 4.6.1.1-1mamba - automatic version update by autodist * Tue Jun 10 2014 Silvan Calarco 4.6.1-2mamba - rebuilt with systemd support * Mon Jun 09 2014 Automatic Build System 4.6.1-1mamba - automatic version update by autodist * Mon May 12 2014 Automatic Build System 4.5.21.9-1mamba - automatic version update by autodist * Fri Dec 20 2013 Automatic Build System 4.5.21.5-1mamba - automatic version update by autodist * Sun Nov 24 2013 Automatic Build System 4.5.21.4-1mamba - automatic version update by autodist * Sat Oct 26 2013 Automatic Build System 4.5.21.3-1mamba - automatic version update by autodist * Wed Oct 23 2013 Automatic Build System 4.5.21.2-1mamba - automatic version update by autodist * Wed Oct 09 2013 Automatic Build System 4.5.21.1-1mamba - automatic version update by autodist * Sun Oct 06 2013 Automatic Build System 4.5.21-1mamba - automatic version update by autodist * Fri Aug 30 2013 Automatic Build System 4.5.20-1mamba - automatic version update by autodist * Thu Jul 25 2013 Automatic Build System 4.5.19-1mamba - automatic version update by autodist * Sun Jun 30 2013 Automatic Build System 4.5.18-1mamba - automatic version update by autodist * Mon Jun 03 2013 Automatic Build System 4.5.17.1-1mamba - automatic version update by autodist * Sat Jun 01 2013 Automatic Build System 4.5.17-1mamba - automatic version update by autodist * Fri May 03 2013 Automatic Build System 4.5.16.1-1mamba - update to 4.5.16.1 * Sun Apr 28 2013 Automatic Build System 4.5.15-1mamba - automatic version update by autodist * Fri Mar 22 2013 Automatic Build System 4.5.14-1mamba - automatic version update by autodist * Sun Oct 02 2011 Silvan Calarco 4.4.23.3-1mamba - update to 4.4.23.3 * Sun Jun 19 2011 Automatic Build System 4.4.19.4-1mamba - automatic update by autodist * Sun May 15 2011 Silvan Calarco 4.4.19.3-1mamba - update to 4.4.19.3 * Wed May 04 2011 Silvan Calarco 4.4.19.1-1mamba - update to 4.4.19.1 * Mon Jun 21 2010 Automatic Build System 4.4.7.6-1mamba - automatic update by autodist * Mon Mar 08 2010 Silvan Calarco 4.4.7.5-1mamba - update to 4.4.7.5 - added requirement for iptables-ipv6 * Mon Feb 01 2010 Silvan Calarco 4.4.6-1mamba - update to 4.4.6 * Sat Feb 28 2009 Silvan Calarco 4.2.5-1mamba - automatic update by autodist * Wed Dec 10 2008 Silvan Calarco 4.2.2-1mamba - update to 4.2.2 * Wed Jul 25 2007 Silvan Calarco 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 3.4.4-1mamba - package created by autospec