Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Monitoring
dba-centreon
dba-centreon.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-centreon.spec of Package dba-centreon
%define real_name centreon %define version 2.7.4 %define vers 274 %define release 2 %define dbarrd 1 %define engineversion 1.5.0 %define brokerversion 2.11.3 %define prefix /DBA/%{real_name}/%{version} %define prefix2 /DBA/centreon-data Name: dba-%{real_name} Summary: Centreon, Network & System Monitoring Version: %{version} Release: %{release} Source: http://www.centreon.com/Download.html/%{real_name}-web-%{version}.tar.gz Source2: install.conf.php Patch1: centreon-install.patch Patch2: centreon-etc-inst.patch License: GPLv2 Group: Applications/System Url: http://www.centreon.com BuildRoot: %{_tmppath}/%{real_name}-%{version}-%{release}-buildroot AutoReqProv: no BuildArch: noarch %if 0%{?suse_version} BuildRequires: groff %if 0%{?sles_version} == 10 %define dbarrd 0 %endif %endif Requires: redhat-lsb-core Requires: xerces-c Requires: gsoap %if %{?dbarrd:1}0 #BuildRequires: dba-rrdtool-154 Requires: dba-rrdtool-148 %define rrdpath /DBA/rrdtool/1.4.8 %else Requires: rrdtool %define rrdpath /usr %endif Requires: perl-DBD-MySQL, perl-DBI Requires: perl-Crypt-DES perl-Net-SNMP Requires: sudo Requires: net-snmp util-linux %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %description Centreon is a network, system, applicative supervision and monitoring tool, it is based upon the most effective Open Source monitoring engine : Nagios. Centreon provides a new frontend and new functionnalities to Nagios. It allows you to be more efficient in your network monitoring, but also allows you to make your supervision information readable by a largest range of users. Indeed, a non technical user can now use the Centreon/Nagios couple to easily understand your network infrastructure thanks to charts and graphical representations of the gathered information. Skilled users still have access to specific and technical information collected by Nagios though. %prep %setup -q -n %{real_name}-web-%{version} %patch1 -p0 %{__mkdir_p} etc pushd etc %patch2 -p1 popd # copy install.conf.php %{__cp} -v %{S:2} . find . -type f | xargs sed -i -e 's:@BIN_MAIL@:/bin/mail:g' \ -e 's:/etc/centreon:@CENTREON_ETC@:g' \ -e 's:@BIN_RRDTOOL@:%{rrdpath}/bin/rrdtool:g' \ -e 's:@BIN_SCP@:/usr/bin/scp:g' \ -e 's:@BIN_SSH@:/usr/bin/ssh:g' \ -e 's:@CENTCORE_BINDIR@:%{prefix}/share/bin:g' \ -e 's:@CENTPLUGINS_TMP@:%{prefix2}/centreon-plugins/tmp:g' \ -e 's:@CENTPLUGINSTRAPS_BINDIR@:%{prefix}/share/bin:g' \ -e 's:@CENTREON_DIR@:%{prefix}/share:g' \ -e 's:@CENTREON_ETC@:%{prefix2}/centreon/etc:g' \ -e 's:@CENTREON_ENGINE_CONNECTORS@:/DBA/centreon-connector/1.latest/bin:g' \ -e 's:@CENTREON_ENGINE_LIB@:/DBA/centreon-engine/%{engineversion}/lib/centreon-engine:g' \ -e 's:@CENTREONBROKER_CBMOD@:/DBA/centreon-broker/%{brokerversion}/lib/cbmod.so:g' \ -e 's:@CENTREON_LOG@:%{prefix2}/centreon/log:g' \ -e 's:@CENTREON_GENDIR@:%{prefix2}/centreon/share:g' \ -e 's:@CENTREON_PATH@:%{prefix}:g' \ -e 's:@CENTREON_RUNDIR@:%{prefix2}/centreon/share/var/run:g' \ -e 's:@CENTREON_VARLIB@:%{prefix2}/centreon/share/var/lib:g' \ -e 's:@CENTSTORAGE_BINDIR@::g' \ -e 's:@CENTSTORAGE_LIB@::g' \ -e 's:@CENTSTORAGE_RRD@::g' \ -e 's:@INIT_D@:%{prefix}/etc/init.d:g' \ -e 's:@CRON_D@:%{prefix}/etc/cron.d:g' \ -e 's:@INSTALL_DIR_CENTREON@:/DBA/centreon/2.latest/share:g' \ -e 's:@INSTALL_DIR_NAGIOS@::g' \ -e 's:@MAILER@:/bin/mail:g' \ -e 's:@NAGIOS_BIN@::g' \ -e 's:@NAGIOS_BINARY@::g' \ -e 's:@NAGIOS_ETC@::g' \ -e 's:@NAGIOS_GROUP@::g' \ -e 's:@NAGIOS_IMG@::g' \ -e 's:@NAGIOS_INIT_SCRIPT@::g' \ -e 's:@NAGIOS_PLUGIN@:/DBA/nagios/nagios-plugins/1.latest/plugins:g' \ -e 's:@NAGIOS_PLUGINS@:/DBA/nagios/nagios-plugins/1.latest/plugins:g' \ -e 's:@NAGIOSTATS_BINARY@::g' \ -e 's:@NAGIOS_USER@::g' \ -e 's:@NAGIOS_VAR@::g' \ -e 's:@NAGIOS_GROUP@::g' \ -e 's:@NAGIOS_VAR@::g' \ -e 's:@NDOMOD_BINARY@::g' \ -e 's:@OREON_PATH@:%{prefix}:g' \ -e 's:@PEAR_PATH@::g' \ -e 's:@P1_PL@:/usr/bin/p1.pl:g' \ -e 's:@PERL_BIN@:/usr/bin/perl:g' \ -e 's:@PHP_BIN@:/DBA/apache/PHP/5.4.latest/bin/php:g' \ -e 's:@RRD_PERL@:%{_libdir}/perl5:g' \ -e 's:@RRDTOOL_PERL_LIB@:%{rrdpath}/perl:g' \ -e 's:@SNMP_ETC@:%{prefix}/snmp/:g' \ -e 's:@SNMPTT_BINDIR@:%{prefix}/share/bin:g' \ -e 's:@SNMPTT_INI_FILE@:%{prefix}/snmp/snmptt.ini:g' \ -e 's:@VARLIB_CENTREON@:%{prefix2}/centreon/share/var/lib:g' \ -e 's:@WEB_USER@:ggcentreon01:g' \ -e 's:@DIR_APACHE@:%{prefix}/etc/httpd/conf:g' \ -e 's:@DIR_APACHE_CONF@:%{prefix}/etc/httpd/conf.d:g' \ -e 's:@BROKER_ETC@:%{prefix2}/centreon-broker/etc:g' \ -e 's:@BROKER_USER@:ggcentreon01:g' \ -e 's:@BROKER_GROUP@:grcentreon01:g' \ -e 's:@BROKER_INIT_SCRIPT@:%{prefix2}/centreon-broker/etc/init.d/cbd-component:g' \ -e 's:@MONITORINGENGINE_ETC@:%{prefix2}/centreon-engine/etc:g' \ -e 's:@MONITORINGENGINE_INIT_SCRIPT@:%{prefix2}/centreon-engine/etc/init.d/centengine-component:g' \ -e 's:@MONITORINGENGINE_BINARY@:/DBA/centreon-engine/1.latest/bin/centengine:g' \ -e 's:@MONITORINGENGINE_LOG@:%{prefix2}/centreon-engine/var/log:g' \ -e 's:@MONITORINGENGINE_USER@:ggcentreon01:g' \ -e 's:@MONITORINGENGINE_GROUP@:grcentreon01:g' \ -e 's:@PLUGIN_DIR@:/DBA/nagios/nagios-plugins/1.latest/plugins:g' \ -e 's:@CENTREON_USER@:ggcentreon01:g' \ -e 's:@CENTREON_GROUP@:grcentreon01:g' \ -e 's:@CENTREON_DIR_RRD@:%{prefix2}/centreon/var/lib:g' \ -e 's:@CENTREON_DIR_WWW@:/DBA/centreon/2.latest/share/www:g' \ -e 's:@SUDO_FILE@:%{prefix}/etc/sudoers:g' \ -e 's:@WEB_GROUP@:grcentreon01:g' \ -e 's:@CENTREON_BINDIR@:%{prefix}/share/bin:g' \ -e 's:@CENTREON_DATADIR@:%{prefix2}/centreon/share/data:g' %build %install %{__rm} -rf %{buildroot} # Install files configuration %{__install} -d -m 0755 %{buildroot}%{prefix}/etc %{__install} -m 0644 etc/instCentCore.conf %{buildroot}%{prefix}/etc %{__install} -m 0644 etc/instCentPlugins.conf %{buildroot}%{prefix}/etc %{__install} -m 0644 etc/instCentWeb.conf %{buildroot}%{prefix}/etc # Install cron %{__install} -d -m 0700 %{buildroot}%{prefix}/etc/cron.d %{__cp} tmpl/install/centreon.cron %{buildroot}%{prefix}/etc/cron.d # Install conf apache %{__install} -d -m 0755 %{buildroot}%{prefix}/etc/httpd/conf.d # This file is kept within .spec file, since it contains spec variables cat << EOF >> %{buildroot}%{prefix}/etc/httpd/conf.d/centreon.conf Alias /centreon /usr/share/centreon/www/ <Directory "/usr/share/centreon/www"> Options Indexes AllowOverride AuthConfig Options Order allow,deny Allow from all </Directory> EOF # Install centreon plugins and David perfdata %{__install} -d -m 0775 %{buildroot}%{prefix}/nagios/plugins %{__install} -m 0775 plugins/src/centreon* %{buildroot}%{prefix}/nagios/plugins %{__install} -m 0775 plugins/src/check* %{buildroot}%{prefix}/nagios/plugins %{__install} -m 0775 plugins/src/process-service-perfdata %{buildroot}%{prefix}/nagios/plugins %{__install} -m 0775 plugins/src/submit_{host,service}_check_result %{buildroot}%{prefix}/nagios/plugins %{__install} -d -m 0775 %{buildroot}%{prefix}/nagios/plugins/Centreon/SNMP %{__install} -m 0775 plugins/src/Centreon/SNMP/Utils.pm %{buildroot}%{prefix}/nagios/plugins/Centreon/SNMP # Install bindir centreon %{__install} -d -m 0755 %{buildroot}%{prefix}/share/bin %{__install} -m 0755 bin/* %{buildroot}%{prefix}/share/bin # Install cron %{__install} -d -m 0755 %{buildroot}%{prefix}/share/cron %{__install} -d -m 0755 %{buildroot}%{prefix}/share/cron/Misc %{__install} -d -m 0755 %{buildroot}%{prefix}/share/cron/Modules %{__install} -d -m 0755 %{buildroot}%{prefix}/share/cron/reporting %{__install} -m 0775 cron/* %{buildroot}%{prefix}/share/cron/ # install examples %{__install} -d -m 0755 %{buildroot}%{prefix}/examples # select / copy data for package %{__mkdir_p} %{buildroot}%{prefix}/share %{__cp} -r doc GPL_LIB lib config www %{buildroot}%{prefix}/share %{__install} -d -m 0750 %{buildroot}%{prefix}/libinstall %{__install} -m 0775 libinstall/cinstall %{buildroot}%{prefix}/libinstall %{__install} -m 0775 libinstall/functions %{buildroot}%{prefix}/libinstall %{__install} -m 0775 libinstall/gettext %{buildroot}%{prefix}/libinstall %{__install} -m 0664 install.conf.php %{buildroot}%{prefix}/share/www/install # add empty log and lib dirs #%{__mkdir_p} %{buildroot}%{prefix}/var/lib #%{__mkdir_p} %{buildroot}%{prefix}/share/data %clean %{__rm} -rf ${builroot} %post cd %{prefix}/.. %{__rm} -f 2.latest %{__ln_s} -f %{version} 2.latest %files %defattr(-,root,root,-) %doc plugins/CHANGELOG plugins/REQUIREMENT plugins/INSTALL %dir %{prefix} %{prefix}/* %changelog * Thu Apr 23 2015 Florian Asche <florian.asche@bertelsmann.de> - Upgrade to Version 2.6.0 - Changed from PHP 5.3 to 5.4 * Fri May 9 2014 Florian Asche <florian.asche@bertelsmann.de> - inital version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor