mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
2006-12-22 Manuel Arostegui <marostegui@artica.es>
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Fixed some nonsenses. * pandora_server/specs/rhel/perl-Pandora-1.2.spec: Much more polished spec file. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1578bb70b1
commit
683b646adb
@ -1,3 +1,11 @@
|
|||||||
|
2006-12-22 Manuel Arostegui <marostegui@artica.es>
|
||||||
|
|
||||||
|
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Fixed some
|
||||||
|
nonsenses.
|
||||||
|
|
||||||
|
* pandora_server/specs/rhel/perl-Pandora-1.2.spec: Much more polished
|
||||||
|
spec file.
|
||||||
|
|
||||||
2006-12-22 Manuel Arostegui <marostegui@artica.es>
|
2006-12-22 Manuel Arostegui <marostegui@artica.es>
|
||||||
|
|
||||||
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Much more
|
* pandora_server/specs/fedoracore5/perl-Pandora-1.2.spec: Much more
|
||||||
|
@ -32,17 +32,16 @@ make install
|
|||||||
%post
|
%post
|
||||||
cp /usr/src/redhat/SOURCES/PandoraFMS_Server-1.2.0.tar.gz /opt
|
cp /usr/src/redhat/SOURCES/PandoraFMS_Server-1.2.0.tar.gz /opt
|
||||||
cd /opt/ && tar -zxvf PandoraFMS_Server-1.2.0.tar.gz
|
cd /opt/ && tar -zxvf PandoraFMS_Server-1.2.0.tar.gz
|
||||||
useradd -m -s /bin/bash pandora
|
useradd -m -s /bin/false -d /opt/pandora_server pandora
|
||||||
chown pandora /opt/pandora_server/data_in
|
chown pandora /opt/pandora_server/data_in
|
||||||
chown pandora /opt/pandora_server/log
|
chown pandora /opt/pandora_server/log
|
||||||
chown pandora /opt/pandora_server/var
|
chown pandora /opt/pandora_server/var
|
||||||
su pandora -c "mkdir /home/pandora/.ssh"
|
su pandora -c "mkdir /opt/pandora_server/.ssh"
|
||||||
su pandora -c "touch /home/pandora/.ssh/authorized_keys"
|
su pandora -c "touch /opt/pandora_server/.ssh/authorized_keys"
|
||||||
su pandora -c "chmod 600 /home/pandora/.ssh/authorized_keys"
|
su pandora -c "chmod 600 /opt/pandora_server/.ssh/authorized_keys"
|
||||||
/etc/init.d/sshd restart
|
/etc/init.d/sshd restart
|
||||||
clear
|
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 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 "Enjoy Pandora. We remind you to point your browser to http://www.openideas.info/phpbb/ if you have any question, idea..."
|
||||||
echo "Pandora Team"
|
echo "Pandora Team"
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Group: System Development/Languages
|
|||||||
Distribution: RHEL 4 AS
|
Distribution: RHEL 4 AS
|
||||||
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@gmail.com>
|
||||||
Packager: Jose Angel de Bustos Perez <jadebustos@linuxmail.org>
|
Packager: Jose Angel de Bustos Perez <jadebustos@linuxmail.org>, 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
|
||||||
|
|
||||||
@ -27,6 +27,19 @@ make install
|
|||||||
%post
|
%post
|
||||||
cp /usr/src/redhat/SOURCES/PandoraFMS_Server-1.2.0.tar.gz /opt
|
cp /usr/src/redhat/SOURCES/PandoraFMS_Server-1.2.0.tar.gz /opt
|
||||||
cd /opt/ && tar -zxvf PandoraFMS_Server-1.2.0.tar.gz
|
cd /opt/ && tar -zxvf PandoraFMS_Server-1.2.0.tar.gz
|
||||||
|
useradd -m -s /bin/false -d /opt/pandora_server pandora
|
||||||
|
chown pandora /opt/pandora_server/data_in
|
||||||
|
chown pandora /opt/pandora_server/log
|
||||||
|
chown pandora /opt/pandora_server/var
|
||||||
|
su pandora -c "mkdir /opt/pandora_server/.ssh"
|
||||||
|
su pandora -c "touch /opt/pandora_server/.ssh/authorized_keys"
|
||||||
|
su pandora -c "chmod 600 /opt/pandora_server/.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 "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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user