version 1.48, 2005/04/16 06:37:12
|
version 1.54, 2005/05/06 04:31:08
|
|
|
%global PEGASUS_RPM_HOME $RPM_BUILD_ROOT/build/tog-pegasus | %global PEGASUS_RPM_HOME $RPM_BUILD_ROOT/build/tog-pegasus |
%global PEGASUS_INSTALL_LOG /var/opt/tog-pegasus/log/install.log | %global PEGASUS_INSTALL_LOG /var/opt/tog-pegasus/log/install.log |
| |
%ifarch ia64 x86_64 |
%ifarch ia64 |
%global PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU | %global PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU |
%else | %else |
|
%ifarch x86_64 |
|
%global PEGASUS_HARDWARE_PLATFORM LINUX_X86_64_GNU |
|
%else |
%ifarch ppc | %ifarch ppc |
%global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU | %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU |
%else | %else |
|
|
cp %PEGASUS_PEM_DIR/truststore-2048.pem %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE | cp %PEGASUS_PEM_DIR/truststore-2048.pem %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE |
chmod 444 %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE | chmod 444 %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE |
fi | fi |
|
if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]] |
|
then |
|
# Running Repository Upgrade utility |
|
%PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG |
|
fi |
|
|
| |
/usr/lib/lsb/install_initd /etc/init.d/tog-pegasus | /usr/lib/lsb/install_initd /etc/init.d/tog-pegasus |
| |
|
|
isRunning=`ps -el | grep cimserver | grep -v "grep cimserver"` | isRunning=`ps -el | grep cimserver | grep -v "grep cimserver"` |
if [ "$isRunning" ]; then | if [ "$isRunning" ]; then |
/opt/tog-pegasus/sbin/cimserver -s | /opt/tog-pegasus/sbin/cimserver -s |
|
fi |
[ -f /var/opt/tog-pegasus/cimserver_current.conf ] && rm /var/opt/tog-pegasus/cimserver_current.conf; | [ -f /var/opt/tog-pegasus/cimserver_current.conf ] && rm /var/opt/tog-pegasus/cimserver_current.conf; |
[ -f %PEGASUS_INSTALL_LOG ] && rm %PEGASUS_INSTALL_LOG; | [ -f %PEGASUS_INSTALL_LOG ] && rm %PEGASUS_INSTALL_LOG; |
[ -d /var/opt/tog-pegasus/repository ] && rm -rf /var/opt/tog-pegasus/repository; | [ -d /var/opt/tog-pegasus/repository ] && rm -rf /var/opt/tog-pegasus/repository; |
|
[ -d /var/opt/tog-pegasus/cache ] && rm -rf /var/opt/tog-pegasus/cache; |
rm -f /var/run/tog-pegasus/socket/cimxml.socket; | rm -f /var/run/tog-pegasus/socket/cimxml.socket; |
fi |
rm -f /var/run/tog-pegasus/cimserver.pid |
# Delete the Link to the rc.* Startup Directories | # Delete the Link to the rc.* Startup Directories |
/usr/lib/lsb/remove_initd /etc/init.d/tog-pegasus; | /usr/lib/lsb/remove_initd /etc/init.d/tog-pegasus; |
fi | fi |
|
|
%attr(500,root ,root) /opt/tog-pegasus/sbin/cimuser | %attr(500,root ,root) /opt/tog-pegasus/sbin/cimuser |
%attr(500,root ,root) /opt/tog-pegasus/sbin/cimprovagt | %attr(500,root ,root) /opt/tog-pegasus/sbin/cimprovagt |
%attr(500,root ,root) /opt/tog-pegasus/sbin/cimservera | %attr(500,root ,root) /opt/tog-pegasus/sbin/cimservera |
|
%attr(500,root ,root) /opt/tog-pegasus/sbin/repupgrade |
%attr(500,root ,root) /opt/tog-pegasus/sbin/init_repository | %attr(500,root ,root) /opt/tog-pegasus/sbin/init_repository |
%attr(500,root ,root) /opt/tog-pegasus/sbin/settogpath | %attr(500,root ,root) /opt/tog-pegasus/sbin/settogpath |
| |
|
|
%attr(444,root ,root) /opt/tog-pegasus/test/mak/commands.mak | %attr(444,root ,root) /opt/tog-pegasus/test/mak/commands.mak |
%attr(555,root ,root) /opt/tog-pegasus/test/lib/libSampleInstanceProvider.so.1 | %attr(555,root ,root) /opt/tog-pegasus/test/lib/libSampleInstanceProvider.so.1 |
%attr(555,root ,root) /opt/tog-pegasus/test/lib/libSampleMethodProvider.so.1 | %attr(555,root ,root) /opt/tog-pegasus/test/lib/libSampleMethodProvider.so.1 |
%attr(555,root ,root) /opt/tog-pegasus/test/lib/libSampleFamilyProvider.so.1 |
%attr(555,root ,root) /opt/tog-pegasus/test/lib/libFamilyProvider.so.1 |
%attr(555,root ,root) /opt/tog-pegasus/test/bin/TestAbstract | %attr(555,root ,root) /opt/tog-pegasus/test/bin/TestAbstract |
%attr(555,root ,root) /opt/tog-pegasus/test/bin/TestArray | %attr(555,root ,root) /opt/tog-pegasus/test/bin/TestArray |
%attr(555,root ,root) /opt/tog-pegasus/test/bin/TestBase64 | %attr(555,root ,root) /opt/tog-pegasus/test/bin/TestBase64 |