version 1.43, 2005/04/04 05:56:07
|
version 1.46, 2005/04/14 06:36:36
|
|
|
%ifarch ppc | %ifarch ppc |
%global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU | %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU |
%else | %else |
%ifarch ppc64 |
%ifarch ppc64 pseries |
%global PEGASUS_HARDWARE_PLATFORM LINUX_PPC64_GNU | %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC64_GNU |
%else | %else |
%ifarch s390 | %ifarch s390 |
|
|
| |
%build | %build |
| |
|
%ifarch s390 s390x zseries |
|
export PEGASUS_EXTRA_C_FLAGS="$PEGASUS_EXTRA_C_FLAGS -fsigned-char" |
|
%endif |
|
|
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec | # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec |
export PEGASUS_ROOT=%PEGASUS_RPM_ROOT | export PEGASUS_ROOT=%PEGASUS_RPM_ROOT |
export PEGASUS_HOME=%PEGASUS_RPM_HOME | export PEGASUS_HOME=%PEGASUS_RPM_HOME |
|
|
chmod 444 %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE | chmod 444 %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE |
fi | fi |
| |
|
/usr/lib/lsb/install_initd /etc/init.d/tog-pegasus |
|
|
echo " To start Pegasus manually:" | echo " To start Pegasus manually:" |
echo " /etc/init.d/tog-pegasus start" | echo " /etc/init.d/tog-pegasus start" |
echo " Stop it:" | echo " Stop it:" |
|
|
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; |
|
rm -f /var/run/tog-pegasus/socket/cimxml.socket; |
|
fi |
# 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 |
| |
|
%preun sdk |
|
make --directory /opt/tog-pegasus/samples -s clean |
|
|
|
%preun test |
|
make --directory /opt/tog-pegasus/test -s unsetupTEST |
|
[ -d /var/opt/tog-pegasus/testrepository ] && rm -rf /var/opt/tog-pegasus/testrepository; |
|
|
%postun | %postun |
if [ $1 -eq 0 ]; then | if [ $1 -eq 0 ]; then |
[ -f %PEGASUS_PEM_DIR/key-2048.pem ] && rm %PEGASUS_PEM_DIR/key-2048.pem; | [ -f %PEGASUS_PEM_DIR/key-2048.pem ] && rm %PEGASUS_PEM_DIR/key-2048.pem; |
|
|
%attr(555,bin,bin) /opt/tog-pegasus/test/bin/TestValue | %attr(555,bin,bin) /opt/tog-pegasus/test/bin/TestValue |
%attr(555,bin,bin) /opt/tog-pegasus/test/bin/TracerTest | %attr(555,bin,bin) /opt/tog-pegasus/test/bin/TracerTest |
%attr(555,bin,bin) /opt/tog-pegasus/test/bin/IPC | %attr(555,bin,bin) /opt/tog-pegasus/test/bin/IPC |
%attr(555,bin,bin) /opt/tog-pegasus/test/bin/CompAssoc |
|
%attr(555,bin,bin) /opt/tog-pegasus/test/bin/UserManagerTest |
|
%attr(555,bin,bin) /opt/tog-pegasus/test/bin/TestClient | %attr(555,bin,bin) /opt/tog-pegasus/test/bin/TestClient |
%attr(555,bin,bin) /opt/tog-pegasus/test/bin/OSTestClient | %attr(555,bin,bin) /opt/tog-pegasus/test/bin/OSTestClient |
%attr(555,bin,bin) /opt/tog-pegasus/test/bin/InvokeMethod2 | %attr(555,bin,bin) /opt/tog-pegasus/test/bin/InvokeMethod2 |