mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Merge branch 'ent-3792-northern-instalar-paquetes-consola-en-red-hat' into 'develop'
RHEL specs and build orders (update version) See merge request artica/pandorafms!2327 Former-commit-id: 8d6acaab90efec5cec698272e98f76ebc40b39df
This commit is contained in:
commit
8f369828c4
26
extras/build_rpm_rhel7.sh
Normal file
26
extras/build_rpm_rhel7.sh
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
source build_vars.sh
|
||||||
|
|
||||||
|
if [ ! -d $RPMHOME/RPMS ]; then
|
||||||
|
mkdir -p $RPMHOME/RPMS || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Creating RPM packages in $RPMHOME/RPMS"
|
||||||
|
|
||||||
|
# Console
|
||||||
|
rpmbuild -ba $CODEHOME/pandora_console/pandora_console.rhel7.spec || exit 1
|
||||||
|
|
||||||
|
# Server
|
||||||
|
rpmbuild -ba $CODEHOME/pandora_server/pandora_server.rhel7.spec || exit 1
|
||||||
|
|
||||||
|
# Unix agent
|
||||||
|
rpmbuild -ba $CODEHOME/pandora_agents/unix/pandora_agent.rhel7.spec || exit 1
|
||||||
|
|
||||||
|
# Enterprise console
|
||||||
|
rpmbuild -ba $PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.rhel7.spec || exit 1
|
||||||
|
|
||||||
|
# Enterprise server
|
||||||
|
rpmbuild -ba $PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.rhel7.spec || exit 1
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -26,6 +26,7 @@ $CODEHOME/pandora_server/pandora_server.spec \
|
|||||||
$PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.spec \
|
$PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.spec \
|
||||||
$PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.spec \
|
$PANDHOME_ENT/pandora_server/PandoraFMS-Enterprise/pandora_server_enterprise.spec \
|
||||||
$CODEHOME/pandora_console/pandora_console.redhat.spec \
|
$CODEHOME/pandora_console/pandora_console.redhat.spec \
|
||||||
|
$CODEHOME/pandora_console/pandora_console.rhel7.spec \
|
||||||
$CODEHOME/pandora_agents/unix/pandora_agent.redhat.spec \
|
$CODEHOME/pandora_agents/unix/pandora_agent.redhat.spec \
|
||||||
$CODEHOME/pandora_server/pandora_server.redhat.spec \
|
$CODEHOME/pandora_server/pandora_server.redhat.spec \
|
||||||
$PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.redhat.spec \
|
$PANDHOME_ENT/pandora_console/enterprise/pandora_console_enterprise.redhat.spec \
|
||||||
|
81
pandora_console/pandora_console.rhel7.spec
Normal file
81
pandora_console/pandora_console.rhel7.spec
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
#
|
||||||
|
# Pandora FMS Console
|
||||||
|
#
|
||||||
|
%define name pandorafms_console
|
||||||
|
%define version 7.0NG.733
|
||||||
|
%define release 190329
|
||||||
|
|
||||||
|
# User and Group under which Apache is running
|
||||||
|
%define httpd_name httpd
|
||||||
|
%define httpd_user apache
|
||||||
|
%define httpd_group apache
|
||||||
|
|
||||||
|
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
|
||||||
|
URL: http://www.pandorafms.com
|
||||||
|
Group: Productivity/Networking/Web/Utilities
|
||||||
|
Packager: Sancho Lerena <slerena@artica.es>
|
||||||
|
Prefix: /var/www/html
|
||||||
|
BuildRoot: %{_tmppath}/%{name}
|
||||||
|
BuildArch: noarch
|
||||||
|
AutoReq: 0
|
||||||
|
Requires: %{httpd_name} >= 2.0.0
|
||||||
|
Requires: httpd24-mod_php >= 7.0
|
||||||
|
Requires: php-gd, php-ldap, php-snmp, php-session, php-gettext
|
||||||
|
Requires: php-mysqlnd, php-mbstring, php-zip, php-zlib, php-curl
|
||||||
|
Requires: xorg-x11-fonts-75dpi, xorg-x11-fonts-misc, php-pecl-zip
|
||||||
|
Requires: graphviz
|
||||||
|
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%{_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 pandora_console_logrotate_centos $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
|
||||||
|
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_console
|
Loading…
x
Reference in New Issue
Block a user