LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File SuSEfirewall2.spec of Package SuSEfirewall2 (Project security:netfilter)

# spec file for package SuSEfirewall2
# Copyright (c) 2013 SUSE LINUX Products 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/
# icecream 0

Name:           SuSEfirewall2
Version:        3.6.302
Release:        0
Url:            http://gitorious.org/opensuse/susefirewall2
PreReq:         %fillup_prereq %insserv_prereq /bin/sed textutils fileutils grep filesystem
Requires:       coreutils
Requires:       iptables
Requires:       perl
Requires:       sysconfig
Summary:        Stateful Packet Filter Using iptables and netfilter
License:        GPL-2.0+
Group:          Productivity/Networking/Security
Source:         %{name}-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# for the service_* macros
BuildRequires:  pkgconfig(systemd)

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.

# please send patches to lnussel for inclusion in git first
# http://gitorious.org/opensuse/susefirewall2


make DESTDIR="%{buildroot}" install install_doc
install -d -m 755 %{buildroot}/var/adm/fillup-templates/
install -m 644 SuSEfirewall2.sysconfig %{buildroot}/var/adm/fillup-templates/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 \
# compat symlink
mkdir -p %{buildroot}/sbin
ln -s /usr/sbin/SuSEfirewall2 %{buildroot}/sbin/SuSEfirewall2
ln -s /usr/sbin/rcSuSEfirewall2 %{buildroot}/sbin/rcSuSEfirewall2

%defattr(-, root, root)
%doc %{_docdir}/%{name}
%doc %{_datadir}/susehelp
%config(noreplace) /etc/sysconfig/scripts/SuSEfirewall2-custom
%config(noreplace) /etc/sysconfig/SuSEfirewall2
%dir /usr/share/SuSEfirewall2
%dir /usr/share/SuSEfirewall2/defaults

%service_add_pre SuSEfirewall2.service

%service_add_post SuSEfirewall2.service

%service_del_preun SuSEfirewall2.service

%service_del_postun SuSEfirewall2.service