mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
2009-06-25 Manuel Arostegui <marostegui@artica.es>
* pandora_console.spec: RPM spec file for 3.0 version. Packages built succesfully for: Centos5, Fedora 11, RHEL5, SLE9, SLE10, SLE11, OpenSuse 10.3, OpenSuse 11, OpenSuse 11, OpenSuse Factory. We still need to check the exactly names in Suse distros for dependencies. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1773 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f9307a4baa
commit
c2c2c00bdd
@ -1,3 +1,11 @@
|
|||||||
|
2009-06-25 Manuel Arostegui <marostegui@artica.es>
|
||||||
|
|
||||||
|
* pandora_console.spec: RPM spec file for 3.0 version.
|
||||||
|
Packages built succesfully for: Centos5, Fedora 11,
|
||||||
|
RHEL5, SLE9, SLE10, SLE11, OpenSuse 10.3, OpenSuse 11,
|
||||||
|
OpenSuse 11, OpenSuse Factory. We still need to check
|
||||||
|
the exactly names in Suse distros for dependencies.
|
||||||
|
|
||||||
2009-06-25 Miguel de Dios <miguel.dedios@artica.es>
|
2009-06-25 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_db.php: optimice the search agent in DB, quit option
|
* include/functions_db.php: optimice the search agent in DB, quit option
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
# Pandora FMS Console
|
# Pandora FMS Console
|
||||||
#
|
#
|
||||||
%define name PandoraFMS_Console
|
%define name PandoraFMS_Console
|
||||||
%define version 2.0.0
|
%define version 3.0.0
|
||||||
%define release 1
|
|
||||||
|
|
||||||
|
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
@ -51,7 +50,7 @@
|
|||||||
Summary: Web Console for Pandora FMS
|
Summary: Web Console for Pandora FMS
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: 1
|
||||||
License: GPL
|
License: GPL
|
||||||
Vendor: Sancho Lerena <sancho.lerena@artica.es>
|
Vendor: Sancho Lerena <sancho.lerena@artica.es>
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
@ -71,8 +70,9 @@ AutoReq: 0
|
|||||||
%if "%{_vendor}" == "suse"
|
%if "%{_vendor}" == "suse"
|
||||||
Requires: apache2
|
Requires: apache2
|
||||||
Requires: php >= 4.3.0
|
Requires: php >= 4.3.0
|
||||||
Requires: php-gd
|
Requires: php-gd, php-snmp, php-pear
|
||||||
Requires: mysql, php-mysql, php-snmp, php-pear
|
Requires: mysql, php-mysql
|
||||||
|
Requires: graphviz
|
||||||
|
|
||||||
%else
|
%else
|
||||||
%if %{is_apache}
|
%if %{is_apache}
|
||||||
@ -80,9 +80,7 @@ Requires: apache
|
|||||||
%else
|
%else
|
||||||
Requires: httpd
|
Requires: httpd
|
||||||
%endif
|
%endif
|
||||||
Requires: php >= 4.3.0
|
Requires: httpd mysql-server php-pear php-mysql php-pear-DB php-devel php-gd php-snmp php-ldap php-mbstring net-snmp-perl net-snmp-utils graphviz-php
|
||||||
Requires: php-gd
|
|
||||||
Requires: mysql, mysql-server, php-mysql, php-snmp, php-pear
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Provides: %{name}-%{version}
|
Provides: %{name}-%{version}
|
||||||
@ -104,23 +102,28 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
mkdir -p $RPM_BUILD_ROOT%{prefix}/pandora_console
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/pandora_console
|
||||||
#mkdir -p $RPM_BUILD_ROOT/usr/share/
|
|
||||||
#mkdir -p $RPM_BUILD_ROOT/usr/share/man/
|
|
||||||
#mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
|
||||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_console
|
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_console
|
||||||
#cp pandora.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
if [ -f $RPM_BUILD_ROOT%{prefix}/pandora_console/pandora_console.spec ] ; then
|
||||||
#cp pandora_console.1 $RPM_BUILD_ROOT/usr/share/man/man1/
|
rm $RPM_BUILD_ROOT%{prefix}/pandora_console/pandora_console.spec
|
||||||
if [ -f $RPM_BUILD_ROOT%{prefix}/%{name}/%{name}.spec ] ; then
|
|
||||||
rm $RPM_BUILD_ROOT%{prefix}/%{name}/%{name}.spec
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%post
|
%post
|
||||||
echo "Please, now, point your broswer to http://localhost/pandora_console/install.php and follow all the steps described on it."
|
echo "Please, now, point your broswer to http://localhost/pandora_console/install.php and follow all the steps described on it."
|
||||||
|
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
pear install DB
|
||||||
|
echo "Please, now, point your broswer to http://localhost/pandora_console/install.php and follow all the steps described on it."
|
||||||
|
fi
|
||||||
%files
|
%files
|
||||||
%defattr(0644,%{httpd_user},%{httpd_group},0755)
|
%defattr(0644,%{httpd_user},%{httpd_group},0755)
|
||||||
%docdir %{prefix}/pandora_console/docs
|
%docdir %{prefix}/pandora_console/docs
|
||||||
%{prefix}/pandora_console
|
%{prefix}/pandora_console
|
||||||
#%{_mandir}/man1/pandora.1.gz
|
|
||||||
#%{_mandir}/man1/pandora_console.1.gz
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user