mirror of
https://git.icinga.com/packaging/rpm-icinga2.git
synced 2025-09-25 11:07:51 +02:00
Add check_nscp_api plugin binary
This requires Icinga 2 libraries and is therefore installed alongside the Icinga 2 binary.
This commit is contained in:
parent
f4ce2838a7
commit
ceac5e1355
@ -25,6 +25,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define _libexecdir %{_prefix}/lib/
|
%define _libexecdir %{_prefix}/lib/
|
||||||
|
%define plugindir %{_libdir}/nagios/plugins
|
||||||
|
|
||||||
%if "%{_vendor}" == "redhat"
|
%if "%{_vendor}" == "redhat"
|
||||||
%define apachename httpd
|
%define apachename httpd
|
||||||
@ -43,6 +44,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{_vendor}" == "suse"
|
%if "%{_vendor}" == "suse"
|
||||||
|
%define plugindir %{_prefix}/lib/nagios/plugins
|
||||||
%define apachename apache2
|
%define apachename apache2
|
||||||
%define apacheconfdir %{_sysconfdir}/apache2/conf.d
|
%define apacheconfdir %{_sysconfdir}/apache2/conf.d
|
||||||
%define apacheuser wwwrun
|
%define apacheuser wwwrun
|
||||||
@ -330,7 +332,7 @@ CMAKE_OPTS="$CMAKE_OPTS \
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{_vendor}" != "suse"
|
%if "%{_vendor}" != "suse"
|
||||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_libdir}/nagios/plugins"
|
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{plugindir}"
|
||||||
%else
|
%else
|
||||||
%if 0%{?suse_version} < 1310
|
%if 0%{?suse_version} < 1310
|
||||||
CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=%{_libdir}/boost153 \
|
CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=%{_libdir}/boost153 \
|
||||||
@ -340,7 +342,7 @@ CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=%{_libdir}/boost153 \
|
|||||||
-DBUILD_TESTING=FALSE \
|
-DBUILD_TESTING=FALSE \
|
||||||
-DBoost_NO_BOOST_CMAKE=TRUE"
|
-DBoost_NO_BOOST_CMAKE=TRUE"
|
||||||
%endif
|
%endif
|
||||||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_prefix}/lib/nagios/plugins"
|
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{plugindir}"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?use_systemd}
|
%if 0%{?use_systemd}
|
||||||
@ -674,6 +676,7 @@ fi
|
|||||||
%{_sbindir}/%{name}
|
%{_sbindir}/%{name}
|
||||||
%dir %{_libdir}/%{name}/sbin
|
%dir %{_libdir}/%{name}/sbin
|
||||||
%{_libdir}/%{name}/sbin/%{name}
|
%{_libdir}/%{name}/sbin/%{name}
|
||||||
|
%{plugindir}/check_nscp_api
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%exclude %{_datadir}/%{name}/include
|
%exclude %{_datadir}/%{name}/include
|
||||||
%{_mandir}/man8/%{name}.8.gz
|
%{_mandir}/man8/%{name}.8.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user