contrib/rpm: install firewall zone unconditionally
It's the same on all systems we care about.
This commit is contained in:
@@ -111,11 +111,6 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_without iwd
|
%bcond_without iwd
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?fedora} >= 32 || 0%{?rhel} >= 8
|
|
||||||
%bcond_without firewalld_zone
|
|
||||||
%else
|
|
||||||
%bcond_with firewalld_zone
|
|
||||||
%endif
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
@@ -338,9 +333,7 @@ BuildRequires: libasan
|
|||||||
BuildRequires: libubsan
|
BuildRequires: libubsan
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if %{with firewalld_zone}
|
|
||||||
BuildRequires: firewalld-filesystem
|
BuildRequires: firewalld-filesystem
|
||||||
%endif
|
|
||||||
BuildRequires: iproute
|
BuildRequires: iproute
|
||||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
BuildRequires: iproute-tc
|
BuildRequires: iproute-tc
|
||||||
@@ -758,11 +751,6 @@ Preferably use nmcli instead.
|
|||||||
-Dpppd_plugin_dir="%{_libdir}/pppd/%{ppp_version}" \
|
-Dpppd_plugin_dir="%{_libdir}/pppd/%{ppp_version}" \
|
||||||
%else
|
%else
|
||||||
-Dppp=false \
|
-Dppp=false \
|
||||||
%endif
|
|
||||||
%if %{with firewalld_zone}
|
|
||||||
-Dfirewalld_zone=true \
|
|
||||||
%else
|
|
||||||
-Dfirewalld_zone=false \
|
|
||||||
%endif
|
%endif
|
||||||
-Ddist_version=%{version}-%{release} \
|
-Ddist_version=%{version}-%{release} \
|
||||||
%if %{?config_plugins_default_ifcfg_rh}
|
%if %{?config_plugins_default_ifcfg_rh}
|
||||||
@@ -910,11 +898,7 @@ autoreconf --install --force
|
|||||||
%else
|
%else
|
||||||
--enable-ppp=no \
|
--enable-ppp=no \
|
||||||
%endif
|
%endif
|
||||||
%if %{with firewalld_zone}
|
|
||||||
--enable-firewalld-zone=yes \
|
--enable-firewalld-zone=yes \
|
||||||
%else
|
|
||||||
--enable-firewalld-zone=no \
|
|
||||||
%endif
|
|
||||||
--with-dist-version=%{version}-%{release} \
|
--with-dist-version=%{version}-%{release} \
|
||||||
%if %{?config_plugins_default_ifcfg_rh}
|
%if %{?config_plugins_default_ifcfg_rh}
|
||||||
--with-config-plugins-default=ifcfg-rh \
|
--with-config-plugins-default=ifcfg-rh \
|
||||||
@@ -1023,9 +1007,7 @@ if [ -S /run/udev/control ]; then
|
|||||||
/usr/bin/udevadm control --reload-rules || :
|
/usr/bin/udevadm control --reload-rules || :
|
||||||
/usr/bin/udevadm trigger --subsystem-match=net || :
|
/usr/bin/udevadm trigger --subsystem-match=net || :
|
||||||
fi
|
fi
|
||||||
%if %{with firewalld_zone}
|
|
||||||
%firewalld_reload
|
%firewalld_reload
|
||||||
%endif
|
|
||||||
|
|
||||||
%systemd_post %{systemd_units}
|
%systemd_post %{systemd_units}
|
||||||
|
|
||||||
@@ -1076,9 +1058,7 @@ fi
|
|||||||
%postun
|
%postun
|
||||||
/usr/bin/udevadm control --reload-rules || :
|
/usr/bin/udevadm control --reload-rules || :
|
||||||
/usr/bin/udevadm trigger --subsystem-match=net || :
|
/usr/bin/udevadm trigger --subsystem-match=net || :
|
||||||
%if %{with firewalld_zone}
|
|
||||||
%firewalld_reload
|
%firewalld_reload
|
||||||
%endif
|
|
||||||
|
|
||||||
%systemd_postun %{systemd_units}
|
%systemd_postun %{systemd_units}
|
||||||
|
|
||||||
@@ -1150,9 +1130,7 @@ fi
|
|||||||
%{_datadir}/dbus-1/system-services/org.freedesktop.nm_priv_helper.service
|
%{_datadir}/dbus-1/system-services/org.freedesktop.nm_priv_helper.service
|
||||||
%{_datadir}/polkit-1/actions/*.policy
|
%{_datadir}/polkit-1/actions/*.policy
|
||||||
%{_prefix}/lib/udev/rules.d/*.rules
|
%{_prefix}/lib/udev/rules.d/*.rules
|
||||||
%if %{with firewalld_zone}
|
|
||||||
%{_prefix}/lib/firewalld/zones/nm-shared.xml
|
%{_prefix}/lib/firewalld/zones/nm-shared.xml
|
||||||
%endif
|
|
||||||
# systemd stuff
|
# systemd stuff
|
||||||
%{_unitdir}/NetworkManager.service
|
%{_unitdir}/NetworkManager.service
|
||||||
%{_unitdir}/NetworkManager-wait-online.service
|
%{_unitdir}/NetworkManager-wait-online.service
|
||||||
|
Reference in New Issue
Block a user