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