2016-02-29 22:41:58 +01:00
|
|
|
# Icinga Web 2 | (c) 2013-2016 Icinga Development Team | GPLv2+
|
2015-02-03 16:27:59 +01:00
|
|
|
|
2017-01-18 15:27:53 +01:00
|
|
|
%define revision 1
|
2015-01-13 08:59:36 +01:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
Name: icingaweb2
|
2017-01-18 15:27:53 +01:00
|
|
|
Version: 2.4.1
|
2015-01-13 08:59:36 +01:00
|
|
|
Release: %{revision}%{?dist}
|
2014-12-29 16:48:18 +01:00
|
|
|
Summary: Icinga Web 2
|
|
|
|
Group: Applications/System
|
2015-01-30 13:46:49 +01:00
|
|
|
License: GPLv2+ and MIT and BSD
|
2017-01-12 12:28:40 +01:00
|
|
|
URL: https://icinga.com
|
2014-12-29 16:48:18 +01:00
|
|
|
Source0: https://github.com/Icinga/%{name}/archive/v%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
2017-01-12 12:28:40 +01:00
|
|
|
Packager: Icinga Team <info@icinga.com>
|
2014-12-29 16:48:18 +01:00
|
|
|
|
2015-07-02 09:26:59 +02:00
|
|
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?amzn}
|
2015-07-02 09:48:19 +02:00
|
|
|
%define php php
|
|
|
|
%define php_cli php-cli
|
2014-12-29 16:48:18 +01:00
|
|
|
%define wwwconfigdir %{_sysconfdir}/httpd/conf.d
|
|
|
|
%define wwwuser apache
|
2013-10-20 16:00:12 +02:00
|
|
|
%endif
|
|
|
|
|
2015-01-14 14:15:24 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%define wwwconfigdir %{_sysconfdir}/apache2/conf.d
|
|
|
|
%define wwwuser wwwrun
|
|
|
|
%if 0%{?suse_version} == 1110
|
|
|
|
%define php php53
|
|
|
|
Requires: apache2-mod_php53
|
|
|
|
%else
|
|
|
|
%define php php5
|
|
|
|
Requires: apache2-mod_php5
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2015-07-02 09:26:59 +02:00
|
|
|
%{?amzn:Requires(pre): shadow-utils}
|
2015-01-30 13:18:29 +01:00
|
|
|
%{?fedora:Requires(pre): shadow-utils}
|
|
|
|
%{?rhel:Requires(pre): shadow-utils}
|
|
|
|
%{?suse_version:Requires(pre): pwdutils}
|
|
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
|
|
Requires: php-Icinga = %{version}-%{release}
|
2016-11-10 14:59:18 +01:00
|
|
|
Requires: %{name}-vendor-dompdf = 0.7.0-1%{?dist}
|
2016-11-10 16:04:49 +01:00
|
|
|
Requires: %{name}-vendor-HTMLPurifier = 4.8.0-1%{?dist}
|
2016-11-10 16:08:38 +01:00
|
|
|
Requires: %{name}-vendor-JShrink = 1.1.0-1%{?dist}
|
2016-11-10 16:11:50 +01:00
|
|
|
Requires: %{name}-vendor-lessphp = 0.4.0-1%{?dist}
|
2016-11-10 16:14:26 +01:00
|
|
|
Requires: %{name}-vendor-Parsedown = 1.6.0-1%{?dist}
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2016-12-12 14:26:14 +01:00
|
|
|
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
|
|
|
%define selinux 1
|
|
|
|
%define selinux_variants mls targeted
|
|
|
|
%{!?_selinux_policy_version: %define _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null)}
|
|
|
|
%endif
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%define basedir %{_datadir}/%{name}
|
|
|
|
%define bindir %{_bindir}
|
|
|
|
%define configdir %{_sysconfdir}/%{name}
|
|
|
|
%define logdir %{_localstatedir}/log/%{name}
|
|
|
|
%define phpdir %{_datadir}/php
|
|
|
|
%define icingawebgroup icingaweb2
|
2015-01-19 15:50:05 +01:00
|
|
|
%define docsdir %{_datadir}/doc/%{name}
|
2013-10-20 16:00:12 +02:00
|
|
|
|
|
|
|
|
2016-12-12 14:26:14 +01:00
|
|
|
%description
|
|
|
|
Icinga Web 2
|
|
|
|
|
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%package common
|
2015-01-30 13:18:29 +01:00
|
|
|
Summary: Common files for Icinga Web 2 and the Icinga CLI
|
|
|
|
Group: Applications/System
|
2015-07-02 09:26:59 +02:00
|
|
|
%{?amzn:Requires(pre): shadow-utils}
|
2015-01-30 13:18:29 +01:00
|
|
|
%{?fedora:Requires(pre): shadow-utils}
|
|
|
|
%{?rhel:Requires(pre): shadow-utils}
|
|
|
|
%{?suse_version:Requires(pre): pwdutils}
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%description common
|
|
|
|
Common files for Icinga Web 2 and the Icinga CLI
|
2013-10-20 16:00:12 +02:00
|
|
|
|
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%package -n php-Icinga
|
2015-01-14 14:15:24 +01:00
|
|
|
Summary: Icinga Web 2 PHP library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{php} >= 5.3.0
|
2015-01-19 15:50:05 +01:00
|
|
|
Requires: %{php}-gd %{php}-intl
|
2016-12-08 14:16:04 +01:00
|
|
|
Requires: %{name}-vendor-zf1 = 1.12.20-1%{?dist}
|
2015-07-02 09:26:59 +02:00
|
|
|
%{?amzn:Requires: %{php}-pecl-imagick}
|
2015-01-19 15:50:05 +01:00
|
|
|
%{?fedora:Requires: php-pecl-imagick}
|
|
|
|
%{?rhel:Requires: php-pecl-imagick}
|
2015-01-30 12:51:06 +01:00
|
|
|
%{?suse_version:Requires: %{php}-gettext %{php}-json %{php}-openssl %{php}-posix}
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%description -n php-Icinga
|
|
|
|
Icinga Web 2 PHP library
|
2013-10-20 16:00:12 +02:00
|
|
|
|
|
|
|
|
2014-05-13 00:27:06 +02:00
|
|
|
%package -n icingacli
|
2015-01-14 14:15:24 +01:00
|
|
|
Summary: Icinga CLI
|
|
|
|
Group: Applications/System
|
|
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
|
|
Requires: php-Icinga = %{version}-%{release}
|
2015-07-02 09:26:59 +02:00
|
|
|
%{?amzn:Requires: %{php_cli} >= 5.3.0 bash-completion}
|
2015-01-19 15:50:05 +01:00
|
|
|
%{?fedora:Requires: %{php_cli} >= 5.3.0 bash-completion}
|
|
|
|
%{?rhel:Requires: %{php_cli} >= 5.3.0 bash-completion}
|
2015-01-14 14:15:24 +01:00
|
|
|
%{?suse_version:Requires: %{php} >= 5.3.0}
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-05-13 00:27:06 +02:00
|
|
|
%description -n icingacli
|
2014-12-29 16:48:18 +01:00
|
|
|
Icinga CLI
|
2013-10-20 16:00:12 +02:00
|
|
|
|
|
|
|
|
2016-12-13 15:49:33 +01:00
|
|
|
%if 0%{?selinux}
|
2016-12-12 14:26:14 +01:00
|
|
|
%package selinux
|
|
|
|
Summary: SELinux policy for Icinga Web 2
|
|
|
|
BuildRequires: checkpolicy, selinux-policy-devel, /usr/share/selinux/devel/policyhelp, hardlink
|
|
|
|
%if "%{_selinux_policy_version}" != ""
|
|
|
|
Requires: selinux-policy >= %{_selinux_policy_version}
|
|
|
|
%endif
|
2016-12-13 12:45:39 +01:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires(post): policycoreutils
|
|
|
|
Requires(postun): policycoreutils
|
2016-12-12 14:26:14 +01:00
|
|
|
|
|
|
|
%description selinux
|
|
|
|
SELinux policy for Icinga Web 2
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%package vendor-dompdf
|
2016-11-10 14:59:18 +01:00
|
|
|
Version: 0.7.0
|
2014-12-29 16:48:18 +01:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Icinga Web 2 vendor library dompdf
|
|
|
|
Group: Development/Libraries
|
2015-01-30 13:45:55 +01:00
|
|
|
License: LGPLv2.1
|
2014-12-29 16:48:18 +01:00
|
|
|
Requires: %{php} >= 5.3.0
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%description vendor-dompdf
|
|
|
|
Icinga Web 2 vendor library dompdf
|
2013-10-20 16:00:12 +02:00
|
|
|
|
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%package vendor-HTMLPurifier
|
2016-11-10 16:04:49 +01:00
|
|
|
Version: 4.8.0
|
2014-12-29 16:48:18 +01:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Icinga Web 2 vendor library HTMLPurifier
|
|
|
|
Group: Development/Libraries
|
2015-01-30 13:45:55 +01:00
|
|
|
License: LGPLv2.1
|
2014-12-29 16:48:18 +01:00
|
|
|
Requires: %{php} >= 5.3.0
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%description vendor-HTMLPurifier
|
|
|
|
Icinga Web 2 vendor library HTMLPurifier
|
2013-10-20 18:44:07 +02:00
|
|
|
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%package vendor-JShrink
|
2016-11-10 16:08:38 +01:00
|
|
|
Version: 1.1.0
|
2014-12-29 16:48:18 +01:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Icinga Web 2 vendor library JShrink
|
|
|
|
Group: Development/Libraries
|
2015-01-30 13:45:55 +01:00
|
|
|
License: BSD
|
2014-12-29 16:48:18 +01:00
|
|
|
Requires: %{php} >= 5.3.0
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%description vendor-JShrink
|
|
|
|
Icinga Web 2 vendor library JShrink
|
2014-05-13 00:27:06 +02:00
|
|
|
|
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%package vendor-lessphp
|
|
|
|
Version: 0.4.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Icinga Web 2 vendor library lessphp
|
|
|
|
Group: Development/Libraries
|
2015-01-30 13:45:55 +01:00
|
|
|
License: MIT
|
2014-12-29 16:48:18 +01:00
|
|
|
Requires: %{php} >= 5.3.0
|
2014-05-13 00:27:06 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%description vendor-lessphp
|
|
|
|
Icinga Web 2 vendor library lessphp
|
2014-05-13 00:27:06 +02:00
|
|
|
|
2013-10-20 18:44:07 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%package vendor-Parsedown
|
2016-11-10 16:14:26 +01:00
|
|
|
Version: 1.6.0
|
2014-12-29 16:48:18 +01:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Icinga Web 2 vendor library Parsedown
|
|
|
|
Group: Development/Libraries
|
2015-01-30 13:45:55 +01:00
|
|
|
License: MIT
|
2014-12-29 16:48:18 +01:00
|
|
|
Requires: %{php} >= 5.3.0
|
|
|
|
|
|
|
|
%description vendor-Parsedown
|
|
|
|
Icinga Web 2 vendor library Parsedown
|
|
|
|
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2016-12-08 14:16:04 +01:00
|
|
|
%package vendor-zf1
|
|
|
|
Version: 1.12.20
|
2016-03-14 15:35:21 +01:00
|
|
|
Release: 1%{?dist}
|
2016-12-08 14:16:04 +01:00
|
|
|
Summary: Icinga Web 2's fork of Zend Framework 1
|
2016-03-14 15:35:21 +01:00
|
|
|
Group: Development/Libraries
|
|
|
|
License: BSD
|
|
|
|
Requires: %{php} >= 5.3.0
|
2016-12-08 14:16:04 +01:00
|
|
|
Obsoletes: %{name}-vendor-Zend
|
2016-03-14 15:35:21 +01:00
|
|
|
|
2016-12-08 14:16:04 +01:00
|
|
|
%description vendor-zf1
|
|
|
|
Icinga Web 2's fork of Zend Framework 1
|
2016-03-14 15:35:21 +01:00
|
|
|
|
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-12-13 15:49:33 +01:00
|
|
|
%if 0%{?selinux}
|
2016-12-12 14:26:14 +01:00
|
|
|
mkdir selinux
|
|
|
|
cp -p packages/selinux/icingaweb2.{fc,if,te} selinux
|
|
|
|
%endif
|
2014-12-29 16:48:18 +01:00
|
|
|
|
|
|
|
%build
|
2016-12-13 15:49:33 +01:00
|
|
|
%if 0%{?selinux}
|
2016-12-12 14:26:14 +01:00
|
|
|
cd selinux
|
|
|
|
for selinuxvariant in %{selinux_variants}
|
|
|
|
do
|
|
|
|
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
|
|
|
|
mv icingaweb2.pp icingaweb2.pp.${selinuxvariant}
|
|
|
|
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
|
|
|
|
done
|
|
|
|
cd -
|
|
|
|
%endif
|
2014-12-29 16:48:18 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2015-07-30 16:32:00 +02:00
|
|
|
mkdir -p %{buildroot}/{%{basedir}/{modules,library/vendor,public},%{bindir},%{configdir}/modules,%{logdir},%{phpdir},%{wwwconfigdir},%{_sysconfdir}/bash_completion.d,%{docsdir}}
|
2014-12-30 14:48:02 +01:00
|
|
|
cp -prv application doc %{buildroot}/%{basedir}
|
2014-12-30 14:51:18 +01:00
|
|
|
cp -pv etc/bash_completion.d/icingacli %{buildroot}/%{_sysconfdir}/bash_completion.d/icingacli
|
2016-02-14 16:05:01 +01:00
|
|
|
cp -prv modules/{monitoring,setup,doc,translation} %{buildroot}/%{basedir}/modules
|
2014-12-29 16:48:18 +01:00
|
|
|
cp -prv library/Icinga %{buildroot}/%{phpdir}
|
2016-03-14 15:35:21 +01:00
|
|
|
cp -prv library/vendor/{dompdf,HTMLPurifier*,JShrink,lessphp,Parsedown,Zend} %{buildroot}/%{basedir}/library/vendor
|
2016-03-29 13:41:38 +02:00
|
|
|
cp -prv public/{css,font,img,js,error_norewrite.html} %{buildroot}/%{basedir}/public
|
2014-12-29 16:48:18 +01:00
|
|
|
cp -pv packages/files/apache/icingaweb2.conf %{buildroot}/%{wwwconfigdir}/icingaweb2.conf
|
|
|
|
cp -pv packages/files/bin/icingacli %{buildroot}/%{bindir}
|
|
|
|
cp -pv packages/files/public/index.php %{buildroot}/%{basedir}/public
|
2015-01-16 17:38:22 +01:00
|
|
|
cp -prv etc/schema %{buildroot}/%{docsdir}
|
2015-07-30 16:32:00 +02:00
|
|
|
cp -prv packages/files/config/modules/{setup,translation} %{buildroot}/%{configdir}/modules
|
2016-12-13 15:49:33 +01:00
|
|
|
%if 0%{?selinux}
|
2016-12-12 14:26:14 +01:00
|
|
|
cd selinux
|
|
|
|
for selinuxvariant in %{selinux_variants}
|
|
|
|
do
|
|
|
|
install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
|
|
|
|
install -p -m 644 icingaweb2.pp.${selinuxvariant} %{buildroot}%{_datadir}/selinux/${selinuxvariant}/icingaweb2.pp
|
|
|
|
done
|
|
|
|
cd -
|
|
|
|
/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
|
|
|
|
%endif
|
2014-12-29 16:48:18 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
getent group icingacmd >/dev/null || groupadd -r icingacmd
|
2015-06-09 18:16:36 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 01200
|
2015-02-04 17:23:07 +01:00
|
|
|
usermod -A icingacmd,%{icingawebgroup} %{wwwuser}
|
2015-01-14 14:15:24 +01:00
|
|
|
%else
|
2014-12-29 16:48:18 +01:00
|
|
|
usermod -a -G icingacmd,%{icingawebgroup} %{wwwuser}
|
2015-01-14 14:15:24 +01:00
|
|
|
%endif
|
2014-12-29 16:48:18 +01:00
|
|
|
exit 0
|
2013-10-20 16:00:12 +02:00
|
|
|
|
|
|
|
%clean
|
2014-12-29 16:48:18 +01:00
|
|
|
rm -rf %{buildroot}
|
2013-10-20 16:00:12 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-12-29 16:48:18 +01:00
|
|
|
%{basedir}/application/controllers
|
|
|
|
%{basedir}/application/fonts
|
|
|
|
%{basedir}/application/forms
|
|
|
|
%{basedir}/application/layouts
|
|
|
|
%{basedir}/application/views
|
2015-09-30 18:37:48 +02:00
|
|
|
%{basedir}/application/VERSION
|
2014-12-29 16:48:18 +01:00
|
|
|
%{basedir}/doc
|
|
|
|
%{basedir}/modules
|
|
|
|
%{basedir}/public
|
2015-07-02 09:27:29 +02:00
|
|
|
%config(noreplace) %{wwwconfigdir}/icingaweb2.conf
|
2014-12-29 16:48:18 +01:00
|
|
|
%attr(2775,root,%{icingawebgroup}) %dir %{logdir}
|
2015-01-19 10:50:27 +01:00
|
|
|
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}/modules/setup
|
|
|
|
%attr(0660,root,%{icingawebgroup}) %config(noreplace) %{configdir}/modules/setup/config.ini
|
2015-07-30 16:32:00 +02:00
|
|
|
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}/modules/translation
|
|
|
|
%attr(0660,root,%{icingawebgroup}) %config(noreplace) %{configdir}/modules/translation/config.ini
|
2015-07-02 09:26:59 +02:00
|
|
|
%{docsdir}
|
|
|
|
%docdir %{docsdir}
|
2014-12-29 16:48:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
%pre common
|
|
|
|
getent group %{icingawebgroup} >/dev/null || groupadd -r %{icingawebgroup}
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files common
|
2013-10-20 16:00:12 +02:00
|
|
|
%defattr(-,root,root)
|
2014-12-29 16:48:18 +01:00
|
|
|
%{basedir}/application/locale
|
|
|
|
%dir %{basedir}/modules
|
2015-01-16 17:52:08 +01:00
|
|
|
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}
|
2015-01-19 10:50:27 +01:00
|
|
|
%attr(2770,root,%{icingawebgroup}) %config(noreplace) %dir %{configdir}/modules
|
2014-12-29 16:48:18 +01:00
|
|
|
|
2013-10-20 16:00:12 +02:00
|
|
|
|
2014-05-13 00:27:06 +02:00
|
|
|
%files -n php-Icinga
|
2014-12-29 16:48:18 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{phpdir}/Icinga
|
|
|
|
|
2014-05-13 00:27:06 +02:00
|
|
|
|
|
|
|
%files -n icingacli
|
2014-12-29 16:48:18 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{basedir}/application/clicommands
|
2014-12-30 14:48:47 +01:00
|
|
|
%{_sysconfdir}/bash_completion.d/icingacli
|
2014-12-29 16:48:18 +01:00
|
|
|
%attr(0755,root,root) %{bindir}/icingacli
|
|
|
|
|
|
|
|
|
2016-12-13 15:49:33 +01:00
|
|
|
%if 0%{?selinux}
|
2016-12-12 14:26:14 +01:00
|
|
|
%post selinux
|
|
|
|
for selinuxvariant in %{selinux_variants}
|
|
|
|
do
|
2016-12-13 12:45:39 +01:00
|
|
|
%{_sbindir}/semodule -s ${selinuxvariant} -i %{_datadir}/selinux/${selinuxvariant}/icingaweb2.pp &> /dev/null || :
|
2016-12-12 14:26:14 +01:00
|
|
|
done
|
2016-12-13 12:45:39 +01:00
|
|
|
%{_sbindir}/restorecon -R %{basedir} &> /dev/null || :
|
|
|
|
%{_sbindir}/restorecon -R %{configdir} &> /dev/null || :
|
|
|
|
%{_sbindir}/restorecon -R %{logdir} &> /dev/null || :
|
2016-12-12 14:26:14 +01:00
|
|
|
|
|
|
|
%postun selinux
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
for selinuxvariant in %{selinux_variants}
|
|
|
|
do
|
2016-12-13 12:45:39 +01:00
|
|
|
%{_sbindir}/semodule -s ${selinuxvariant} -r icingaweb2 &> /dev/null || :
|
2016-12-12 14:26:14 +01:00
|
|
|
done
|
2016-12-13 12:45:39 +01:00
|
|
|
[ -d %{basedir} ] && %{_sbindir}/restorecon -R %{basedir} &> /dev/null || :
|
|
|
|
[ -d %{configdir} ] && %{_sbindir}/restorecon -R %{configdir} &> /dev/null || :
|
|
|
|
[ -d %{logdir} ] && %{_sbindir}/restorecon -R %{logdir} &> /dev/null || :
|
2016-12-12 14:26:14 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
%files selinux
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc selinux/*
|
|
|
|
%{_datadir}/selinux/*/icingaweb2.pp
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
%files vendor-dompdf
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{basedir}/library/vendor/dompdf
|
2014-05-13 00:27:06 +02:00
|
|
|
|
2014-12-29 16:48:18 +01:00
|
|
|
|
|
|
|
%files vendor-HTMLPurifier
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{basedir}/library/vendor/HTMLPurifier
|
2015-11-26 11:15:46 +01:00
|
|
|
%{basedir}/library/vendor/HTMLPurifier.autoload.php
|
|
|
|
%{basedir}/library/vendor/HTMLPurifier.php
|
2014-12-29 16:48:18 +01:00
|
|
|
|
|
|
|
|
|
|
|
%files vendor-JShrink
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{basedir}/library/vendor/JShrink
|
|
|
|
|
|
|
|
|
|
|
|
%files vendor-lessphp
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{basedir}/library/vendor/lessphp
|
|
|
|
|
|
|
|
|
|
|
|
%files vendor-Parsedown
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{basedir}/library/vendor/Parsedown
|
2016-03-14 15:35:21 +01:00
|
|
|
|
|
|
|
|
2016-12-08 14:16:04 +01:00
|
|
|
%files vendor-zf1
|
2016-03-14 15:35:21 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{basedir}/library/vendor/Zend
|