(file) Return to tog-pegasus.spec CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm

  1 w.otsuka 1.27 #%2005////////////////////////////////////////////////////////////////////////
  2 w.otsuka 1.2  #
  3               # Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4               # Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5               # Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6               # IBM Corp.; EMC Corporation, The Open Group.
  7 w.otsuka 1.24 # Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8               # IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9               # Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10               # EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 w.otsuka 1.2  #
 12               # Permission is hereby granted, free of charge, to any person obtaining a copy
 13               # of this software and associated documentation files (the "Software"), to
 14               # deal in the Software without restriction, including without limitation the
 15               # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16               # sell copies of the Software, and to permit persons to whom the Software is
 17               # furnished to do so, subject to the following conditions:
 18               # 
 19               # THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20               # ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21               # "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22               # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23               # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24               # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25               # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26               # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27               #
 28               #==============================================================================
 29 w.otsuka 1.1  #%/////////////////////////////////////////////////////////////////////////////
 30               #
 31               # tog-pegasus.spec
 32               #
 33 denise.eckstein 1.32 #%/////////////////////////////////////////////////////////////////////////////
 34                      
 35                      #
 36                      # WARNING: This file is automatically generated by executing 
 37                      #   make -f pegasus/Makefile.Release create_OpenPegasusRPMSpecFile
 38 denise.eckstein 1.74 # Any changes made directly to this file in the OpenPegasus source will
 39                      # be lost the next time this file is regenerated and submitted to CVS.
 40 w.otsuka        1.1  #
 41 denise.eckstein 1.32 
 42 denise.eckstein 1.74 Version: 2.5RC1
 43 w.otsuka        1.68 Release: 1%{?LINUX_VERSION:.%{LINUX_VERSION}}
 44 w.otsuka        1.56 Epoch:   1
 45 denise.eckstein 1.32 
 46                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec
 47 denise.eckstein 1.74 #
 48 w.otsuka        1.56 %{?!PEGASUS_BUILD_TEST_RPM:   %define PEGASUS_BUILD_TEST_RPM        0}
 49 denise.eckstein 1.74 # do "rpmbuild --define 'PEGASUS_BUILD_TEST_RPM 1'" to build test RPM.
 50                      #
 51                      %{?!AUTOSTART:   %define AUTOSTART        0}
 52                      # Use "rpm -[iU]vh --define 'AUTOSTART 1'" in order to have cimserver enabled
 53                      # (chkconfig --level=345 tog-pegasus on) after installation.
 54                      #
 55                      
 56 w.otsuka        1.75 %define srcRelease 1
 57 denise.eckstein 1.74 Summary:   OpenPegasus WBEM Services for Linux
 58                      Name:      tog-pegasus
 59                      Group:     Systems Management/Base
 60                      License:   Open Group Pegasus Open Source
 61                      BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 62                      URL:       http://www.openpegasus.org
 63                      
 64 denise.eckstein 1.76 Source:    %{name}-%{version}-%{srcRelease}.tar.gz
 65 denise.eckstein 1.74 
 66                      BuildRequires:      bash, sed, grep, coreutils, procps, gcc, gcc-c++
 67                      BuildRequires:      libstdc++, make, pam-devel
 68                      BuildRequires:      openssl-devel >= 0.9.6, e2fsprogs
 69                      Requires:           bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam
 70                      #Requires:          krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs
 71                      Requires:           e2fsprogs, bind-utils, net-tools
 72                      Requires(post):     bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam
 73                      #Requires(post):    krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs
 74                      Requires(post):     e2fsprogs, bind-utils, net-tools
 75                      Requires(pre):      bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam
 76                      #Requires(pre):     krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs
 77                      Requires(pre):      e2fsprogs, bind-utils, net-tools
 78                      Requires(postun):   bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam
 79                      #Requires(postun):  krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs
 80                      Requires(postun):   e2fsprogs, bind-utils, net-tools
 81                      
 82 w.otsuka        1.73 Conflicts: openwbem
 83 denise.eckstein 1.32 Provides: tog-pegasus-cimserver
 84 w.otsuka        1.64 BuildConflicts: tog-pegasus
 85 w.otsuka        1.1  
 86                      %description
 87 w.otsuka        1.9  OpenPegasus WBEM Services for Linux enables management solutions that deliver
 88 w.otsuka        1.1  increased control of enterprise resources. WBEM is a platform and resource
 89                      independent DMTF standard that defines a common information model and
 90                      communication protocol for monitoring and controlling resources from diverse
 91                      sources.
 92 denise.eckstein 1.74 #
 93 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec
 94 w.otsuka        1.1  
 95 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec
 96                      #
 97 w.otsuka        1.54 %ifarch ia64
 98 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU
 99 w.otsuka        1.1  %else
100 w.otsuka        1.54 %ifarch x86_64
101                      %global PEGASUS_HARDWARE_PLATFORM LINUX_X86_64_GNU
102                      %else
103 w.otsuka        1.24 %ifarch ppc
104 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU
105 w.otsuka        1.24 %else
106 denise.eckstein 1.44 %ifarch ppc64 pseries
107 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC64_GNU
108 w.otsuka        1.24 %else
109                      %ifarch s390
110 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES_GNU
111 w.otsuka        1.24 %else
112                      %ifarch s390x zseries
113 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES64_GNU
114 w.otsuka        1.24 %else
115 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_IX86_GNU
116 denise.eckstein 1.74 %endif 
117                      %endif 
118                      %endif 
119                      %endif 
120 w.otsuka        1.1  %endif
121 w.otsuka        1.24 %endif
122 denise.eckstein 1.74 #
123                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec
124 w.otsuka        1.55 
125 denise.eckstein 1.81 %global PEGASUS_ARCH_LIB %{_lib}
126                      %global OPENSSL_HOME /usr/include/openssl
127                      %global OPENSSL_BIN /usr/bin
128                      %global PEGASUS_PEM_DIR /etc/Pegasus
129                      %global PEGASUS_SSL_CERT_FILE server.pem
130                      %global PEGASUS_SSL_KEY_FILE file.pem
131                      %global PEGASUS_SSL_TRUSTSTORE client.pem
132                      %global PAM_CONFIG_DIR /etc/pam.d
133                      %global PEGASUS_CONFIG_DIR /etc/Pegasus
134                      %global PEGASUS_VARDATA_DIR /var/lib/Pegasus
135                      %global PEGASUS_VARDATA_CACHE_DIR /var/lib/Pegasus/cache
136                      %global PEGASUS_LOCAL_DOMAIN_SOCKET_PATH  /var/run/tog-pegasus/socket/cimxml.socket
137                      %global PEGASUS_CIMSERVER_START_FILE /var/run/tog-pegasus/cimserver.pid
138 denise.eckstein 1.83 %global CIMSERVER_LOCK_FILE /var/run/tog-pegasus/cimserver_start.lock
139 denise.eckstein 1.81 %global PEGASUS_REPOSITORY_DIR /var/lib/Pegasus/repository
140                      %global PEGASUS_PREV_REPOSITORY_DIR_NAME prev_repository
141                      %global PEGASUS_REPOSITORY_PARENT_DIR /var/lib/Pegasus
142                      %global PEGASUS_PREV_REPOSITORY_DIR /var/lib/Pegasus/prev_repository
143                      %global PEGASUS_SBIN_DIR /usr/sbin
144                      %global PEGASUS_DOC_DIR /usr/share/doc/tog-pegasus-2.5
145                      
146                      %global PEGASUS_RPM_ROOT  $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION
147                      %global PEGASUS_RPM_HOME $RPM_BUILD_ROOT/build/tog-pegasus
148                      %global PEGASUS_INSTALL_LOG /var/lib/Pegasus/log/install.log
149                      
150 denise.eckstein 1.32 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
151 denise.eckstein 1.74 #
152 w.otsuka        1.69 %package devel
153 denise.eckstein 1.32 Summary: The OpenPegasus Software Development Kit
154                      Group: Systems Management/Base
155                      Requires: tog-pegasus >= %{version}
156 w.otsuka        1.69 Obsoletes: tog-pegasus-sdk
157 w.otsuka        1.1  
158 w.otsuka        1.69 %description devel
159 denise.eckstein 1.74 The OpenPegasus WBEM Services for Linux SDK is the developer's kit for the
160                      OpenPegasus WBEM Services for Linux release. It provides Linux C++ developers
161                      with the WBEM files required to build WBEM Clients and Providers. It also
162                      supports C provider developers via the CMPI interface.
163 w.otsuka        1.1  
164 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
165 denise.eckstein 1.32 %package test
166                      Summary: The OpenPegasus Tests
167                      Group: Systems Management/Base
168                      Requires: tog-pegasus >= %{version} 
169 w.otsuka        1.1  
170 denise.eckstein 1.32 %description test
171                      The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm.
172 w.otsuka        1.56 %endif
173 denise.eckstein 1.74 #
174                      #End of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
175 w.otsuka        1.1  
176 denise.eckstein 1.32 %prep
177 denise.eckstein 1.74 %setup -q -n %{name}-%{version}
178 w.otsuka        1.28 
179 denise.eckstein 1.32 %build
180                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec
181 denise.eckstein 1.74 #
182 denise.eckstein 1.32 export PEGASUS_ROOT=%PEGASUS_RPM_ROOT
183                      export PEGASUS_HOME=%PEGASUS_RPM_HOME
184                      export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
185 denise.eckstein 1.74 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
186 denise.eckstein 1.32 export PEGASUS_ENVVAR_FILE=$PEGASUS_ROOT/env_var_Linux.status
187 w.otsuka        1.1  
188 denise.eckstein 1.32 export OPENSSL_HOME=%OPENSSL_HOME
189                      export OPENSSL_BIN=%OPENSSL_BIN
190                      export LD_LIBRARY_PATH=$PEGASUS_HOME/lib
191                      export PATH=$PEGASUS_HOME/bin:$PATH
192 w.otsuka        1.1  
193 denise.eckstein 1.74 export PEGASUS_EXTRA_C_FLAGS="$RPM_OPT_FLAGS -g"
194 denise.eckstein 1.32 export PEGASUS_EXTRA_CXX_FLAGS="$PEGASUS_EXTRA_C_FLAGS"
195 denise.eckstein 1.74 export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS"
196                      #export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS -g -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack"
197 w.otsuka        1.1  
198 denise.eckstein 1.32 make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile
199 denise.eckstein 1.76 make -f $PEGASUS_ROOT/Makefile.Release create_CommonProductDirectoriesInclude
200                      make -f $PEGASUS_ROOT/Makefile.Release create_ConfigProductDirectoriesInclude
201 denise.eckstein 1.32 make -f $PEGASUS_ROOT/Makefile.Release all
202                      make -f $PEGASUS_ROOT/Makefile.Release repository
203 denise.eckstein 1.74 #
204 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec
205 w.otsuka        1.27 
206 denise.eckstein 1.32 %install
207                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
208 denise.eckstein 1.74 #
209 denise.eckstein 1.32 export PEGASUS_ROOT=%PEGASUS_RPM_ROOT
210                      export PEGASUS_HOME=%PEGASUS_RPM_HOME
211                      export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
212 denise.eckstein 1.74 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
213 denise.eckstein 1.32 export PEGASUS_ENVVAR_FILE=$PEGASUS_ROOT/env_var_Linux.status
214 w.otsuka        1.1  
215 denise.eckstein 1.32 export OPENSSL_BIN=%OPENSSL_BIN
216                      export LD_LIBRARY_PATH=$PEGASUS_HOME/lib
217                      export PATH=$PEGASUS_HOME/bin:$PATH
218 w.otsuka        1.1  
219 denise.eckstein 1.32 export PEGASUS_STAGING_DIR=$RPM_BUILD_ROOT
220 w.otsuka        1.1  
221 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
222 denise.eckstein 1.74 make -f $PEGASUS_ROOT/Makefile.Release stage \
223                          PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR \
224                          PEGASUS_BUILD_TEST_RPM=%{PEGASUS_BUILD_TEST_RPM}
225 w.otsuka        1.56 %else
226 denise.eckstein 1.74 make -f $PEGASUS_ROOT/Makefile.Release stage \
227                          PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR
228 w.otsuka        1.56 %endif
229 denise.eckstein 1.74 
230                      [ "$PEGASUS_HOME" != "/" ] && [ -d $PEGASUS_HOME ] && rm -rf $PEGASUS_HOME;
231                      #
232 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
233 w.otsuka        1.1  
234 denise.eckstein 1.32 %clean
235                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-clean.spec
236 denise.eckstein 1.74 #
237 w.otsuka        1.77 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT;
238                      [ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/%{name}-%{version};
239 denise.eckstein 1.74 #
240 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-clean.spec
241 w.otsuka        1.1  
242                      %pre
243 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
244                      #           install   remove   upgrade  reinstall
245                      # pre          1        -         2         2
246                      #
247                      # If it exists, the active OpenPegasus Repository
248                      #    directory, %PEGASUS_REPOSITORY_DIR is renamed
249                      #    to %PEGASUS_PREV_REPOSITORY_DIR.  If
250                      #    %PEGASUS_PREV_REPOSITORY_DIR already exists,
251                      #    it is saved as an archive file.
252 denise.eckstein 1.32 
253 denise.eckstein 1.74 if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]; then
254                         #
255                         # Save the current repository to prev_repository
256                         #
257                         if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
258                              /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
259                                  %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
260                                  %PEGASUS_PREV_REPOSITORY_DIR_NAME
261                              rm -rf %PEGASUS_PREV_REPOSITORY_DIR
262                         fi
263                         /bin/mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR
264                      fi
265 w.otsuka        1.82 if [ $1 -gt 0 ]; then
266 denise.eckstein 1.74    #  Create the 'pegasus' user and group:
267                         /usr/sbin/groupadd pegasus > /dev/null 2>&1 || :;
268                         /usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \
269                              -g pegasus -s /sbin/nologin -r -d %PEGASUS_VARDATA_DIR pegasus \
270                               > /dev/null 2>&1 || :;
271 w.otsuka        1.1  fi
272 denise.eckstein 1.74 #
273 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
274 w.otsuka        1.1  
275                      %post
276 w.otsuka        1.24 if [ $1 -eq 1 ]; then
277 denise.eckstein 1.35    echo `date` > %PEGASUS_INSTALL_LOG 2>&1
278 denise.eckstein 1.76    %define PEGASUS_CONFIG_DIR /etc/Pegasus
279                         %define PEGASUS_PEM_DIR /etc/Pegasus
280 denise.eckstein 1.32    %define PEGASUS_SSL_CERT_FILE server.pem
281                         %define PEGASUS_SSL_KEY_FILE file.pem
282                         %define PEGASUS_SSL_TRUSTSTORE client.pem
283                      
284                         # Create Symbolic Links for SDK Libraries
285                         #
286 denise.eckstein 1.81    ln -sf libpegclient.so.1 /usr/%PEGASUS_ARCH_LIB/libpegclient.so
287                         ln -sf libpegcommon.so.1 /usr/%PEGASUS_ARCH_LIB/libpegcommon.so
288                         ln -sf libpegprovider.so.1 /usr/%PEGASUS_ARCH_LIB/libpegprovider.so
289                         ln -sf libDefaultProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/libDefaultProviderManager.so
290                         ln -sf libCIMxmlIndicationHandler.so.1 /usr/%PEGASUS_ARCH_LIB/libCIMxmlIndicationHandler.so
291                         ln -sf libCMPIProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/libCMPIProviderManager.so
292 denise.eckstein 1.32 
293                         # Create Symbolic Links for Packaged Provider Libraries
294                         #
295 denise.eckstein 1.81    ln -sf libComputerSystemProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libComputerSystemProvider.so
296                         ln -sf libOSProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libOSProvider.so
297                         ln -sf libProcessProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libProcessProvider.so
298 denise.eckstein 1.32 
299                      
300                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
301 denise.eckstein 1.74 #
302                      #           install   remove   upgrade  reinstall
303                      # %post        1        -         2         2
304                      #
305 denise.eckstein 1.81    export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
306                      
307 denise.eckstein 1.74    if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
308                             # Running Repository Upgrade utility
309                             %PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR \
310                                 %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG
311                             /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
312                                 %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
313                                 %PEGASUS_PREV_REPOSITORY_DIR_NAME
314                             rm -rf %PEGASUS_PREV_REPOSITORY_DIR
315 denise.eckstein 1.32    fi
316 denise.eckstein 1.74    if [ $1 -eq 1 ]; then
317                      %if %{AUTOSTART}
318                             /sbin/chkconfig --add tog-pegasus
319                      %endif
320                         :;
321                         elif [ $1 -gt 0 ]; then
322 w.otsuka        1.79        /etc/init.d/tog-pegasus condrestart
323 denise.eckstein 1.74    :;
324 denise.eckstein 1.32    fi
325 denise.eckstein 1.74 #
326 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
327 w.otsuka        1.1  
328 w.otsuka        1.57 elif [ $1 -gt 1 ]; then
329 denise.eckstein 1.74    if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
330 w.otsuka        1.71      # Running Repository Upgrade utility
331                           %PEGASUS_SBIN_DIR/repupgrade 2>>%PEGASUS_INSTALL_LOG
332                         fi
333 w.otsuka        1.79    /etc/init.d/tog-pegasus condrestart
334 denise.eckstein 1.74    :;
335 w.otsuka        1.24 fi
336 denise.eckstein 1.74 
337 w.otsuka        1.1  %preun
338 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec
339                      #           install   remove   upgrade  reinstall
340                      #  preun       -        0         1         -
341 w.otsuka        1.24 if [ $1 -eq 0 ]; then
342 denise.eckstein 1.32    # Check if the cimserver is running
343 denise.eckstein 1.74    isRunning=`ps -el | grep cimserver |  grep -v "grep cimserver"`
344 denise.eckstein 1.32    if [ "$isRunning" ]; then
345 denise.eckstein 1.74       %PEGASUS_SBIN_DIR/cimserver -s
346                         fi 
347                         /sbin/chkconfig --del tog-pegasus;
348                         rm -f %PEGASUS_VARDATA_DIR/cimserver_current.conf;
349                         rm -f %PEGASUS_INSTALL_LOG;
350                         [ -d %PEGASUS_REPOSITORY_DIR ]  && rm -rf %PEGASUS_REPOSITORY_DIR;
351                         [ -d %PEGASUS_VARDATA_CACHE_DIR ]  && rm -rf %PEGASUS_VARDATA_CACHE_DIR;
352                         rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH;
353                         rm -f %PEGASUS_CIMSERVER_START_FILE;
354 denise.eckstein 1.83    rm -f %CIMSERVER_LOCK_FILE;
355 w.otsuka        1.24 fi
356 denise.eckstein 1.74 #
357                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec
358 w.otsuka        1.1  
359 w.otsuka        1.69 %preun devel
360 denise.eckstein 1.76 make --directory /usr/share/Pegasus/samples -s clean
361 denise.eckstein 1.44 
362 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
363 denise.eckstein 1.46 %preun test
364 denise.eckstein 1.76 make --directory /usr/share/Pegasus/test -s unsetupTEST
365                      [ -d /var/lib/Pegasus/testrepository ] &&  rm -rf /var/lib/Pegasus/testrepository;
366 denise.eckstein 1.46 
367 w.otsuka        1.56 %endif
368 w.otsuka        1.1  %postun
369 w.otsuka        1.24 if [ $1 -eq 0 ]; then
370 denise.eckstein 1.32    export LC_ALL=C
371 w.otsuka        1.1  fi
372 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec
373                      #
374                      #           install   remove   upgrade  reinstall
375                      #  postun      -        0         1         -
376                      if [ $1 -eq 0 ]; then
377                         /usr/sbin/userdel pegasus > /dev/null 2>&1 || :;
378 w.otsuka        1.78    /usr/sbin/groupdel pegasus > /dev/null 2>&1 || :;
379 denise.eckstein 1.74 fi;
380                      #
381                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec
382 w.otsuka        1.1  
383                      %files
384 denise.eckstein 1.76 %defattr(600, root, pegasus, 755)
385                      %dir /usr/share/doc/tog-pegasus-2.5
386                      %dir /usr/share/Pegasus
387                      %dir /usr/share/Pegasus/scripts
388                      %dir /usr/share/Pegasus/mof
389                      %dir /usr/share/Pegasus/mof/CIM29
390                      %dir /usr/share/Pegasus/mof/Pegasus
391                      %dir /var/lib/Pegasus
392                      %dir /var/lib/Pegasus/cache
393                      %dir /var/lib/Pegasus/log
394                      %dir /var/lib/Pegasus/cache/localauth
395 denise.eckstein 1.74 %dir /var/run/tog-pegasus
396 denise.eckstein 1.81 %dir /usr/%PEGASUS_ARCH_LIB/Pegasus 
397                      %dir /usr/%PEGASUS_ARCH_LIB/Pegasus/providers 
398 denise.eckstein 1.74 
399 denise.eckstein 1.76 %dir %attr(750, root, pegasus) /etc/Pegasus
400 denise.eckstein 1.74 %dir %attr(1555,root,pegasus) /var/run/tog-pegasus/socket
401 denise.eckstein 1.76 %dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace
402 denise.eckstein 1.74 
403 denise.eckstein 1.76 %dir %attr(750, root, pegasus) /var/lib/Pegasus/repository
404                      /var/lib/Pegasus/repository/*
405                      /usr/share/Pegasus/mof/CIM29/*
406                      /usr/share/Pegasus/mof/Pegasus/*
407 denise.eckstein 1.74 
408                      %config %attr(750,root,pegasus) /etc/init.d/tog-pegasus
409 denise.eckstein 1.76 %config(noreplace) /var/lib/Pegasus/cimserver_planned.conf
410                      %config(noreplace) /etc/Pegasus/access.conf
411 denise.eckstein 1.74 %config(noreplace) /etc/pam.d/wbem
412                      
413 denise.eckstein 1.76 %ghost %config(noreplace) /etc/Pegasus/ssl.cnf
414                      %ghost %config(noreplace) /etc/Pegasus/client.pem
415                      %ghost %config(noreplace) /etc/Pegasus/server.pem
416                      %ghost %config(noreplace) /etc/Pegasus/file.pem
417                      %ghost /var/lib/Pegasus/log/install.log
418                      
419                      %attr(750,root,pegasus) /usr/sbin/*
420                      %attr(755,root,pegasus) /usr/bin/*
421 denise.eckstein 1.81 %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/*.so.1
422                      %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so.1
423 denise.eckstein 1.76 %attr(750,root,pegasus) /usr/share/Pegasus/scripts/*
424                      %attr(644,root,pegasus) /usr/share/man/man1/*
425                      %attr(640,root,pegasus) /usr/share/man/man8/*
426                      
427                      %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/Admin_Guide_Release.pdf
428                      %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/PegasusSSLGuidelines.htm
429                      %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/license.txt
430 denise.eckstein 1.81 /usr/%PEGASUS_ARCH_LIB/libpegclient.so
431                      /usr/%PEGASUS_ARCH_LIB/libpegcommon.so
432                      /usr/%PEGASUS_ARCH_LIB/libpegprovider.so
433                      /usr/%PEGASUS_ARCH_LIB/libDefaultProviderManager.so
434                      /usr/%PEGASUS_ARCH_LIB/libCIMxmlIndicationHandler.so
435                      /usr/%PEGASUS_ARCH_LIB/libCMPIProviderManager.so
436                      /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libComputerSystemProvider.so
437                      /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libOSProvider.so
438                      /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libProcessProvider.so
439 w.otsuka        1.1  
440 w.otsuka        1.69 %files devel
441 denise.eckstein 1.76 %defattr(644,root,pegasus,755)
442 w.otsuka        1.80 /usr/include/Pegasus
443 denise.eckstein 1.76 /usr/share/Pegasus/samples
444                      /usr/share/doc/tog-pegasus-2.5/*
445                      /usr/share/Pegasus/html
446 denise.eckstein 1.81 %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so
447 w.otsuka        1.28 
448 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
449 w.otsuka        1.28 %files test
450 denise.eckstein 1.74 %defattr(-,root,pegasus,-)
451 denise.eckstein 1.76 /usr/share/Pegasus/test
452                      /var/lib/Pegasus/testrepository
453 w.otsuka        1.56 %endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2