Skip to content

Commit

Permalink
build: spec update for firewall rules
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuhamedagic committed Mar 24, 2015
1 parent f98a052 commit 2e76347
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions booth.spec
Expand Up @@ -16,6 +16,7 @@
%define with_extra_warnings 0
%define with_debugging 0
%define without_fatal_warnings 1
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
%if 0%{?fedora} || 0%{?centos} || 0%{?rhel}
%define pkg_group System Environment/Daemons
%else
Expand Down Expand Up @@ -101,6 +102,12 @@ mkdir -p %{buildroot}/%{test_path}/src/
ln -s %{_sbindir}/boothd %{buildroot}/%{test_path}/src/
rm -f %{buildroot}/%{test_path}/test/*.pyc

%if 0%{?suse_version}
#SUSE firewall rule
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
install -m 644 %{S:2} $RPM_BUILD_ROOT/%{_fwdefdir}/booth
%endif

%check
%if 0%{?run_build_tests}
echo "%%run_build_tests set to %run_build_tests; including tests"
Expand All @@ -125,6 +132,9 @@ rm -rf %{buildroot}
%{_sbindir}/rcbooth-arbitrator
/usr/lib/ocf/resource.d/pacemaker/booth-site
%config %{_sysconfdir}/booth/booth.conf.example
%if 0%{?suse_version}
%config %{_fwdefdir}/booth
%endif

%if %{defined _unitdir}
%{_unitdir}/booth@.service
Expand Down Expand Up @@ -171,6 +181,9 @@ the Cluster Ticket Manager for Pacemaker.

%doc README-testing
%{test_path}
%dir /usr/lib/ocf
%dir /usr/lib/ocf/resource.d
%dir /usr/lib/ocf/resource.d/booth
/usr/lib/ocf/resource.d/booth/sharedrsc

%changelog

0 comments on commit 2e76347

Please sign in to comment.