2006-12-22 Manuel Arostegui <marostegui@artica.es>
* 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
This commit is contained in:
parent
8b3cb81fb9
commit
e362a597ac
|
@ -1,3 +1,9 @@
|
||||||
|
2006-12-22 Manuel Arostegui <marostegui@artica.es>
|
||||||
|
|
||||||
|
* 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 <marostegui@artica.es>
|
2006-12-21 Manuel Arostegui <marostegui@artica.es>
|
||||||
|
|
||||||
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Changed
|
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Changed
|
||||||
|
|
|
@ -8,14 +8,16 @@ License: GPL
|
||||||
Group: System Development/Languages
|
Group: System Development/Languages
|
||||||
Distribution: Fedora Core 5
|
Distribution: Fedora Core 5
|
||||||
Source: file://usr/src/redhat/SOURCES/%{TarBall}-%{version}.tar.gz
|
Source: file://usr/src/redhat/SOURCES/%{TarBall}-%{version}.tar.gz
|
||||||
Vendor: Sancho Lerena <slerena@gmail.com>
|
Vendor: Sancho Lerena <slerena@artica.es>
|
||||||
Packager: Jose Angel de Bustos Perez <jadebustos@linuxmail.org>, Manuel Arostegui <marostegui@artica.es>
|
Packager: Manuel Arostegui <marostegui@artica.es>
|
||||||
BuildRequires: perl make
|
BuildRequires: perl make
|
||||||
Requires: perl perl-DateManip perl-XML-Simple
|
Requires: perl perl-DateManip perl-XML-Simple
|
||||||
%description
|
%description
|
||||||
PerlPersonalLibrary is my own set of PERL functions.
|
PerlPersonalLibrary is my own set of PERL functions.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
|
|
||||||
mkdir /usr/lib/perl5/site_perl/5.8.5/Pandora/
|
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_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/
|
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
|
%install
|
||||||
make 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
|
%files
|
||||||
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
@ -39,6 +59,8 @@ make install
|
||||||
rm -Rf $RPM_BUILD_DIR/%{name}-%{version}
|
rm -Rf $RPM_BUILD_DIR/%{name}-%{version}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 22 2006 - Manuel Arostegui Ramirez <marostegui@artica.es>
|
||||||
|
- Pandora 1.2 spec file. Added Server Files
|
||||||
* Wed Nov 22 2006 - Manuel Arostegui Ramirez <marostegui@artica.es>
|
* Wed Nov 22 2006 - Manuel Arostegui Ramirez <marostegui@artica.es>
|
||||||
- Added Fedora PATHS
|
- Added Fedora PATHS
|
||||||
* Wed Nov 22 2006 - Jose Angel de Bustos Perez <jadebustos@linuxmail.org>
|
* Wed Nov 22 2006 - Jose Angel de Bustos Perez <jadebustos@linuxmail.org>
|
||||||
|
|
|
@ -24,6 +24,10 @@ perl Makefile.PL
|
||||||
%install
|
%install
|
||||||
make 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
|
%files
|
||||||
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
Loading…
Reference in New Issue