(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 w.otsuka        1.75 Source:    ftp://www.opengroup.org/pegasus/%{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.32 %global OPENSSL_HOME /usr/include/openssl
 96                      %global OPENSSL_BIN /usr/bin
 97                      %global PEGASUS_PEM_DIR /etc/opt/tog-pegasus
 98                      %global PEGASUS_SSL_CERT_FILE server.pem
 99                      %global PEGASUS_SSL_KEY_FILE file.pem
100                      %global PEGASUS_SSL_TRUSTSTORE client.pem
101                      %global PAM_CONFIG_DIR /etc/pam.d
102                      %global PEGASUS_CONFIG_DIR /etc/opt/tog-pegasus
103 denise.eckstein 1.74 %global PEGASUS_VARDATA_DIR /var/opt/tog-pegasus
104                      %global PEGASUS_VARDATA_CACHE_DIR /var/opt/tog-pegasus/cache
105                      %global PEGASUS_LOCAL_DOMAIN_SOCKET_PATH  /var/run/tog-pegasus/socket/cimxml.socket
106                      %global PEGASUS_CIMSERVER_START_FILE /var/run/tog-pegasus/cimserver.pid
107 denise.eckstein 1.32 %global PEGASUS_REPOSITORY_DIR /var/opt/tog-pegasus/repository
108 denise.eckstein 1.74 %global PEGASUS_PREV_REPOSITORY_DIR_NAME  prev_repository
109                      %global PEGASUS_REPOSITORY_PARENT_DIR  /var/opt/tog-pegasus
110 denise.eckstein 1.32 %global PEGASUS_PREV_REPOSITORY_DIR /var/opt/tog-pegasus/prev_repository
111 denise.eckstein 1.36 %global PEGASUS_SBIN_DIR /opt/tog-pegasus/sbin
112 w.otsuka        1.61 %global PEGASUS_DOC_DIR /opt/tog-pegasus/share/doc
113 w.otsuka        1.1  
114 denise.eckstein 1.74 %global PEGASUS_RPM_ROOT  $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION
115 denise.eckstein 1.32 %global PEGASUS_RPM_HOME $RPM_BUILD_ROOT/build/tog-pegasus
116 denise.eckstein 1.38 %global PEGASUS_INSTALL_LOG /var/opt/tog-pegasus/log/install.log
117 denise.eckstein 1.35 
118 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec
119                      #
120 w.otsuka        1.54 %ifarch ia64
121 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU
122 w.otsuka        1.1  %else
123 w.otsuka        1.54 %ifarch x86_64
124                      %global PEGASUS_HARDWARE_PLATFORM LINUX_X86_64_GNU
125                      %else
126 w.otsuka        1.24 %ifarch ppc
127 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU
128 w.otsuka        1.24 %else
129 denise.eckstein 1.44 %ifarch ppc64 pseries
130 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC64_GNU
131 w.otsuka        1.24 %else
132                      %ifarch s390
133 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES_GNU
134 w.otsuka        1.24 %else
135                      %ifarch s390x zseries
136 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES64_GNU
137 w.otsuka        1.24 %else
138 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_IX86_GNU
139 denise.eckstein 1.74 %endif 
140                      %endif 
141                      %endif 
142                      %endif 
143 w.otsuka        1.1  %endif
144 w.otsuka        1.24 %endif
145 denise.eckstein 1.74 #
146                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec
147 w.otsuka        1.55 
148 denise.eckstein 1.32 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
149 denise.eckstein 1.74 #
150 w.otsuka        1.69 %package devel
151 denise.eckstein 1.32 Summary: The OpenPegasus Software Development Kit
152                      Group: Systems Management/Base
153                      Requires: tog-pegasus >= %{version}
154 w.otsuka        1.69 Obsoletes: tog-pegasus-sdk
155 w.otsuka        1.1  
156 w.otsuka        1.69 %description devel
157 denise.eckstein 1.74 The OpenPegasus WBEM Services for Linux SDK is the developer's kit for the
158                      OpenPegasus WBEM Services for Linux release. It provides Linux C++ developers
159                      with the WBEM files required to build WBEM Clients and Providers. It also
160                      supports C provider developers via the CMPI interface.
161 w.otsuka        1.1  
162 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
163 denise.eckstein 1.32 %package test
164                      Summary: The OpenPegasus Tests
165                      Group: Systems Management/Base
166                      Requires: tog-pegasus >= %{version} 
167 w.otsuka        1.1  
168 denise.eckstein 1.32 %description test
169                      The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm.
170 w.otsuka        1.56 %endif
171 denise.eckstein 1.74 #
172                      #End of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
173 w.otsuka        1.1  
174 denise.eckstein 1.32 %prep
175 denise.eckstein 1.74 %setup -q -n %{name}-%{version}
176 w.otsuka        1.28 
177 denise.eckstein 1.32 %build
178                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec
179 denise.eckstein 1.74 #
180 denise.eckstein 1.32 export PEGASUS_ROOT=%PEGASUS_RPM_ROOT
181                      export PEGASUS_HOME=%PEGASUS_RPM_HOME
182                      export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
183 denise.eckstein 1.74 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
184 denise.eckstein 1.32 export PEGASUS_ENVVAR_FILE=$PEGASUS_ROOT/env_var_Linux.status
185 w.otsuka        1.1  
186 denise.eckstein 1.32 export OPENSSL_HOME=%OPENSSL_HOME
187                      export OPENSSL_BIN=%OPENSSL_BIN
188                      export LD_LIBRARY_PATH=$PEGASUS_HOME/lib
189                      export PATH=$PEGASUS_HOME/bin:$PATH
190 w.otsuka        1.1  
191 denise.eckstein 1.74 export PEGASUS_EXTRA_C_FLAGS="$RPM_OPT_FLAGS -g"
192 denise.eckstein 1.32 export PEGASUS_EXTRA_CXX_FLAGS="$PEGASUS_EXTRA_C_FLAGS"
193 denise.eckstein 1.74 export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS"
194                      #export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS -g -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack"
195 w.otsuka        1.1  
196 denise.eckstein 1.32 make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile
197                      make -f $PEGASUS_ROOT/Makefile.Release all
198                      make -f $PEGASUS_ROOT/Makefile.Release repository
199 denise.eckstein 1.74 #
200 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec
201 w.otsuka        1.27 
202 denise.eckstein 1.32 %install
203                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
204 denise.eckstein 1.74 #
205 denise.eckstein 1.32 export PEGASUS_ROOT=%PEGASUS_RPM_ROOT
206                      export PEGASUS_HOME=%PEGASUS_RPM_HOME
207                      export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
208 denise.eckstein 1.74 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
209 denise.eckstein 1.32 export PEGASUS_ENVVAR_FILE=$PEGASUS_ROOT/env_var_Linux.status
210 w.otsuka        1.1  
211 denise.eckstein 1.32 export OPENSSL_BIN=%OPENSSL_BIN
212                      export LD_LIBRARY_PATH=$PEGASUS_HOME/lib
213                      export PATH=$PEGASUS_HOME/bin:$PATH
214 w.otsuka        1.1  
215 denise.eckstein 1.32 export PEGASUS_STAGING_DIR=$RPM_BUILD_ROOT
216 w.otsuka        1.1  
217 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
218 denise.eckstein 1.74 make -f $PEGASUS_ROOT/Makefile.Release stage \
219                          PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR \
220                          PEGASUS_BUILD_TEST_RPM=%{PEGASUS_BUILD_TEST_RPM}
221 w.otsuka        1.56 %else
222 denise.eckstein 1.74 make -f $PEGASUS_ROOT/Makefile.Release stage \
223                          PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR
224 w.otsuka        1.56 %endif
225 denise.eckstein 1.74 
226                      [ "$PEGASUS_HOME" != "/" ] && [ -d $PEGASUS_HOME ] && rm -rf $PEGASUS_HOME;
227                      #
228 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
229 w.otsuka        1.1  
230 denise.eckstein 1.32 %clean
231                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-clean.spec
232 denise.eckstein 1.74 #
233                      #[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT;
234                      #[ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/%{name}-%{version};
235                      #
236 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-clean.spec
237 w.otsuka        1.1  
238                      %pre
239 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
240                      #           install   remove   upgrade  reinstall
241                      # pre          1        -         2         2
242                      #
243                      # If it exists, the active OpenPegasus Repository
244                      #    directory, %PEGASUS_REPOSITORY_DIR is renamed
245                      #    to %PEGASUS_PREV_REPOSITORY_DIR.  If
246                      #    %PEGASUS_PREV_REPOSITORY_DIR already exists,
247                      #    it is saved as an archive file.
248 denise.eckstein 1.32 
249 denise.eckstein 1.74 if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]; then
250                         #
251                         # Save the current repository to prev_repository
252                         #
253                         if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
254                              /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
255                                  %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
256                                  %PEGASUS_PREV_REPOSITORY_DIR_NAME
257                              rm -rf %PEGASUS_PREV_REPOSITORY_DIR
258                         fi
259                         /bin/mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR
260                      fi
261                      if [ $1 -eq 1 ]; then
262                         #  Create the 'pegasus' user and group:
263                         /usr/sbin/groupadd pegasus > /dev/null 2>&1 || :;
264                         /usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \
265                              -g pegasus -s /sbin/nologin -r -d %PEGASUS_VARDATA_DIR pegasus \
266                               > /dev/null 2>&1 || :;
267 w.otsuka        1.1  fi
268 denise.eckstein 1.74 #
269 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
270 w.otsuka        1.1  
271                      %post
272 w.otsuka        1.24 if [ $1 -eq 1 ]; then
273 denise.eckstein 1.35    echo `date` > %PEGASUS_INSTALL_LOG 2>&1
274 denise.eckstein 1.32    %define PEGASUS_CONFIG_DIR /etc/opt/tog-pegasus
275                         %define PEGASUS_PEM_DIR /etc/opt/tog-pegasus
276                         %define PEGASUS_SSL_CERT_FILE server.pem
277                         %define PEGASUS_SSL_KEY_FILE file.pem
278                         %define PEGASUS_SSL_TRUSTSTORE client.pem
279                      
280                         # Create Symbolic Links for SDK Libraries
281                         #
282                         ln -sf libpegclient.so.1 /opt/tog-pegasus/lib/libpegclient.so
283                         ln -sf libpegcommon.so.1 /opt/tog-pegasus/lib/libpegcommon.so
284                         ln -sf libpegprovider.so.1 /opt/tog-pegasus/lib/libpegprovider.so
285                         ln -sf libDefaultProviderManager.so.1 /opt/tog-pegasus/lib/libDefaultProviderManager.so
286                         ln -sf libCIMxmlIndicationHandler.so.1 /opt/tog-pegasus/lib/libCIMxmlIndicationHandler.so
287                         ln -sf libCMPIProviderManager.so.1 /opt/tog-pegasus/lib/libCMPIProviderManager.so
288                      
289                         # Create Symbolic Links for Packaged Provider Libraries
290                         #
291                         ln -sf libComputerSystemProvider.so.1 /opt/tog-pegasus/providers/lib/libComputerSystemProvider.so
292                         ln -sf libOSProvider.so.1 /opt/tog-pegasus/providers/lib/libOSProvider.so
293                         ln -sf libProcessProvider.so.1 /opt/tog-pegasus/providers/lib/libProcessProvider.so
294                      
295 denise.eckstein 1.32 
296                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
297 denise.eckstein 1.74 #
298                      #           install   remove   upgrade  reinstall
299                      # %post        1        -         2         2
300                      #
301                         if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
302                             # Running Repository Upgrade utility
303                             %PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR \
304                                 %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG
305                             /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
306                                 %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
307                                 %PEGASUS_PREV_REPOSITORY_DIR_NAME
308                             rm -rf %PEGASUS_PREV_REPOSITORY_DIR
309 denise.eckstein 1.32    fi
310 denise.eckstein 1.74    if [ $1 -eq 1 ]; then
311                      %if %{AUTOSTART}
312                             /sbin/chkconfig --add tog-pegasus
313                      %endif
314                         :;
315                         elif [ $1 -gt 0 ]; then
316                             /sbin/service tog-pegasus condrestart
317                         :;
318 denise.eckstein 1.32    fi
319 denise.eckstein 1.74 #
320 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
321 w.otsuka        1.1  
322 w.otsuka        1.57 elif [ $1 -gt 1 ]; then
323 denise.eckstein 1.74    if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
324 w.otsuka        1.71      # Running Repository Upgrade utility
325                           %PEGASUS_SBIN_DIR/repupgrade 2>>%PEGASUS_INSTALL_LOG
326                         fi
327 denise.eckstein 1.74    /sbin/service tog-pegasus condrestart
328                         :;
329 w.otsuka        1.24 fi
330 denise.eckstein 1.74 
331 w.otsuka        1.1  %preun
332 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec
333                      #           install   remove   upgrade  reinstall
334                      #  preun       -        0         1         -
335 w.otsuka        1.24 if [ $1 -eq 0 ]; then
336 denise.eckstein 1.32    # Check if the cimserver is running
337 denise.eckstein 1.74    isRunning=`ps -el | grep cimserver |  grep -v "grep cimserver"`
338 denise.eckstein 1.32    if [ "$isRunning" ]; then
339 denise.eckstein 1.74       %PEGASUS_SBIN_DIR/cimserver -s
340                         fi 
341                         /sbin/chkconfig --del tog-pegasus;
342                         rm -f %PEGASUS_VARDATA_DIR/cimserver_current.conf;
343                         rm -f %PEGASUS_INSTALL_LOG;
344                         [ -d %PEGASUS_REPOSITORY_DIR ]  && rm -rf %PEGASUS_REPOSITORY_DIR;
345                         [ -d %PEGASUS_VARDATA_CACHE_DIR ]  && rm -rf %PEGASUS_VARDATA_CACHE_DIR;
346                         rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH;
347                         rm -f %PEGASUS_CIMSERVER_START_FILE;
348 w.otsuka        1.24 fi
349 denise.eckstein 1.74 #
350                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec
351 w.otsuka        1.1  
352 w.otsuka        1.69 %preun devel
353 denise.eckstein 1.44 make --directory /opt/tog-pegasus/samples -s clean
354                      
355 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
356 denise.eckstein 1.46 %preun test
357                      make --directory /opt/tog-pegasus/test -s unsetupTEST
358                      [ -d /var/opt/tog-pegasus/testrepository ] &&  rm -rf /var/opt/tog-pegasus/testrepository;
359                      
360 w.otsuka        1.56 %endif
361 w.otsuka        1.1  %postun
362 w.otsuka        1.24 if [ $1 -eq 0 ]; then
363 denise.eckstein 1.32    export LC_ALL=C
364 w.otsuka        1.1  fi
365 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec
366                      #
367                      #           install   remove   upgrade  reinstall
368                      #  postun      -        0         1         -
369                      if [ $1 -eq 0 ]; then
370                         /usr/sbin/userdel pegasus > /dev/null 2>&1 || :;
371                         /usr/sbin/groudel pegasus > /dev/null 2>&1 || :;
372                      fi;
373                      #
374                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec
375 w.otsuka        1.1  
376                      %files
377 denise.eckstein 1.74 %defattr(640,root,pegasus,750)
378                      %dir /opt/tog-pegasus
379                      %dir /opt/tog-pegasus/share
380                      %dir /opt/tog-pegasus/share/doc
381                      %dir /opt/tog-pegasus/share/man
382                      %dir /opt/tog-pegasus/share/man/man1
383                      %dir /opt/tog-pegasus/share/man/man8
384                      %dir /opt/tog-pegasus/lib
385                      %dir /opt/tog-pegasus/providers
386                      %dir /opt/tog-pegasus/providers/lib
387                      %dir /opt/tog-pegasus/sbin
388                      %dir /opt/tog-pegasus/bin
389                      %dir /opt/tog-pegasus/scripts
390                      %dir /opt/tog-pegasus/mof
391                      %dir /opt/tog-pegasus/mof/CIM29
392                      %dir /opt/tog-pegasus/mof/Pegasus
393                      %dir /var/opt/tog-pegasus
394                      %dir /var/opt/tog-pegasus/cache
395                      %dir /var/opt/tog-pegasus/log
396                      %dir /var/opt/tog-pegasus/cache/localauth
397                      %dir /var/run/tog-pegasus
398 denise.eckstein 1.74 %dir /etc/opt/tog-pegasus
399                      
400                      %dir %attr(1555,root,pegasus) /var/run/tog-pegasus/socket
401                      %dir %attr(1777,root,pegasus) /var/opt/tog-pegasus/cache/trace
402                      
403                      /var/opt/tog-pegasus/repository
404                      /opt/tog-pegasus/mof/CIM29/*
405                      /opt/tog-pegasus/mof/Pegasus/*
406                      
407                      %config %attr(750,root,pegasus) /etc/init.d/tog-pegasus
408                      %config(noreplace) /var/opt/tog-pegasus/cimserver_planned.conf
409                      %config(noreplace) /etc/opt/tog-pegasus/access.conf
410                      %config(noreplace) /etc/pam.d/wbem
411                      
412                      %ghost %config(noreplace) /etc/opt/tog-pegasus/ssl.cnf
413                      %ghost %config(noreplace) /etc/opt/tog-pegasus/client.pem
414                      %ghost %config(noreplace) /etc/opt/tog-pegasus/server.pem
415                      %ghost %config(noreplace) /etc/opt/tog-pegasus/file.pem
416                      %ghost /var/opt/tog-pegasus/log/install.log
417                      
418                      %attr(750,root,pegasus) /opt/tog-pegasus/sbin/*
419 denise.eckstein 1.74 %attr(755,root,pegasus) /opt/tog-pegasus/bin/*
420                      %attr(755,root,pegasus) /opt/tog-pegasus/lib/*.so.1
421                      %attr(755,root,pegasus) /opt/tog-pegasus/providers/lib/*.so.1
422                      %attr(750,root,pegasus) /opt/tog-pegasus/scripts/*
423                      /opt/tog-pegasus/share/man/man1/*
424                      /opt/tog-pegasus/share/man/man8/*
425                      
426                      %doc %attr(444,root,pegasus) /opt/tog-pegasus/license.txt
427                      %doc %attr(444,root,pegasus) /opt/tog-pegasus/share/doc/Admin_Guide_Release.pdf
428                      %doc %attr(444,root,pegasus) /opt/tog-pegasus/share/doc/PegasusSSLGuidelines.htm
429 denise.eckstein 1.32 /opt/tog-pegasus/lib/libpegclient.so
430                      /opt/tog-pegasus/lib/libpegcommon.so
431                      /opt/tog-pegasus/lib/libpegprovider.so
432                      /opt/tog-pegasus/lib/libDefaultProviderManager.so
433                      /opt/tog-pegasus/lib/libCIMxmlIndicationHandler.so
434                      /opt/tog-pegasus/lib/libCMPIProviderManager.so
435                      /opt/tog-pegasus/providers/lib/libComputerSystemProvider.so
436                      /opt/tog-pegasus/providers/lib/libOSProvider.so
437                      /opt/tog-pegasus/providers/lib/libProcessProvider.so
438 w.otsuka        1.1  
439 w.otsuka        1.69 %files devel
440 denise.eckstein 1.74 %defattr(640,root,pegasus,750)
441                      /opt/tog-pegasus/include
442                      /opt/tog-pegasus/samples
443                      /opt/tog-pegasus/share/doc/*
444                      /opt/tog-pegasus/html
445                      %attr(755,root,pegasus) /opt/tog-pegasus/providers/lib/*.so
446 w.otsuka        1.28 
447 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
448 w.otsuka        1.28 %files test
449 denise.eckstein 1.74 %defattr(-,root,pegasus,-)
450                      /opt/tog-pegasus/test
451                      /var/opt/tog-pegasus/testrepository
452 w.otsuka        1.56 %endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2