version 1.20.2.12, 2005/02/26 00:01:32
|
version 1.20.2.15, 2005/03/25 21:23:13
|
|
|
# | # |
# Package spec for PEGASUS 2.4 | # Package spec for PEGASUS 2.4 |
# | # |
%define srcRelease 2 |
%define srcRelease 3 |
Summary: OpenPegasus WBEM Services for Linux | Summary: OpenPegasus WBEM Services for Linux |
Name: tog-pegasus | Name: tog-pegasus |
Version: 2.4.1.Beta | Version: 2.4.1.Beta |
Release: 2 |
Release: 3 |
Group: Systems Management/Base | Group: Systems Management/Base |
Copyright: Open Group Pegasus Open Source | Copyright: Open Group Pegasus Open Source |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
|
|
%define PEGASUS_MANADMIN_DIR %PEGASUS_MAN_DIR/man8 | %define PEGASUS_MANADMIN_DIR %PEGASUS_MAN_DIR/man8 |
%define PEGASUS_VARDATA_DIR /var/opt/tog-pegasus | %define PEGASUS_VARDATA_DIR /var/opt/tog-pegasus |
%define PEGASUS_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/repository | %define PEGASUS_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/repository |
|
%define PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/prev_repository |
%define PEGASUS_VARDATA_CACHE_DIR %PEGASUS_VARDATA_DIR/cache | %define PEGASUS_VARDATA_CACHE_DIR %PEGASUS_VARDATA_DIR/cache |
%define PEGASUS_LOCAL_AUTH_DIR %PEGASUS_VARDATA_CACHE_DIR/localauth | %define PEGASUS_LOCAL_AUTH_DIR %PEGASUS_VARDATA_CACHE_DIR/localauth |
%define PEGASUS_MOF_DIR %PEGASUS_PROD_DIR/mof | %define PEGASUS_MOF_DIR %PEGASUS_PROD_DIR/mof |
|
|
# | # |
# Save the current repository to prev_repository. | # Save the current repository to prev_repository. |
# | # |
|
if [[ -d %PEGASUS_REPOSITORY_DIR ]] |
REPOSITORY_LOC=%PEGASUS_REPOSITORY_DIR |
|
PREV_REPOSITORY_LOC=%PEGASUS_REPOSITORY_DIR"/prev_repository" |
|
|
|
if [[ -d $REPOSITORY_LOC ]] |
|
then | then |
if [[ -d $PREV_REPOSITORY_LOC ]] |
if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]] |
then | then |
rm -rf $PREV_REPOSITORY_LOC |
rm -rf %PEGASUS_PREV_REPOSITORY_DIR |
fi | fi |
| |
mv $REPOSITORY_LOC $PREV_REPOSITORY_LOC |
mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR |
mkdir $REPOSITORY_LOC |
mkdir %PEGASUS_REPOSITORY_DIR |
fi | fi |
fi | fi |
| |
|
|
ln -sf libpegprovider.so.1 libpegprovider.so | ln -sf libpegprovider.so.1 libpegprovider.so |
ln -sf libDefaultProviderManager.so.1 libDefaultProviderManager.so | ln -sf libDefaultProviderManager.so.1 libDefaultProviderManager.so |
ln -sf libCMPIProviderManager.so.1 libCMPIProviderManager.so | ln -sf libCMPIProviderManager.so.1 libCMPIProviderManager.so |
|
ln -sf libCIMxmlIndicationHandler.so.1 libCIMxmlIndicationHandler.so |
| |
# Create symbolic links for provider libs | # Create symbolic links for provider libs |
# | # |