mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
parent
b8288b28a7
commit
37880c6c89
@ -29,6 +29,20 @@ Packager: Icinga Team <info@icinga.org>
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%define wwwconfigdir %{_sysconfdir}/apache2/conf.d
|
||||||
|
%define wwwuser wwwrun
|
||||||
|
%define zend php5-ZendFramework
|
||||||
|
%if 0%{?suse_version} == 1110
|
||||||
|
%define php php53
|
||||||
|
Requires: apache2-mod_php53
|
||||||
|
%else
|
||||||
|
%define php php5
|
||||||
|
Requires: apache2-mod_php5
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires: %{name}-common = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
Requires: php-Icinga = %{version}-%{release}
|
Requires: php-Icinga = %{version}-%{release}
|
||||||
@ -64,6 +78,7 @@ Common files for Icinga Web 2 and the Icinga CLI
|
|||||||
Summary: Icinga Web 2 PHP library
|
Summary: Icinga Web 2 PHP library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{php} >= 5.3.0
|
Requires: %{php} >= 5.3.0
|
||||||
|
%{?suse_version:Requires: %{php}-gettext %{php}-openssl}
|
||||||
|
|
||||||
%description -n php-Icinga
|
%description -n php-Icinga
|
||||||
Icinga Web 2 PHP library
|
Icinga Web 2 PHP library
|
||||||
@ -74,7 +89,8 @@ Summary: Icinga CLI
|
|||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Requires: %{name}-common = %{version}-%{release}
|
Requires: %{name}-common = %{version}-%{release}
|
||||||
Requires: php-Icinga = %{version}-%{release}
|
Requires: php-Icinga = %{version}-%{release}
|
||||||
Requires: %{php_cli} >= 5.3.0
|
%{?suse_version:Requires: %{php} >= 5.3.0}
|
||||||
|
%{?rhel:Requires: %{php_cli} >= 5.3.0}
|
||||||
%{?rhel:Requires: bash-completion}
|
%{?rhel:Requires: bash-completion}
|
||||||
|
|
||||||
%description -n icingacli
|
%description -n icingacli
|
||||||
@ -168,7 +184,11 @@ cp -prv etc/schema %{buildroot}/%{_datadir}/doc/%{name}
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group icingacmd >/dev/null || groupadd -r icingacmd
|
getent group icingacmd >/dev/null || groupadd -r icingacmd
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
usermod -G icingacmd,%{icingawebgroup} %{wwwuser}
|
||||||
|
%else
|
||||||
usermod -a -G icingacmd,%{icingawebgroup} %{wwwuser}
|
usermod -a -G icingacmd,%{icingawebgroup} %{wwwuser}
|
||||||
|
%endif
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user