diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 6e8bf3388d..f11e01c387 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2007-06-18 Manuel Arostegui + + * specs/fedoracore5/pandora_server.spec: Ready for the 1.3 packaging. + 2007-06-17 Sancho Lerena * bin/pandora_server.pl: Now keepalive subprocess uses alert_check diff --git a/pandora_server/specs/fedoracore5/pandora_server.spec b/pandora_server/specs/fedoracore5/pandora_server.spec index b9caf9d5a9..498c74cb57 100755 --- a/pandora_server/specs/fedoracore5/pandora_server.spec +++ b/pandora_server/specs/fedoracore5/pandora_server.spec @@ -1,8 +1,8 @@ # -# Pandora Agents +# Pandora Server # %define name pandora_server -%define version 1.2.0 +%define version 1.3 Summary: Pandora Server Name: %{name} Version: %{version} @@ -14,9 +14,9 @@ URL: http://pandora.sf.net Group: System/Monitoring Packager: Manuel Arostegui Prefix: /usr/share -BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +BuildRoot: %{_tmppath}/%{name}-buildroot BuildArchitectures: noarch -Requires: openssh-server net-snmp perl-XML-Simple perl-DBI perl-TimeDate perl-DateManip perl-Net-Ping perl-Net-Ping-External perl-IO-Socket-SSL +Requires: openssh-server net-snmp perl-XML-Simple perl-DBI perl-TimeDate perl-DateManip perl-Net-Ping perl-IO-Socket-SSL Requires: perl-Net-SNMP perl-Digest-MD2 AutoReq: 0 Provides: %{name}-%{version} @@ -28,7 +28,7 @@ Pandora watchs your systems and applications, and allows to know the status of a rm -rf $RPM_BUILD_ROOT #Evaluate perl version: -perl_version=`rpm -q --queryformat='%{VERSION}' perl` +export perl_version=`rpm -q --queryformat='%{VERSION}' perl` %setup -q -n pandora_server @@ -43,35 +43,46 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/man mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1 mkdir -p $RPM_BUILD_ROOT/usr/bin/ mkdir -p $RPM_BUILD_ROOT/etc/ +mkdir -p $RPM_BUILD_ROOT/etc/init.d/ mkdir -p $RPM_BUILD_ROOT/etc/pandora/ -mkdir -p $RPM_BUILD_ROOT/etc/pandora/conf/ -mkdir -p $RPM_BUILD_ROOT/usr/local/ mkdir -p $RPM_BUILD_ROOT/var/spool/pandora/ mkdir -p $RPM_BUILD_ROOT/var/spool/pandora/data_in mkdir -p $RPM_BUILD_ROOT/var/log/pandora/ mkdir -p $RPM_BUILD_ROOT/usr/share/pandora_server/ mkdir -p $RPM_BUILD_ROOT/usr/share/pandora_server/conf/ +mkdir -p $RPM_BUILD_ROOT/usr/share/pandora_server/bin/ mkdir -p $RPM_BUILD_ROOT/usr/lib/ mkdir -p $RPM_BUILD_ROOT/usr/lib/perl5 mkdir -p $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/ -mkdir -p $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5 - +mkdir -p $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/PandoraFMS +#mkdir -p $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/`rpm -q --queryformat='%{VERSION}' perl` cp -aRf * $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release} -mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_server.pl $RPM_BUILD_ROOT/usr/bin/pandora_server -mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_network.pl $RPM_BUILD_ROOT/usr/bin/pandora_network -mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_snmpconsole.pl $RPM_BUILD_ROOT/usr/bin/pandora_snmpconsole -mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/conf/pandora_server.conf $RPM_BUILD_ROOT/usr/share/pandora_server/conf/pandora_server.conf -mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/util/ $RPM_BUILD_ROOT/usr/share/pandora/ -mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_config.pm $RPM_BUILD_ROOT/usr/share/pandora_server/util/ -mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_db.pm $RPM_BUILD_ROOT/usr/share/pandora_server/util/ -mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_tools.pm $RPM_BUILD_ROOT/usr/share/pandora_server/util/ -cp $RPM_BUILD_ROOT/usr/share/pandora_server/util/pandora_config.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/ -cp $RPM_BUILD_ROOT/usr/share/pandora_server/util/pandora_db.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/ -cp $RPM_BUILD_ROOT/usr/share/pandora_server/util/pandora_tools.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/ -cp $RPM_BUILD_ROOT/usr/share/pandora_server/pandora_server $RPM_BUILD_ROOT/etc/init.d/pandora_server -cp $RPM_BUILD_ROOT/usr/share/pandora_server/pandora_recon $RPM_BUILD_ROOT/etc/init.d/pandora_recon -cp $RPM_BUILD_ROOT/usr/share/pandora_server/bin/pandora_recon.pl $RPM_BUILD_ROOT/usr/bin/pandora_recon - +#mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_server.pl $RPM_BUILD_ROOT/usr/bin/pandora_server +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_server.pl $RPM_BUILD_ROOT/usr/bin/pandora_server +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_network.pl $RPM_BUILD_ROOT/usr/bin/pandora_network +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_recon.pl $RPM_BUILD_ROOT/usr/bin/pandora_recon +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_server.pl $RPM_BUILD_ROOT/usr/share/pandora_server/bin/ +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_network.pl $RPM_BUILD_ROOT/usr/share/pandora_server/bin/ +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_recon.pl $RPM_BUILD_ROOT/usr/share/pandora_server/bin/ +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_snmpconsole.pl $RPM_BUILD_ROOT/usr/bin/pandora_snmpconsole +mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/conf/pandora_server.conf $RPM_BUILD_ROOT/usr/share/pandora_server/conf/ +mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/util/ $RPM_BUILD_ROOT/usr/share/pandora_server/ +#mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_config.pm $RPM_BUILD_ROOT/usr/share/pandora_server/util/ +#mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_db.pm $RPM_BUILD_ROOT/usr/share/pandora_server/util/ +#mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_tools.pm $RPM_BUILD_ROOT/usr/share/pandora_server/util/ +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/PandoraFMS/DB.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/PandoraFMS +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/PandoraFMS/PingExternal.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/PandoraFMS +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/PandoraFMS/Tools.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/PandoraFMS +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/PandoraFMS/Config.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/PandoraFMS +#cp $RPM_BUILD_ROOT/usr/share/pandora_server/util/pandora_config.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/ +#cp $RPM_BUILD_ROOT/usr/share/pandora_server/util/pandora_db.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/ +#cp $RPM_BUILD_ROOT/usr/share/pandora_server/util/pandora_tools.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/ +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_server $RPM_BUILD_ROOT/etc/init.d/pandora_server +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_network $RPM_BUILD_ROOT/etc/init.d/pandora_network +cp $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/pandora_recon $RPM_BUILD_ROOT/etc/init.d/pandora_recon +#cp $RPM_BUILD_ROOT/usr/share/pandora_server/pandora_server $RPM_BUILD_ROOT/etc/init.d/pandora_server +#cp $RPM_BUILD_ROOT/usr/share/pandora_server/pandora_recon $RPM_BUILD_ROOT/etc/init.d/pandora_network +#cp $RPM_BUILD_ROOT/usr/share/pandora_server/bin/pandora_recon.pl $RPM_BUILD_ROOT/usr/bin/pandora_recon cp pandora.1 $RPM_BUILD_ROOT/usr/share/man/man1/ cp pandora_server.1 $RPM_BUILD_ROOT/usr/share/man/man1/ if [ -f $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/%{name}.spec ] ; then @@ -79,7 +90,7 @@ if [ -f $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/%{name}.spec ] ; fi %clean -#rm -rf $RPM_BUILD_ROOT +rm -fr $RPM_BUILD_ROOT rm -fr $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release} %post if [ "$1" = "0" ]; then @@ -87,15 +98,13 @@ if [ "$1" = "0" ]; then /usr/sbin/groupdel pandora fi mkdir -p /etc/pandora -mkdir -p /etc/pandora/conf/ -ln -s /usr/share/pandora_server/conf/pandora_server.conf /etc/pandora/conf/pandora_server.conf +ln -s /usr/share/pandora_server/conf/pandora_server.conf /etc/pandora/pandora_server.conf mkdir -p /usr/share/pandora_server/ mkdir -p /usr/share/pandora_server/log/ -mkdir -p /usr/share/pandora_server/data_in - +rm -fr /usr/share/pandora_server-1.3-1 echo "Pandora Server binarys has been placed under /usr/bin/" -echo "Pandora Server configuration is /etc/pandora/conf" +echo "Pandora Server configuration is /etc/pandora/" echo "Pandora Server data has been placed under /var/spool/pandora/data_in/" echo "Pandora Server logs has benn placed under /var/log/pandora" echo "For further information please: man pandora or man pandora_server" @@ -103,24 +112,44 @@ echo "For further information please: man pandora or man pandora_server" %defattr(700,pandora,pandora) /usr/bin/pandora_server /usr/bin/pandora_network +/usr/bin/pandora_recon /usr/bin/pandora_snmpconsole /var/spool/pandora/ -/usr/bin/pandora_recon /etc/init.d/pandora_recon /etc/init.d/pandora_server +/etc/init.d/pandora_network %defattr(755,pandora,pandora) #/etc/pandora/conf/pandora_server.conf -/usr/share/pandora_server/util/pandora_config.pm -/usr/share/pandora_server/util/pandora_db.pm -/usr/share/pandora_server/util/pandora_tools.pm +/usr/share/pandora_server/util/agent_creator.php +/usr/share/pandora_server/util/crea_modulos_ping.php +/usr/share/pandora_server/util/lista_ip.txt /usr/share/pandora_server/util/pandora_db.pl +/usr/share/pandora_server/util/pandora_dbstress.log /usr/share/pandora_server/util/pandora_dbstress.pl /usr/share/pandora_server/util/snmptrapd -/usr/lib/perl5/site_perl/5.8.5/pandora_config.pm -/usr/lib/perl5/site_perl/5.8.5/pandora_db.pm -/usr/lib/perl5/site_perl/5.8.5/pandora_tools.pm -/usr/share/pandora/conf/pandora_server.conf +/usr/share/pandora_server/bin/pandora_network.pl +/usr/share/pandora_server/bin/pandora_recon.pl +/usr/share/pandora_server/bin/pandora_server.pl +/usr/share/pandora_server/util/PandoraFMS +#/usr/share/pandora_server/util/pandora_config.pm +#/usr/share/pandora_server/util/pandora_db.pm +#/usr/share/pandora_server/util/pandora_tools.pm +#/usr/share/pandora_server/util/pandora_db.pl +#/usr/share/pandora_server/util/pandora_dbstress.pl +#/usr/share/pandora_server/util/snmptrapd +#/usr/lib/perl5/site_perl/5.8.5/pandora_config.pm +#/usr/lib/perl5/site_perl/5.8.5/pandora_db.pm +#/usr/lib/perl5/site_perl/5.8.5/pandora_tools.pm +#/usr/share/pandora_server/bin/PandoraFMS/Config.pm +#/usr/share/pandora_server/bin/PandoraFMS/DB.pm +#/usr/share/pandora_server/bin/PandoraFMS/PingExternal.pm +#/usr/share/pandora_server/bin/PandoraFMS/Tools.pm +/usr/lib/perl5/site_perl/PandoraFMS/DB.pm +/usr/lib/perl5/site_perl/PandoraFMS/Tools.pm +/usr/lib/perl5/site_perl/PandoraFMS/PingExternal.pm +/usr/lib/perl5/site_perl/PandoraFMS/Config.pm +/usr/share/pandora_server/conf/pandora_server.conf /var/log/pandora %docdir %{prefix}/%{name}-%{version}-%{release}/docs