]> granicus.if.org Git - icinga2/commitdiff
Enforce /usr/lib as base for the cgi path on SUSE distributions
authorTim Hardeck <thardeck@suse.de>
Thu, 14 Aug 2014 14:48:49 +0000 (16:48 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sun, 17 Aug 2014 10:32:22 +0000 (12:32 +0200)
The cgi path on SUSE distributions is always located under
/usr/lib/icinga/cgi, even on x86_64 systems.
So the path in the icinga-classic-apache.conf needs to be adapted on
those distributions.

fixes #6917

icinga2.spec

index 77fad0522ad925900f30ee039856aa0f0b991444..d88134eb1cda89964e9643caad87709851ef2309 100644 (file)
@@ -216,6 +216,7 @@ CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=/usr/lib/boost141 \
 CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_libdir}/nagios/plugins"
 %else
 CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_prefix}/lib/nagios/plugins"
+sed -i "s|@CMAKE_INSTALL_FULL_LIBDIR@|/usr/lib|" etc/icinga/icinga-classic-apache.conf.cmake
 %endif
 
 %if 0%{?use_systemd}