2010-09-26 Sancho Lerena <slerena@artica.es>
* pandora_console.spec: Updated some missing deps. * operation/agentes/estado_generalagente.php: Fixed notice on empty array. * pandora_console.redhat.spec: Specific SPEC for redhat. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3292 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
38b181d00c
commit
b1f80528ca
|
@ -1,3 +1,12 @@
|
|||
2010-09-26 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* pandora_console.spec: Updated some missing deps.
|
||||
|
||||
* operation/agentes/estado_generalagente.php: Fixed
|
||||
notice on empty array.
|
||||
|
||||
* pandora_console.redhat.spec: Specific SPEC for redhat.
|
||||
|
||||
2010-09-24 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* install.php: Updated version and build
|
||||
|
|
|
@ -163,10 +163,7 @@ echo '<td class="datos f9" colspan="2"><img src="include/fgraph.php?tipo=progres
|
|||
// Custom fields
|
||||
$fields = get_db_all_rows_filter('tagent_custom_fields', array('display_on_front' => 1));
|
||||
|
||||
if($fields === false) {
|
||||
$fields = array();
|
||||
}
|
||||
|
||||
if ($fields)
|
||||
foreach($fields as $field) {
|
||||
echo '<tr><td class="datos"><b>'.$field['name'].print_help_tip (__('Custom field'), true).'</b></td>';
|
||||
$custom_value = get_db_value_filter('description', 'tagent_custom_data', array('id_field' => $field['id_field'], 'id_agent' => $id_agente));
|
||||
|
|
|
@ -0,0 +1,92 @@
|
|||
#
|
||||
# Pandora FMS Console
|
||||
#
|
||||
%define name pandorafms_console
|
||||
%define version 3.2
|
||||
%define release 2
|
||||
%define httpd_name httpd
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name httpd
|
||||
%define httpd_user apache
|
||||
%define httpd_group apache
|
||||
|
||||
# Evaluate PHP version
|
||||
%define phpver_lt_430 %(out=`rpm -q --queryformat='%{VERSION}' php` 2>&1 >/dev/null || out=0 ; out=`echo $out | tr . : | sed s/://g` ; if [ $out -lt 430 ] ; then out=1 ; else out=0; fi ; echo $out)
|
||||
|
||||
Summary: Pandora FMS Console
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
License: GPL
|
||||
Vendor: Artica ST <info@artica.es>
|
||||
#Source0: %{name}-%{version}-%{revision}.tar.gz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: extras/%{name}-logrotate
|
||||
URL: http://www.pandorafms.com
|
||||
Group: Productivity/Networking/Web/Utilities
|
||||
Packager: Sancho Lerena <slerena@artica.es>
|
||||
Prefix: /var/www/html
|
||||
BuildRoot: %{_tmppath}/%{name}
|
||||
BuildArchitectures: noarch
|
||||
AutoReq: 0
|
||||
Requires: httpd >= 2.0.0
|
||||
Requires: php >= 4.3.0
|
||||
Requires: php-gd, php-snmp, php-pear
|
||||
Requires: php-mysql, php-ldap, php-mbstring, php, php-zip
|
||||
Requires: php-pear-DB
|
||||
Requires: xorg-x11-fonts-75dpi, xorg-x11-fonts-misc
|
||||
Requires: graphviz, graphviz-php
|
||||
Provides: %{name}-%{version}
|
||||
|
||||
%description
|
||||
The Web Console is a web application that allows to see graphical reports, state of every agent, also to access to the information sent by the agent, to see every monitored parameter and to see its evolution throughout the time, to form the different nodes, groups and users of the system. It is the part that interacts with the final user, and that will allows you to administer the system.
|
||||
|
||||
%prep
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%setup -q -n pandora_console
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{prefix}/pandora_console
|
||||
#mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/spool/pandora/data_in
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_console
|
||||
rm $RPM_BUILD_ROOT%{prefix}/pandora_console/*.spec
|
||||
rm $RPM_BUILD_ROOT%{prefix}/pandora_console/pandora_console_install
|
||||
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/pandora_console
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
# Has an install already been done, if so we only want to update the files
|
||||
# push install.php aside so that the console works immediately using existing
|
||||
# configuration.
|
||||
#
|
||||
if [ -f %{prefix}/pandora_console/include/config.php ] ; then
|
||||
mv %{prefix}/pandora_console/install.php %{prefix}/pandora_console/install.done
|
||||
else
|
||||
echo "Please, now, point your browser to http://your_IP_address/pandora_console/install.php and follow all the steps described on it."
|
||||
fi
|
||||
|
||||
|
||||
%preun
|
||||
|
||||
# Upgrading
|
||||
if [ "$1" = "1" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(0644,%{httpd_user},%{httpd_group},0755)
|
||||
%docdir %{prefix}/pandora_console/docs
|
||||
%{prefix}/pandora_console
|
||||
|
||||
%defattr(0644,root,root)
|
||||
%{_sysconfdir}/logrotate.d/pandora_console
|
||||
|
||||
%defattr(770,pandora,%{httpd_group})
|
||||
/var/spool/pandora/data_in
|
|
@ -27,7 +27,7 @@ Prefix: /srv/www/htdocs
|
|||
BuildRoot: %{_tmppath}/%{name}
|
||||
BuildArchitectures: noarch
|
||||
AutoReq: 0
|
||||
Requires: apache2
|
||||
Requires: apache2, apache2-mod_php5
|
||||
Requires: php >= 4.3.0
|
||||
Requires: php5-gd, php5-snmp, php5-pear, php5-json, php5-gettext
|
||||
Requires: php5-mysql, php5-ldap, php5-mbstring, php5
|
||||
|
|
Loading…
Reference in New Issue