* 0001-firewall-backend-Switch-default-backend-to-iptables.patch

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/firewalld?expand=0&rev=77
This commit is contained in:
Markos Chandras
2018-08-13 19:34:27 +00:00
committed by Git OBS Bridge
parent 664b2c231f
commit fb97f07a3e
3 changed files with 64 additions and 4 deletions

View File

@@ -28,6 +28,8 @@ License: GPL-2.0-or-later
Group: Productivity/Networking/Security
Url: http://www.firewalld.org
Source: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-SUSE: 0001-firewall-backend-Switch-default-backend-to-iptables.patch (bsc#1102761)
Patch0: 0001-firewall-backend-Switch-default-backend-to-iptables.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: desktop-file-utils
@@ -110,14 +112,12 @@ firewalld.
%prep
%setup -q
# bsc#1102761 - switch to iptables as default
%patch0 -p1
# bsc#1078223
rm config/services/high-availability.xml
# bsc#1102761 - switch to iptables as default
sed -i "/^FirewallBackend/s/=.*/=iptables/" config/firewalld.conf
sed -i '/^FALLBACK_FIREWALL_BACKEND/s/=.*/= "iptables"/' src/firewall/config/__init__.py.in
%build
export PYTHON="%{_bindir}/python3"
./autogen.sh