version 1.40, 2005/04/01 00:58:51
|
version 1.47, 2005/04/14 20:19:45
|
|
|
%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; |
|
|
| |
%dir %attr(555,root,root) /opt/tog-pegasus/mof/Pegasus | %dir %attr(555,root,root) /opt/tog-pegasus/mof/Pegasus |
| |
/var/opt/tog-pegasus/repository |
%attr(-,root,root) /var/opt/tog-pegasus/repository |
| |
%doc %attr(444,root,root) /opt/tog-pegasus/license.txt | %doc %attr(444,root,root) /opt/tog-pegasus/license.txt |
%doc %attr(444,root,root) /opt/tog-pegasus/share/man/man1/cimmof.1 | %doc %attr(444,root,root) /opt/tog-pegasus/share/man/man1/cimmof.1 |
|
|
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/ResponseHandler.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/ResponseHandler.h |
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/SSLContext.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/SSLContext.h |
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/String.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/String.h |
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/Platform_LINUX_IX86_GNU.h |
|
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Consumer/CIMIndicationConsumer.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Consumer/CIMIndicationConsumer.h |
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Consumer/Linkage.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Consumer/Linkage.h |
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Provider/CIMAssociationProvider.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Provider/CIMAssociationProvider.h |
|
|
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/LanguageElement.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/LanguageElement.h |
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Client/ClientOpPerformanceDataHandler.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Client/ClientOpPerformanceDataHandler.h |
%attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/CIMOperationType.h | %attr(444,root,root) /opt/tog-pegasus/include/Pegasus/Common/CIMOperationType.h |
|
%attr(444,root ,root) /opt/tog-pegasus/include/Pegasus/Common/Platform_%PEGASUS_HARDWARE_PLATFORM.h |
| |
# SDK Sample Files | # SDK Sample Files |
# | # |
|
|
%dir %attr(777,root,root) /opt/tog-pegasus/samples/Providers/Load | %dir %attr(777,root,root) /opt/tog-pegasus/samples/Providers/Load |
%dir %attr(777,root,root) /opt/tog-pegasus/samples/mak | %dir %attr(777,root,root) /opt/tog-pegasus/samples/mak |
%attr(444,root,root) /opt/tog-pegasus/samples/Makefile | %attr(444,root,root) /opt/tog-pegasus/samples/Makefile |
%attr(444,root,root) /opt/tog-pegasus/samples/mak/LINUX_IX86_GNU.mak |
|
%attr(444,root,root) /opt/tog-pegasus/samples/mak/config.mak | %attr(444,root,root) /opt/tog-pegasus/samples/mak/config.mak |
%attr(444,root,root) /opt/tog-pegasus/samples/mak/program.mak | %attr(444,root,root) /opt/tog-pegasus/samples/mak/program.mak |
%attr(444,root,root) /opt/tog-pegasus/samples/mak/recurse.mak | %attr(444,root,root) /opt/tog-pegasus/samples/mak/recurse.mak |
|
|
%attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/EnumInstances/Makefile | %attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/EnumInstances/Makefile |
%attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/InvokeMethod/Makefile | %attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/InvokeMethod/Makefile |
%attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/SendTestIndications/Makefile | %attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/SendTestIndications/Makefile |
|
%attr(444,root ,root) /opt/tog-pegasus/samples/mak/%PEGASUS_HARDWARE_PLATFORM.mak |
%attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/EnumInstances/EnumInstances.cpp | %attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/EnumInstances/EnumInstances.cpp |
%attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/InvokeMethod/InvokeMethod.cpp | %attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/InvokeMethod/InvokeMethod.cpp |
%attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/SendTestIndications/SendTestIndications.cpp | %attr(444,root,root) /opt/tog-pegasus/samples/Clients/DefaultC++/SendTestIndications/SendTestIndications.cpp |
|
|
| |
# SDK Documentation | # SDK Documentation |
# | # |
%dir %attr(555,root,root) /opt/tog-pegasus/html |
%attr(-,root ,root) /opt/tog-pegasus/html |
%dir %attr(555,root,root) /opt/tog-pegasus/html/DefaultC++ |
|
%attr(444,root,root) /opt/tog-pegasus/html/index.html |
|
%attr(444,root,root) /opt/tog-pegasus/html/DefaultC++/*.html |
|
%attr(444,root,root) /opt/tog-pegasus/html/DefaultC++/*.gif |
|
| |
%files test | %files test |
| |
|
|
%attr(555,root,root) /opt/tog-pegasus/test/bin/TestValue | %attr(555,root,root) /opt/tog-pegasus/test/bin/TestValue |
%attr(555,root,root) /opt/tog-pegasus/test/bin/TracerTest | %attr(555,root,root) /opt/tog-pegasus/test/bin/TracerTest |
%attr(555,root,root) /opt/tog-pegasus/test/bin/IPC | %attr(555,root,root) /opt/tog-pegasus/test/bin/IPC |
%attr(555,root,root) /opt/tog-pegasus/test/bin/CompAssoc |
|
%attr(555,root,root) /opt/tog-pegasus/test/bin/UserManagerTest |
|
%attr(555,root,root) /opt/tog-pegasus/test/bin/TestClient | %attr(555,root,root) /opt/tog-pegasus/test/bin/TestClient |
%attr(555,root,root) /opt/tog-pegasus/test/bin/OSTestClient | %attr(555,root,root) /opt/tog-pegasus/test/bin/OSTestClient |
%attr(555,root,root) /opt/tog-pegasus/test/bin/InvokeMethod2 | %attr(555,root,root) /opt/tog-pegasus/test/bin/InvokeMethod2 |
%attr(444,root,root) /opt/tog-pegasus/test/Makefile | %attr(444,root,root) /opt/tog-pegasus/test/Makefile |
/var/opt/tog-pegasus/testrepository |
%attr(-,root,root) /var/opt/tog-pegasus/testrepository |
| |