Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
security:netfilter
SuSEfirewall2
SuSEfirewall2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File SuSEfirewall2.spec of Package SuSEfirewall2
# # spec file for package SuSEfirewall2 # # Copyright (c) 2019 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 https://bugs.opensuse.org/ # # icecream 0 #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir /var/adm/fillup-templates %endif %define newname SUSEfirewall2 Name: SuSEfirewall2 Version: 3.6.378 Release: 0 Url: http://en.opensuse.org/SuSEfirewall2 PreReq: /bin/sed textutils fileutils grep filesystem Requires: coreutils Requires: iptables Requires: perl Recommends: perl-Net-DNS Requires: sysconfig Summary: Stateful Packet Filter Using iptables and netfilter License: GPL-2.0-only Group: Productivity/Networking/Security Source: SuSEfirewall2-%{version}.tar.bz2 Source1: SuSEfirewall2-rpmlintrc BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_ordering} BuildRequires: systemd-rpm-macros %description SuSEfirewall2 implements a packet filter that protects hosts and routers by limiting which services or networks are accessible on the host or via the router. SuSEfirewall2 uses the iptables/netfilter packet filtering infrastructure to create a flexible rule set for a stateful firewall. %prep %setup # please send patches to mgerstner for inclusion in git first # https://github.com/openSUSE/susefirewall2/ %build %install %make_install install_doc install -d -m 755 %{buildroot}%{_fillupdir}/ install -m 644 SuSEfirewall2.sysconfig %{buildroot}%{_fillupdir}/sysconfig.SuSEfirewall2 install -D -m 644 SuSEfirewall2.sysconfig %{buildroot}/etc/sysconfig/SuSEfirewall2 install -d -m 755 %{buildroot}%{_datadir}/susehelp/meta/Manuals/Productivity install -m 644 doc/SuSEfirewall2-doc.desktop \ %{buildroot}%{_datadir}/susehelp/meta/Manuals/Productivity/SuSEfirewall2.desktop # # symlinks using the new SUSE spelling ln -s %{name} %{buildroot}/usr/sbin/%{newname} %files %defattr(-, root, root) %doc %{_docdir}/%{name} %doc %{_datadir}/susehelp %config(noreplace) /etc/sysconfig/scripts/SuSEfirewall2-custom %config(noreplace) /etc/sysconfig/SuSEfirewall2 %dir /etc/sysconfig/scripts %dir /etc/sysconfig/SuSEfirewall2.d %dir /etc/sysconfig/SuSEfirewall2.d/services %dir /etc/sysconfig/network %dir /etc/sysconfig/network/scripts %dir /etc/sysconfig/network/if-up.d /etc/sysconfig/SuSEfirewall2.d/services/* /etc/sysconfig/scripts/SuSEfirewall2-rpcinfo /etc/sysconfig/scripts/SuSEfirewall2-showlog /etc/sysconfig/scripts/SuSEfirewall2-open /etc/sysconfig/scripts/SuSEfirewall2-batch /etc/sysconfig/scripts/SuSEfirewall2-qdisc /etc/sysconfig/scripts/SuSEfirewall2-oldbroadcast /etc/sysconfig/network/scripts/SuSEfirewall2 /etc/sysconfig/network/scripts/firewall /etc/sysconfig/network/if-up.d/SuSEfirewall2 /usr/sbin/rcSuSEfirewall2 /usr/sbin/SuSEfirewall2 /usr/sbin/%{newname} %dir /usr/share/SuSEfirewall2 %dir /usr/share/SuSEfirewall2/defaults /usr/lib/systemd/system/SuSEfirewall2.service /usr/lib/systemd/system/SuSEfirewall2_init.service /usr/share/SuSEfirewall2/defaults/50-default.cfg /usr/share/SuSEfirewall2/rpcusers %{_fillupdir}/sysconfig.SuSEfirewall2 %ghost %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-deprecation-warning %pre %service_add_pre SuSEfirewall2.service SuSEfirewall2_init.service # Upgrade case means more than 1 package in system, so probably 2 # if we still have the LSB init script, save its state, remove _setup # and store it in the database. if [ $1 -gt 1 ]; then if test -e /etc/init.d/SuSEfirewall2_setup ; then if test ! -e /var/lib/systemd/migrated/SuSEfirewall2 ; then /usr/sbin/systemd-sysv-convert --save SuSEfirewall2_setup sed -i -e 's/SuSEfirewall2_setup/SuSEfirewall2/' /var/lib/systemd/sysv-convert/database fi fi fi %post %service_add_post SuSEfirewall2.service SuSEfirewall2_init.service cat >%{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-deprecation-warning <<EOF The SuSEfirewall2 package will be removed from openSUSE Tumbleweed on 2019-06-30. The replacement is firewalld. See also this mailing list post: https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html EOF %preun %service_del_preun SuSEfirewall2.service SuSEfirewall2_init.service %postun %service_del_postun SuSEfirewall2.service SuSEfirewall2_init.service %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor