From f6ad83ebe23adb9fe4eba19d5e4ad2e75edfb77b Mon Sep 17 00:00:00 2001 From: marostegui Date: Tue, 16 Jan 2007 08:56:00 +0000 Subject: [PATCH] 2007-01-16 Manuel Arostegui * pandora_server/specs/fedoracore5/pandora_server.spec: Fixed bug #1636585. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@361 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ .../specs/fedoracore5/pandora_server.spec | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 9aa6cc3cd7..a5b95ea768 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2007-01-16 Manuel Arostegui + + * pandora_server/specs/fedoracore5/pandora_server.spec: Fixed + bug #1636585. + 2007-01-08 Manuel Arostegui * pandora_server/specs/fedoracore5/pandora_server.spec: Changed group. diff --git a/pandora_server/specs/fedoracore5/pandora_server.spec b/pandora_server/specs/fedoracore5/pandora_server.spec index 56eb380828..3da68d9ca6 100755 --- a/pandora_server/specs/fedoracore5/pandora_server.spec +++ b/pandora_server/specs/fedoracore5/pandora_server.spec @@ -47,6 +47,11 @@ 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/ +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/5.8.5/Pandora 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 @@ -57,6 +62,10 @@ mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/util/ $RPM_BUILD_ROOT/ mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_config.pm $RPM_BUILD_ROOT/usr/share/pandora/util/ mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_db.pm $RPM_BUILD_ROOT/usr/share/pandora/util/ mv $RPM_BUILD_ROOT%{prefix}/%{name}-%{version}-%{release}/bin/pandora_tools.pm $RPM_BUILD_ROOT/usr/share/pandora/util/ +cp $RPM_BUILD_ROOT/usr/share/pandora/util/pandora_config.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/Pandora/ +cp $RPM_BUILD_ROOT/usr/share/pandora/util/pandora_db.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/Pandora/ +cp $RPM_BUILD_ROOT/usr/share/pandora/util/pandora_tools.pm $RPM_BUILD_ROOT/usr/lib/perl5/site_perl/5.8.5/Pandora/ + cp pandora.1 $RPM_BUILD_ROOT/usr/share/man/man1/ cp pandora_server.1 $RPM_BUILD_ROOT/usr/share/man/man1/ @@ -67,6 +76,11 @@ fi %clean rm -rf $RPM_BUILD_ROOT %post +if [ "$1" = "0" ]; then + /usr/sbin/userdel pandora + /usr/sbin/groupdel pandora +fi + echo "Pandora Server binarys has been placed under /usr/bin/" echo "Pandora Server configuration is /etc/pandora/conf" echo "Pandora Server data has been placed under /var/spool/data_in/" @@ -86,6 +100,10 @@ echo "For further information please: man pandora or man pandora_server" /usr/share/pandora/util/pandora_db.pl /usr/share/pandora/util/pandora_dbstress.pl /usr/share/pandora/util/snmptrapd +/usr/lib/perl5/site_perl/5.8.5/Pandora/pandora_config.pm +/usr/lib/perl5/site_perl/5.8.5/Pandora/pandora_db.pm +/usr/lib/perl5/site_perl/5.8.5/Pandora/pandora_tools.pm + %docdir %{prefix}/%{name}-%{version}-%{release}/docs %{prefix}/%{name}-%{version}-%{release} %{_mandir}/man1/pandora.1.gz