From e362a597acac852a9370d5546f28f49de4fe1126 Mon Sep 17 00:00:00 2001 From: marostegui Date: Fri, 22 Dec 2006 09:39:11 +0000 Subject: [PATCH] 2006-12-22 Manuel Arostegui * pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Much more polished spec file. Lot of changes made. Added notes as a remind after installation. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 6 +++++ .../specs/fedoracore5/perl-Pandora-1.2.spec | 26 +++++++++++++++++-- .../specs/rhel/perl-Pandora-1.2.spec | 4 +++ 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 596406190c..47517e9235 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,9 @@ +2006-12-22 Manuel Arostegui + + * pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Much more + polished spec file. Lot of changes made. Added notes as a remind + after installation. + 2006-12-21 Manuel Arostegui * pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Changed diff --git a/pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec b/pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec index e38f8a39ad..04bf22055c 100644 --- a/pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec +++ b/pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec @@ -8,14 +8,16 @@ License: GPL Group: System Development/Languages Distribution: Fedora Core 5 Source: file://usr/src/redhat/SOURCES/%{TarBall}-%{version}.tar.gz -Vendor: Sancho Lerena -Packager: Jose Angel de Bustos Perez , Manuel Arostegui +Vendor: Sancho Lerena +Packager: Manuel Arostegui BuildRequires: perl make Requires: perl perl-DateManip perl-XML-Simple %description PerlPersonalLibrary is my own set of PERL functions. %prep + + mkdir /usr/lib/perl5/site_perl/5.8.5/Pandora/ cp /usr/src/redhat/SOURCES/Pandora-1.2/lib/Pandora/pandora_config.pm /usr/lib/perl5/site_perl/5.8.5/Pandora/ cp /usr/src/redhat/SOURCES/Pandora-1.2/lib/Pandora/pandora_db.pm /usr/lib/perl5/site_perl/5.8.5/Pandora/ @@ -27,6 +29,24 @@ perl Makefile.PL %install make install +%post +cp /usr/src/redhat/SOURCES/PandoraFMS_Server-1.2.0.tar.gz /opt +cd /opt/ && tar -zxvf PandoraFMS_Server-1.2.0.tar.gz +useradd -m -s /bin/bash pandora +chown pandora /opt/pandora_server/data_in +chown pandora /opt/pandora_server/log +chown pandora /opt/pandora_server/var +su pandora -c "mkdir /home/pandora/.ssh" +su pandora -c "touch /home/pandora/.ssh/authorized_keys" +su pandora -c "chmod 600 /home/pandora/.ssh/authorized_keys" +/etc/init.d/sshd restart +clear +echo "You are required to generate ssh keys by using ssh-keygen. For further information read documentation at: http://pandora.sourceforge.net/en/index.php?sec=docs" +echo "You HAVE TO give a password to the pandora user which has been created during the installation of this package. Use "passwd pandora" " +echo "Enjoy Pandora. We remind you to point your browser to http://www.openideas.info/phpbb/ if you have any question, idea..." +echo "Pandora Team" + + %files %defattr(-,root,root) @@ -39,6 +59,8 @@ make install rm -Rf $RPM_BUILD_DIR/%{name}-%{version} %changelog +* Fri Dec 22 2006 - Manuel Arostegui Ramirez +- Pandora 1.2 spec file. Added Server Files * Wed Nov 22 2006 - Manuel Arostegui Ramirez - Added Fedora PATHS * Wed Nov 22 2006 - Jose Angel de Bustos Perez diff --git a/pandora_server/specs/rhel/perl-Pandora-1.2.spec b/pandora_server/specs/rhel/perl-Pandora-1.2.spec index 782de63e77..5e24a71aed 100644 --- a/pandora_server/specs/rhel/perl-Pandora-1.2.spec +++ b/pandora_server/specs/rhel/perl-Pandora-1.2.spec @@ -24,6 +24,10 @@ perl Makefile.PL %install make install +%post +cp /usr/src/redhat/SOURCES/PandoraFMS_Server-1.2.0.tar.gz /opt +cd /opt/ && tar -zxvf PandoraFMS_Server-1.2.0.tar.gz + %files %defattr(-,root,root)