Accepting request 357329 from home:markoschandras:firewalld
I want to maintain firewalld in Factory and would like to use security:netfilter as the devel project OBS-URL: https://build.opensuse.org/request/show/357329 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/firewalld?expand=0&rev=1
This commit is contained in:
commit
d9ec731871
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
7
_service
Normal file
7
_service
Normal file
@ -0,0 +1,7 @@
|
||||
<services>
|
||||
<service name="verify_file">
|
||||
<param name="file">firewalld-0.4.0.tar.bz2</param>
|
||||
<param name="verifier">sha1</param>
|
||||
<param name="checksum">f1818ed82a3e3f14b4315a2dd32c2a268ce223b3</param>
|
||||
</service>
|
||||
</services>
|
31
drop-standard-output-error-systemd.patch
Normal file
31
drop-standard-output-error-systemd.patch
Normal file
@ -0,0 +1,31 @@
|
||||
From 497bb64353948ee18e402bcb00265708e0877ac0 Mon Sep 17 00:00:00 2001
|
||||
From: Markos Chandras <mchandras@suse.de>
|
||||
Date: Tue, 12 Jan 2016 11:47:45 +0000
|
||||
Subject: [PATCH] config: firewalld.service: Drop Standard{Output,Error}
|
||||
|
||||
Drop the Standard{Output,Error}=null options so we can use the system
|
||||
logger to find out what firewalld is doing. It also helps when using
|
||||
--debug in /etc/sysconfig/firewalld as well
|
||||
---
|
||||
Upstream PR: https://github.com/t-woerner/firewalld/pull/67
|
||||
---
|
||||
config/firewalld.service.in | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/config/firewalld.service.in b/config/firewalld.service.in
|
||||
index 08afe5b..3918835 100644
|
||||
--- a/config/firewalld.service.in
|
||||
+++ b/config/firewalld.service.in
|
||||
@@ -9,9 +9,6 @@ Conflicts=iptables.service ip6tables.service ebtables.service ipset.service
|
||||
EnvironmentFile=-/etc/sysconfig/firewalld
|
||||
ExecStart=@sbindir@/firewalld --nofork --nopid $FIREWALLD_ARGS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
-# supress to log debug and error output also to /var/log/messages
|
||||
-StandardOutput=null
|
||||
-StandardError=null
|
||||
Type=dbus
|
||||
BusName=org.fedoraproject.FirewallD1
|
||||
|
||||
--
|
||||
2.6.2
|
||||
|
3
firewalld-0.4.0.tar.bz2
Normal file
3
firewalld-0.4.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:858dca878c65853dec9044e3531a7ee4cd00a1766c268c354eb3480fe6e14914
|
||||
size 603881
|
5
firewalld.changes
Normal file
5
firewalld.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 1 11:28:12 UTC 2016 - mchandras@suse.de
|
||||
|
||||
- Initial commit. Version 0.4.0
|
||||
* drop-standard-output-error-systemd.patch (gh#t-woerner/firewalld/pull/67)
|
237
firewalld.spec
Normal file
237
firewalld.spec
Normal file
@ -0,0 +1,237 @@
|
||||
#
|
||||
# spec file for package firewalld
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: firewalld
|
||||
Version: 0.4.0
|
||||
Release: 0
|
||||
Summary: A firewall daemon with D-Bus interface providing a dynamic firewall
|
||||
License: GPL-2.0+
|
||||
Group: Productivity/Networking/Security
|
||||
Url: http://www.firewalld.org
|
||||
Source: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.bz2
|
||||
# PATCH-FIX-UPSTREAM: drop-standard-output-error-systemd.patch,
|
||||
# https://github.com/t-woerner/firewalld/pull/67(pending) -- Do not supress
|
||||
# stdout/stderr for firewalld
|
||||
Patch0: drop-standard-output-error-systemd.patch
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: gettext
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: gobject-introspection
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: intltool
|
||||
BuildRequires: python-devel
|
||||
Requires: dbus-1-python
|
||||
Requires: ebtables
|
||||
Requires: ipset
|
||||
Requires: iptables
|
||||
Requires: python-decorator
|
||||
Requires: python-gobject
|
||||
Requires: python-slip-dbus
|
||||
Requires: sysconfig
|
||||
Requires(post): %fillup_prereq
|
||||
BuildArch: noarch
|
||||
%{?systemd_requires}
|
||||
%if 0%{?suse_version} >= 1210
|
||||
BuildRequires: systemd-rpm-macros
|
||||
%endif
|
||||
|
||||
%description
|
||||
firewalld is a firewall service daemon that provides a dynamic customizable
|
||||
firewall with a D-Bus interface.
|
||||
|
||||
%package -n firewall-applet
|
||||
Summary: Firewall panel applet
|
||||
Group: Productivity/Networking/Security
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: firewall-config = %{version}-%{release}
|
||||
Requires: gtk3
|
||||
Requires: hicolor-icon-theme
|
||||
Requires: libnotify
|
||||
Requires: NetworkManager-glib
|
||||
Requires: python-gobject
|
||||
Requires: python-qt4
|
||||
|
||||
%description -n firewall-applet
|
||||
The firewall panel applet provides a status information of firewalld and also
|
||||
the firewall settings.
|
||||
|
||||
%package -n firewall-config
|
||||
Summary: Firewall configuration application
|
||||
Group: Productivity/Networking/Security
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: gtk3
|
||||
Requires: hicolor-icon-theme
|
||||
Requires: NetworkManager-glib
|
||||
Requires: python-gobject
|
||||
|
||||
%description -n firewall-config
|
||||
The firewall configuration application provides an configuration interface for
|
||||
firewalld.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure --enable-sysconfig --enable-rpmmacros
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install
|
||||
|
||||
%py_compile %{buildroot}
|
||||
|
||||
desktop-file-install --delete-original \
|
||||
--dir %{buildroot}%{_sysconfdir}/xdg/autostart \
|
||||
%{buildroot}%{_sysconfdir}/xdg/autostart/firewall-applet.desktop
|
||||
|
||||
desktop-file-install --delete-original \
|
||||
--dir %{buildroot}%{_datadir}/applications \
|
||||
%{buildroot}%{_datadir}/applications/firewall-config.desktop
|
||||
|
||||
# fillup_only will take care of that
|
||||
%{_bindir}/install -c -D -m 600 %{buildroot}%{_sysconfdir}/sysconfig/firewalld %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
||||
rm %{buildroot}%{_sysconfdir}/sysconfig/firewalld
|
||||
|
||||
ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rcfirewalld
|
||||
|
||||
# Put RPM macros into /etc/rpm/
|
||||
rm %{buildroot}%{_rpmconfigdir}/macros.d/macros.firewalld
|
||||
install -D -m644 config/macros.firewalld %{buildroot}%{_sysconfdir}/rpm/macros.firewalld
|
||||
|
||||
%find_lang %{name} --all-name
|
||||
|
||||
%pre
|
||||
%service_add_pre firewalld.service
|
||||
|
||||
%post
|
||||
%service_add_post firewalld.service
|
||||
%fillup_only firewalld
|
||||
|
||||
%preun
|
||||
%service_del_preun firewalld.service
|
||||
|
||||
%postun
|
||||
# We might a have runtime configuration which we haven't
|
||||
# made it permanent yet so restarting the service could be
|
||||
# dangerous. It's safer to not touch the firewall ourselves but
|
||||
# Let the user restart it whenever he feels like it.
|
||||
export DISABLE_RESTART_ON_UPDATE=1
|
||||
%service_del_postun firewalld.service
|
||||
|
||||
%post -n firewall-applet
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%postun -n firewall-applet
|
||||
if [ $1 -eq 0 ] ; then
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans -n firewall-applet
|
||||
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
|
||||
|
||||
%post -n firewall-config
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
|
||||
%postun -n firewall-config
|
||||
if [ $1 -eq 0 ] ; then
|
||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
fi
|
||||
|
||||
%posttrans -n firewall-config
|
||||
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%doc COPYING README
|
||||
%{_sbindir}/firewalld
|
||||
%{_sbindir}/rcfirewalld
|
||||
%{_bindir}/firewall-cmd
|
||||
%{_bindir}/firewall-offline-cmd
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%{_datadir}/bash-completion/completions/firewall-cmd
|
||||
%{_libexecdir}/firewalld/xmlschema/*.xsd
|
||||
%{_libexecdir}/firewalld/xmlschema/check.sh
|
||||
%{_libexecdir}/firewalld/icmptypes/*.xml
|
||||
%{_libexecdir}/firewalld/ipsets/README
|
||||
%{_libexecdir}/firewalld/services/*.xml
|
||||
%{_libexecdir}/firewalld/zones/*.xml
|
||||
%{_datadir}/polkit-1
|
||||
%{_sysconfdir}/rpm/macros.firewalld
|
||||
%dir %{_sysconfdir}/dbus-1
|
||||
%dir %{_sysconfdir}/dbus-1/system.d
|
||||
%attr(0750,root,root) %dir %{_libexecdir}/firewalld
|
||||
%attr(0750,root,root) %dir %{_libexecdir}/firewalld/xmlschema
|
||||
%attr(0750,root,root) %dir %{_libexecdir}/firewalld/icmptypes
|
||||
%attr(0750,root,root) %dir %{_libexecdir}/firewalld/ipsets
|
||||
%attr(0750,root,root) %dir %{_libexecdir}/firewalld/services
|
||||
%attr(0750,root,root) %dir %{_libexecdir}/firewalld/zones
|
||||
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld
|
||||
%config(noreplace) %{_sysconfdir}/firewalld/firewalld.conf
|
||||
%config(noreplace) %{_sysconfdir}/firewalld/lockdown-whitelist.xml
|
||||
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/icmptypes
|
||||
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/services
|
||||
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/zones
|
||||
%defattr(0644,root,root)
|
||||
%{_unitdir}/firewalld.service
|
||||
%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
|
||||
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/FirewallD.conf
|
||||
%attr(0755,root,root) %dir %{python_sitelib}/firewall
|
||||
%attr(0755,root,root) %dir %{python_sitelib}/firewall/config
|
||||
%attr(0755,root,root) %dir %{python_sitelib}/firewall/core
|
||||
%attr(0755,root,root) %dir %{python_sitelib}/firewall/core/io
|
||||
%attr(0755,root,root) %dir %{python_sitelib}/firewall/server
|
||||
%{python_sitelib}/firewall/*.py*
|
||||
%{python_sitelib}/firewall/config/*.py*
|
||||
%{python_sitelib}/firewall/core/*.py*
|
||||
%{python_sitelib}/firewall/core/io/*.py*
|
||||
%{python_sitelib}/firewall/server/*.py*
|
||||
%{_mandir}/man1/firewall*cmd*.1*
|
||||
%{_mandir}/man1/firewalld*.1*
|
||||
%{_mandir}/man5/firewall*.5*
|
||||
|
||||
%files -n firewall-applet
|
||||
%defattr(0644,root,root)
|
||||
%attr(0755,root,root) %{_bindir}/firewall-applet
|
||||
%dir %{_sysconfdir}/firewall
|
||||
%config(noreplace) %{_sysconfdir}/firewall/applet.conf
|
||||
%{_sysconfdir}/xdg/autostart/firewall-applet.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/firewall-applet*.*
|
||||
%{_mandir}/man1/firewall-applet*.1*
|
||||
|
||||
%files -n firewall-config
|
||||
%dir %{_datadir}/firewalld
|
||||
%defattr(0644,root,root)
|
||||
%attr(0755,root,root) %{_bindir}/firewall-config
|
||||
%{_datadir}/firewalld/firewall-config.glade
|
||||
%attr(0755,root,root) %{_datadir}/firewalld/gtk3_chooserbutton.py*
|
||||
%{_datadir}/applications/firewall-config.desktop
|
||||
%dir %{_datadir}/appdata
|
||||
%{_datadir}/appdata/firewall-config.appdata.xml
|
||||
%{_datadir}/icons/hicolor/*/apps/firewall-config*.*
|
||||
%{_datadir}/glib-2.0/schemas/org.fedoraproject.FirewallConfig.gschema.xml
|
||||
%{_mandir}/man1/firewall-config*.1*
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user