|
|
bdce9f |
Summary: A firewall daemon with D-Bus interface providing a dynamic firewall
|
|
|
bdce9f |
Name: firewalld
|
|
|
339cdd |
Version: 1.2.1
|
|
|
339cdd |
Release: 1%{?dist}
|
|
|
bdce9f |
URL: http://www.firewalld.org
|
|
|
bdce9f |
License: GPLv2+
|
|
|
bdce9f |
Source0: https://github.com/firewalld/firewalld/releases/download/v%{version}/firewalld-%{version}.tar.gz
|
|
|
bdce9f |
Patch1: 0001-RHEL-only-Add-cockpit-by-default-to-some-zones.patch
|
|
|
bdce9f |
BuildArch: noarch
|
|
|
bdce9f |
BuildRequires: autoconf
|
|
|
bdce9f |
BuildRequires: automake
|
|
|
bdce9f |
BuildRequires: desktop-file-utils
|
|
|
bdce9f |
BuildRequires: gettext
|
|
|
bdce9f |
BuildRequires: intltool
|
|
|
bdce9f |
# glib2-devel is needed for gsettings.m4
|
|
|
bdce9f |
BuildRequires: glib2, glib2-devel
|
|
|
bdce9f |
BuildRequires: systemd-units
|
|
|
bdce9f |
BuildRequires: docbook-style-xsl
|
|
|
bdce9f |
BuildRequires: libxslt
|
|
|
bdce9f |
BuildRequires: iptables, ebtables, ipset
|
|
|
bdce9f |
BuildRequires: python3-devel
|
|
|
bdce9f |
BuildRequires: make
|
|
|
bdce9f |
Requires: iptables, ebtables, ipset
|
|
|
bdce9f |
Requires(post): systemd
|
|
|
bdce9f |
Requires(preun): systemd
|
|
|
bdce9f |
Requires(postun): systemd
|
|
|
bdce9f |
Requires: firewalld-filesystem = %{version}-%{release}
|
|
|
bdce9f |
Requires: python3-firewall = %{version}-%{release}
|
|
|
bdce9f |
Obsoletes: firewalld-selinux < 0.4.4.2-2
|
|
|
bdce9f |
Conflicts: selinux-policy < 3.14.1-28
|
|
|
bdce9f |
Conflicts: cockpit-ws < 173-2
|
|
|
bdce9f |
Recommends: libcap-ng-python3
|
|
|
bdce9f |
|
|
|
bdce9f |
%description
|
|
|
bdce9f |
firewalld is a firewall service daemon that provides a dynamic customizable
|
|
|
bdce9f |
firewall with a D-Bus interface.
|
|
|
bdce9f |
|
|
|
bdce9f |
%package -n python3-firewall
|
|
|
bdce9f |
Summary: Python3 bindings for firewalld
|
|
|
bdce9f |
|
|
|
bdce9f |
%{?python_provide:%python_provide python3-firewall}
|
|
|
bdce9f |
|
|
|
bdce9f |
Requires: python3-dbus
|
|
|
bdce9f |
Requires: python3-gobject-base
|
|
|
bdce9f |
Requires: python3-nftables
|
|
|
bdce9f |
|
|
|
bdce9f |
%description -n python3-firewall
|
|
|
bdce9f |
Python3 bindings for firewalld.
|
|
|
bdce9f |
|
|
|
bdce9f |
%package -n firewalld-filesystem
|
|
|
bdce9f |
Summary: Firewalld directory layout and rpm macros
|
|
|
bdce9f |
|
|
|
bdce9f |
%description -n firewalld-filesystem
|
|
|
bdce9f |
This package provides directories and rpm macros which
|
|
|
bdce9f |
are required by other packages that add firewalld configuration files.
|
|
|
bdce9f |
|
|
|
bdce9f |
%package -n firewall-applet
|
|
|
bdce9f |
Summary: Firewall panel applet
|
|
|
bdce9f |
Requires: %{name} = %{version}-%{release}
|
|
|
bdce9f |
Requires: firewall-config = %{version}-%{release}
|
|
|
bdce9f |
Requires: hicolor-icon-theme
|
|
|
bdce9f |
Requires: python3-qt5-base
|
|
|
bdce9f |
Requires: python3-gobject
|
|
|
bdce9f |
Requires: libnotify
|
|
|
bdce9f |
Requires: NetworkManager-libnm
|
|
|
bdce9f |
Requires: dbus-x11
|
|
|
bdce9f |
|
|
|
bdce9f |
%description -n firewall-applet
|
|
|
bdce9f |
The firewall panel applet provides a status information of firewalld and also
|
|
|
bdce9f |
the firewall settings.
|
|
|
bdce9f |
|
|
|
bdce9f |
%package -n firewall-config
|
|
|
bdce9f |
Summary: Firewall configuration application
|
|
|
bdce9f |
Requires: %{name} = %{version}-%{release}
|
|
|
bdce9f |
Requires: hicolor-icon-theme
|
|
|
bdce9f |
Requires: gtk3
|
|
|
bdce9f |
Requires: python3-gobject
|
|
|
bdce9f |
Requires: NetworkManager-libnm
|
|
|
bdce9f |
Requires: dbus-x11
|
|
|
bdce9f |
Recommends: polkit
|
|
|
bdce9f |
|
|
|
bdce9f |
%description -n firewall-config
|
|
|
bdce9f |
The firewall configuration application provides an configuration interface for
|
|
|
bdce9f |
firewalld.
|
|
|
bdce9f |
|
|
|
bdce9f |
%pretrans -p <lua>
|
|
|
bdce9f |
-- HACK: Old rpm versions had an untracked (%ghost) symlink for
|
|
|
bdce9f |
-- /etc/firewalld/firewalld.conf. RPM won't handle replacing the symlink due to
|
|
|
bdce9f |
-- "%config(noreplace)". As such, we remove the symlink here before attempting
|
|
|
bdce9f |
-- to install the new version which is a real file. Only replace the symlink if
|
|
|
bdce9f |
-- the target matches one of the previous package's expected targets.
|
|
|
bdce9f |
--
|
|
|
bdce9f |
-- Unfortunately this must be done in pretrans in order to occur before RPM
|
|
|
bdce9f |
-- makes decisions about file replacement.
|
|
|
bdce9f |
--
|
|
|
bdce9f |
local old_package_symlinks = {"firewalld-standard.conf", "firewalld-server.conf",
|
|
|
bdce9f |
"firewalld-workstation.conf"}
|
|
|
bdce9f |
|
|
|
bdce9f |
local symlink_target = posix.readlink("%{_sysconfdir}/firewalld/firewalld.conf")
|
|
|
bdce9f |
for k,v in ipairs(old_package_symlinks) do
|
|
|
bdce9f |
if symlink_target == v then
|
|
|
bdce9f |
posix.unlink("%{_sysconfdir}/firewalld/firewalld.conf")
|
|
|
bdce9f |
break
|
|
|
bdce9f |
end
|
|
|
bdce9f |
end
|
|
|
bdce9f |
|
|
|
bdce9f |
%prep
|
|
|
bdce9f |
%autosetup -p1
|
|
|
bdce9f |
|
|
|
bdce9f |
%build
|
|
|
bdce9f |
%configure --enable-sysconfig --enable-rpmmacros PYTHON="%{__python3} %{py3_shbang_opts}"
|
|
|
bdce9f |
make %{?_smp_mflags}
|
|
|
bdce9f |
|
|
|
bdce9f |
%install
|
|
|
bdce9f |
make install DESTDIR=%{buildroot}
|
|
|
bdce9f |
desktop-file-install --delete-original \
|
|
|
bdce9f |
--dir %{buildroot}%{_sysconfdir}/xdg/autostart \
|
|
|
bdce9f |
%{buildroot}%{_sysconfdir}/xdg/autostart/firewall-applet.desktop
|
|
|
bdce9f |
desktop-file-install --delete-original \
|
|
|
bdce9f |
--dir %{buildroot}%{_datadir}/applications \
|
|
|
bdce9f |
%{buildroot}%{_datadir}/applications/firewall-config.desktop
|
|
|
bdce9f |
|
|
|
bdce9f |
install -d -m 755 %{buildroot}%{_prefix}/lib/firewalld/zones/
|
|
|
bdce9f |
|
|
|
bdce9f |
# remove unhandle firewalld-test subpackage
|
|
|
bdce9f |
rm -rf %{buildroot}%{_datadir}/firewalld/testsuite
|
|
|
bdce9f |
|
|
|
bdce9f |
%find_lang %{name} --all-name
|
|
|
bdce9f |
|
|
|
bdce9f |
%post
|
|
|
bdce9f |
%systemd_post firewalld.service
|
|
|
bdce9f |
|
|
|
bdce9f |
%preun
|
|
|
bdce9f |
%systemd_preun firewalld.service
|
|
|
bdce9f |
|
|
|
bdce9f |
%postun
|
|
|
bdce9f |
%systemd_postun_with_restart firewalld.service
|
|
|
bdce9f |
|
|
|
bdce9f |
%files -f %{name}.lang
|
|
|
339cdd |
%doc COPYING README.md
|
|
|
bdce9f |
%{_sbindir}/firewalld
|
|
|
bdce9f |
%{_bindir}/firewall-cmd
|
|
|
bdce9f |
%{_bindir}/firewall-offline-cmd
|
|
|
bdce9f |
%dir %{_datadir}/bash-completion/completions
|
|
|
bdce9f |
%{_datadir}/bash-completion/completions/firewall-cmd
|
|
|
bdce9f |
%dir %{_datadir}/zsh/site-functions
|
|
|
bdce9f |
%{_datadir}/zsh/site-functions/_firewalld
|
|
|
bdce9f |
%{_prefix}/lib/firewalld/icmptypes/*.xml
|
|
|
339cdd |
%{_prefix}/lib/firewalld/ipsets/README.md
|
|
|
bdce9f |
%{_prefix}/lib/firewalld/policies/*.xml
|
|
|
bdce9f |
%{_prefix}/lib/firewalld/services/*.xml
|
|
|
bdce9f |
%{_prefix}/lib/firewalld/zones/*.xml
|
|
|
bdce9f |
%{_prefix}/lib/firewalld/helpers/*.xml
|
|
|
bdce9f |
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld
|
|
|
bdce9f |
%config(noreplace) %{_sysconfdir}/firewalld/firewalld.conf
|
|
|
bdce9f |
%config(noreplace) %{_sysconfdir}/firewalld/lockdown-whitelist.xml
|
|
|
bdce9f |
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/helpers
|
|
|
bdce9f |
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/icmptypes
|
|
|
bdce9f |
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/ipsets
|
|
|
bdce9f |
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/policies
|
|
|
bdce9f |
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/services
|
|
|
bdce9f |
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/zones
|
|
|
bdce9f |
%defattr(0644,root,root)
|
|
|
bdce9f |
%config(noreplace) %{_sysconfdir}/sysconfig/firewalld
|
|
|
bdce9f |
%{_unitdir}/firewalld.service
|
|
|
bdce9f |
%config(noreplace) %{_datadir}/dbus-1/system.d/FirewallD.conf
|
|
|
bdce9f |
%{_datadir}/polkit-1/actions/org.fedoraproject.FirewallD1.desktop.policy.choice
|
|
|
bdce9f |
%{_datadir}/polkit-1/actions/org.fedoraproject.FirewallD1.server.policy.choice
|
|
|
bdce9f |
%{_datadir}/polkit-1/actions/org.fedoraproject.FirewallD1.policy
|
|
|
bdce9f |
%{_mandir}/man1/firewall*cmd*.1*
|
|
|
bdce9f |
%{_mandir}/man1/firewalld*.1*
|
|
|
bdce9f |
%{_mandir}/man5/firewall*.5*
|
|
|
bdce9f |
%{_sysconfdir}/modprobe.d/firewalld-sysctls.conf
|
|
|
bdce9f |
%{_sysconfdir}/logrotate.d/firewalld
|
|
|
bdce9f |
|
|
|
bdce9f |
%files -n python3-firewall
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/__pycache__
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/config
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/config/__pycache__
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/core
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/core/__pycache__
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/core/io
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/core/io/__pycache__
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/server
|
|
|
bdce9f |
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/server/__pycache__
|
|
|
bdce9f |
%{python3_sitelib}/firewall/__pycache__/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/config/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/config/__pycache__/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/core/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/core/__pycache__/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/core/io/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/core/io/__pycache__/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/server/*.py*
|
|
|
bdce9f |
%{python3_sitelib}/firewall/server/__pycache__/*.py*
|
|
|
bdce9f |
|
|
|
bdce9f |
%files -n firewalld-filesystem
|
|
|
bdce9f |
%dir %{_prefix}/lib/firewalld
|
|
|
bdce9f |
%dir %{_prefix}/lib/firewalld/helpers
|
|
|
bdce9f |
%dir %{_prefix}/lib/firewalld/icmptypes
|
|
|
bdce9f |
%dir %{_prefix}/lib/firewalld/ipsets
|
|
|
bdce9f |
%dir %{_prefix}/lib/firewalld/policies
|
|
|
bdce9f |
%dir %{_prefix}/lib/firewalld/services
|
|
|
bdce9f |
%dir %{_prefix}/lib/firewalld/zones
|
|
|
bdce9f |
%{_rpmconfigdir}/macros.d/macros.firewalld
|
|
|
bdce9f |
|
|
|
bdce9f |
%files -n firewall-applet
|
|
|
bdce9f |
%{_bindir}/firewall-applet
|
|
|
bdce9f |
%defattr(0644,root,root)
|
|
|
bdce9f |
%{_sysconfdir}/xdg/autostart/firewall-applet.desktop
|
|
|
bdce9f |
%dir %{_sysconfdir}/firewall
|
|
|
bdce9f |
%{_sysconfdir}/firewall/applet.conf
|
|
|
bdce9f |
%{_datadir}/icons/hicolor/*/apps/firewall-applet*.*
|
|
|
bdce9f |
%{_mandir}/man1/firewall-applet*.1*
|
|
|
bdce9f |
|
|
|
bdce9f |
%files -n firewall-config
|
|
|
bdce9f |
%{_bindir}/firewall-config
|
|
|
bdce9f |
%defattr(0644,root,root)
|
|
|
bdce9f |
%{_datadir}/firewalld/firewall-config.glade
|
|
|
bdce9f |
%{_datadir}/firewalld/gtk3_chooserbutton.py*
|
|
|
bdce9f |
%{_datadir}/firewalld/gtk3_niceexpander.py*
|
|
|
bdce9f |
%{_datadir}/applications/firewall-config.desktop
|
|
|
bdce9f |
%{_datadir}/metainfo/firewall-config.appdata.xml
|
|
|
bdce9f |
%{_datadir}/icons/hicolor/*/apps/firewall-config*.*
|
|
|
bdce9f |
%{_datadir}/glib-2.0/schemas/org.fedoraproject.FirewallConfig.gschema.xml
|
|
|
bdce9f |
%{_mandir}/man1/firewall-config*.1*
|
|
|
bdce9f |
|
|
|
bdce9f |
%changelog
|
|
|
339cdd |
* Mon Nov 07 2022 Eric Garver <egarver@redhat.com> - 1.2.1-1
|
|
|
339cdd |
- package rebase to v1.2.1
|
|
|
339cdd |
|
|
|
4f81f0 |
* Wed Aug 03 2022 Eric Garver <egarver@redhat.com> - 1.1.1-3
|
|
|
4f81f0 |
- fix(runtimeToPermanent): errors for interfaces not in zone
|
|
|
4f81f0 |
|
|
|
4f81f0 |
* Fri Jul 15 2022 Eric Garver <egarver@redhat.com> - 1.1.1-2
|
|
|
4f81f0 |
- test(functions): normalize iptables ipv6-icmp/icmpv6
|
|
|
4f81f0 |
|
|
|
4f81f0 |
* Mon May 16 2022 Eric Garver <egarver@redhat.com> - 1.1.1-1
|
|
|
4f81f0 |
- package rebase to v1.1.1
|
|
|
4f81f0 |
|
|
|
bdce9f |
* Mon Nov 22 2021 Eric Garver <egarver@redhat.com> - 1.0.0-4
|
|
|
bdce9f |
- fix(firewalld): check capng_apply() return code
|
|
|
bdce9f |
|
|
|
bdce9f |
* Mon Nov 22 2021 Eric Garver <egarver@redhat.com> - 1.0.0-3
|
|
|
bdce9f |
- fix(firewalld): keep linux capability CAP_SYS_MODULE
|
|
|
bdce9f |
|
|
|
bdce9f |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.0-2
|
|
|
bdce9f |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
bdce9f |
Related: rhbz#1991688
|
|
|
bdce9f |
|
|
|
bdce9f |
* Mon Jul 26 2021 Eric Garver <egarver@redhat.com> - 1.0.0-1
|
|
|
bdce9f |
- package rebase to v1.0.0
|
|
|
bdce9f |
|
|
|
bdce9f |
* Mon Jun 07 2021 Eric Garver <egarver@redhat.com> - 1.0.0-0.3.alpha
|
|
|
bdce9f |
- remove dead symlink (firewalld.conf) left over from old package versions
|
|
|
bdce9f |
before installing new file
|
|
|
bdce9f |
|
|
|
bdce9f |
* Tue Jun 01 2021 Eric Garver <egarver@redhat.com> - 1.0.0-0.2.alpha
|
|
|
bdce9f |
- fix missing policy kit symlink
|
|
|
bdce9f |
|
|
|
bdce9f |
* Tue May 25 2021 Eric Garver <egarver@redhat.com> - 1.0.0-0.1.alpha
|
|
|
bdce9f |
- package rebase to v1.0.0-alpha
|