icinga2: Remove classicui for 2.8
This commit is contained in:
parent
45a20b93cc
commit
02a4d65c7a
85
icinga2.spec
85
icinga2.spec
|
@ -74,8 +74,6 @@
|
|||
%define icingaweb2name icingaweb2
|
||||
%define icingaweb2version 2.0.0
|
||||
|
||||
# DEPRECATED
|
||||
%define icingaclassicconfdir %{_sysconfdir}/icinga
|
||||
|
||||
%define logmsg logger -t %{name}/rpm
|
||||
|
||||
|
@ -242,35 +240,6 @@ Requires: %{name} = %{version}-%{release}
|
|||
Icinga 2 IDO PostgreSQL database backend. Compatible with Icinga 1.x
|
||||
IDOUtils schema >= 1.12
|
||||
|
||||
# DEPRECATED, disable builds on Amazon
|
||||
%if !(0%{?amzn})
|
||||
|
||||
# DEPRECATED
|
||||
%package classicui-config
|
||||
Summary: Icinga 2 Classic UI Standalone configuration
|
||||
Group: Applications/System
|
||||
BuildRequires: %{apachename}
|
||||
Requires: %{apachename}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%if "%{_vendor}" == "suse"
|
||||
Recommends: icinga-www
|
||||
# for running logger to log the deprecated warning
|
||||
%if 0%{?use_systemd}
|
||||
BuildRequires:util-linux-systemd
|
||||
Requires: util-linux-systemd
|
||||
%endif
|
||||
%endif
|
||||
Provides: icinga-classicui-config
|
||||
Conflicts: icinga-gui-config
|
||||
|
||||
# DEPRECATED
|
||||
%description classicui-config
|
||||
Icinga 1.x Classic UI Standalone configuration with locations
|
||||
for Icinga 2.
|
||||
|
||||
# DEPRECATED, disable builds on Amazon
|
||||
%endif
|
||||
|
||||
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
%global selinux_variants mls targeted
|
||||
%{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null)}
|
||||
|
@ -403,17 +372,6 @@ cd -
|
|||
make install \
|
||||
DESTDIR="%{buildroot}"
|
||||
|
||||
# DEPRECATED, disable builds on Amazon
|
||||
%if !(0%{?amzn})
|
||||
|
||||
# install classicui config
|
||||
install -D -m 0644 etc/icinga/icinga-classic.htpasswd %{buildroot}%{icingaclassicconfdir}/passwd
|
||||
install -D -m 0644 etc/icinga/cgi.cfg %{buildroot}%{icingaclassicconfdir}/cgi.cfg
|
||||
install -D -m 0644 etc/icinga/icinga-classic-apache.conf %{buildroot}%{apacheconfdir}/icinga.conf
|
||||
|
||||
# DEPRECATED, disable builds on Amazon
|
||||
%endif
|
||||
|
||||
# install custom limits.conf for systemd
|
||||
%if 0%{?configure_systemd_limits}
|
||||
install -D -m 0644 etc/initsystem/icinga2.service.limits.conf %{buildroot}%{_userunitdir}/%{name}.service.d/limits.conf
|
||||
|
@ -641,36 +599,6 @@ fi
|
|||
|
||||
exit 0
|
||||
|
||||
# DEPRECATED, disable builds on Amazon
|
||||
%if !(0%{?amzn})
|
||||
|
||||
%post classicui-config
|
||||
if [ ${1:-0} -eq 1 ]
|
||||
then
|
||||
# initial installation, enable features
|
||||
for feature in statusdata compatlog command; do
|
||||
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||
done
|
||||
fi
|
||||
|
||||
%logmsg "The icinga2-classicui-config package has been deprecated and will be removed in future releases."
|
||||
|
||||
exit 0
|
||||
|
||||
# DEPRECATED
|
||||
%postun classicui-config
|
||||
if [ "$1" = "0" ]; then
|
||||
# deinstallation of the package - remove feature
|
||||
for feature in statusdata compatlog command; do
|
||||
rm -f %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
||||
done
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
# DEPRECATED, disable builds on Amazon
|
||||
%endif
|
||||
|
||||
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
%post selinux
|
||||
for selinuxvariant in %{selinux_variants}
|
||||
|
@ -794,19 +722,6 @@ fi
|
|||
%{_libdir}/%{name}/libdb_ido_pgsql*
|
||||
%{_datadir}/icinga2-ido-pgsql
|
||||
|
||||
# DEPRECATED, disable builds on Amazon
|
||||
%if !(0%{?amzn})
|
||||
|
||||
%files classicui-config
|
||||
%defattr(-,root,root,-)
|
||||
%attr(0751,%{icinga_user},%{icinga_group}) %dir %{icingaclassicconfdir}
|
||||
%config(noreplace) %{icingaclassicconfdir}/cgi.cfg
|
||||
%config(noreplace) %{apacheconfdir}/icinga.conf
|
||||
%config(noreplace) %attr(0640,root,%{apachegroup}) %{icingaclassicconfdir}/passwd
|
||||
|
||||
# DEPRECATED, disable builds on Amazon
|
||||
%endif
|
||||
|
||||
%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
%files selinux
|
||||
%defattr(-,root,root,0755)
|
||||
|
|
Loading…
Reference in New Issue