~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to eucalyptus.spec

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
%if %is_centos
12
12
%define __dhcp    dhcp
13
13
%define __httpd   httpd
14
 
%define __libvirt euca-libvirt >= 1.5
 
14
%define __libvirt libvirt >= 0.6
15
15
%define __xen     xen
16
16
%define __curl    curl
17
17
%define __bridge  xenbr0
19
19
 
20
20
Summary:       Elastic Utility Computing Architecture
21
21
Name:          eucalyptus
22
 
Version:       1.6.0
 
22
Version:       1.6.1
23
23
Release:       1
24
 
License:       BSD
 
24
License:       GPLv3
25
25
Group:         Applications/System
26
26
%if %is_centos
27
 
BuildRequires: gcc, make, euca-libvirt >= 1.5, curl-devel, ant, ant-nodeps, java-sdk >= 1.6.0, euca-axis2c >= 1.5.0, euca-rampartc >= 1.2.0
28
 
Requires:      vconfig, aoetools, vblade, wget, rsync
 
27
BuildRequires: gcc, make, libvirt >= 0.6, curl-devel, ant, ant-nodeps, java-sdk >= 1.6.0, euca-axis2c >= 1.6.0, euca-rampartc >= 1.3.0
 
28
Requires:      vconfig, wget, rsync
29
29
%endif
30
30
%if %is_suse
31
 
BuildRequires: gcc, make, libcurl-devel, ant, ant-nodeps, java-sdk >= 1.6.0, euca-axis2c >= 1.5.0, euca-rampartc >= 1.2.0
32
 
Requires:      vlan, aoetools, vblade
 
31
BuildRequires: gcc, make, libcurl-devel, ant, ant-nodeps, java-sdk >= 1.6.0, euca-axis2c >= 1.6.0, euca-rampartc >= 1.3.0
 
32
Requires:      vlan
33
33
%endif
34
34
 
35
35
Conflicts:     eucalyptus-cloud < 1.6, eucalyptus-cc < 1.6, eucalyptus-nc < 1.6
49
49
 
50
50
%package common-java
51
51
Summary:      Elastic Utility Computing Architecture - ws java stack 
52
 
Requires:     eucalyptus >= 1.6, java-sdk >= 1.6.0, ant, ant-nodeps, lvm2
 
52
Requires:     eucalyptus >= 1.6, java-sdk >= 1.6.0, lvm2, groovy
53
53
Conflicts:    eucalyptus < 1.6
54
54
Group:        Applications/System
55
55
 
63
63
 
64
64
%package walrus
65
65
Summary:      Elastic Utility Computing Architecture - cloud controller
66
 
Requires:     eucalyptus-common-java >= 1.6, java-sdk >= 1.6.0, ant, ant-nodeps, lvm2
 
66
Requires:     eucalyptus-common-java >= 1.6, java-sdk >= 1.6.0, lvm2
67
67
Conflicts:    eucalyptus-walrus < 1.6
68
68
Group:        Applications/System
69
69
 
77
77
 
78
78
%package sc
79
79
Summary:      Elastic Utility Computing Architecture - walrus
80
 
Requires:     eucalyptus-common-java >= 1.6, java-sdk >= 1.6.0, ant, ant-nodeps, lvm2
 
80
Requires:     eucalyptus-common-java >= 1.6, java-sdk >= 1.6.0, lvm2, vblade
81
81
Conflicts:    eucalyptus-cloud < 1.6
82
82
Group:        Applications/System
83
83
 
91
91
 
92
92
%package cloud
93
93
Summary:      Elastic Utility Computing Architecture - cloud controller
94
 
Requires:     eucalyptus-common-java >= 1.6, java-sdk >= 1.6.0, ant, ant-nodeps, lvm2
 
94
Requires:     eucalyptus-common-java >= 1.6, java-sdk >= 1.6.0, lvm2
95
95
Conflicts:    eucalyptus-cloud < 1.6
96
96
Group:        Applications/System
97
97
 
105
105
 
106
106
%package cc
107
107
Summary:      Elastic Utility Computing Architecture - cluster controller
108
 
Requires:     eucalyptus >= 1.6, %{__httpd}, euca-axis2c >= 1.5.0, euca-rampartc >= 1.2.0, iptables, bridge-utils, eucalyptus-gl >= 1.5, %{__dhcp}
 
108
Requires:     eucalyptus >= 1.6, %{__httpd}, euca-axis2c >= 1.6.0, euca-rampartc >= 1.3.0, iptables, bridge-utils, eucalyptus-gl >= 1.6, %{__dhcp}, vtun
109
109
Conflicts:    eucalyptus < 1.6, eucalyptus-nc < 1.6
110
110
Group:        Applications/System
111
111
 
119
119
 
120
120
%package nc
121
121
Summary:      Elastic Utility Computing Architecture - node controller
122
 
Requires:     eucalyptus >= 1.6, %{__httpd}, euca-axis2c >= 1.5.0, euca-rampartc >= 1.2.0, bridge-utils, eucalyptus-gl >= 1.5, %{__libvirt}, %{__curl}, %{__xen}
 
122
Requires:     eucalyptus >= 1.6, %{__httpd}, euca-axis2c >= 1.6.0, euca-rampartc >= 1.3.0, bridge-utils, eucalyptus-gl >= 1.6, %{__libvirt}, %{__curl}, %{__xen}
123
123
Conflicts:    eucalyptus < 1.6, eucalyptus-cc < 1.6
124
124
Group:        Applications/System
125
125
 
133
133
 
134
134
%package gl
135
135
Summary:      Elastic Utility Computing Architecture - log service
136
 
Requires:     eucalyptus >= 1.6, %{__httpd}, euca-axis2c >= 1.5.0, euca-rampartc >= 1.2.0
 
136
Requires:     eucalyptus >= 1.6, %{__httpd}, euca-axis2c >= 1.6.0, euca-rampartc >= 1.3.0
137
137
Conflicts:    eucalyptus < 1.6
138
138
Group:        Applications/System
139
139
 
146
146
This package contains the internal log service of eucalyptus.
147
147
 
148
148
%prep
149
 
%setup -n eucalyptus
 
149
%setup -n eucalyptus-%{version}
150
150
 
151
151
%build
152
 
# let's be sure we have the right configuration file
153
 
if [ -f tools/eucalyptus.conf.rpmbased ];
154
 
then
155
 
        cp -f tools/eucalyptus.conf.rpmbased tools/eucalyptus.conf
156
 
fi
157
 
%if %is_suse
158
152
./configure --with-axis2=/opt/packages/axis2-1.4 --with-axis2c=/opt/euca-axis2c --enable-debug --prefix=/
159
 
%endif
160
 
%if %is_centos
161
 
./configure --with-libvirt=/opt/euca-libvirt --with-axis2=/opt/packages/axis2-1.4 --with-axis2c=/opt/euca-axis2c --enable-debug --prefix=/
162
 
%endif
163
153
cd clc
164
154
make deps
165
155
cd ..
166
 
make
 
156
make 2> err.log > out.log
167
157
 
168
158
%install
169
159
make install
170
 
ls /usr/share/eucalyptus/*jar|grep -v eucalyptus-walrus|grep -v eucalyptus-storagecontroller|grep -v eucalyptus-interface > jar_list
 
160
ls /usr/share/eucalyptus/*jar > jar_list
171
161
 
172
162
%clean
173
 
rm -rf /etc/eucalyptus /usr/lib/eucalyptus /usr/share/eucalyptus
174
 
rm -rf /var/lib/eucalyptus /var/run/eucalyptus /var/log/eucalyptus
175
 
rm -rf /usr/sbin/euca_* /usr/sbin/eucalytpus-cloud $RPM_BUILD_DIR/eucalyptus
176
 
rm -f /etc/init.d/eucalyptus-cloud /etc/init.d/eucalyptus-nc
177
 
rm -rf /etc/init.d/eucalyptus-cc /etc/init.d/eucalyptus-sc
178
 
rm -rf /etc/init.d/eucalyptus-walrus
 
163
make uninstall
 
164
rm -rf $RPM_BUILD_DIR/eucalyptus-%{version}
 
165
# most of the files are taken care of by uninstall, but not the
 
166
# directories
 
167
rm -rf /var/lib/eucalyptus
 
168
rm -rf /var/run/eucalyptus
 
169
rm -rf /usr/lib/eucalyptus
 
170
rm -rf /usr/share/eucalyptus
 
171
rm -rf /etc/eucalyptus
 
172
rm -rf /usr/share/doc/eucalyptus-%{version}
179
173
 
180
174
%files
181
175
%doc LICENSE INSTALL README CHANGELOG
186
180
/usr/share/eucalyptus/add_key.pl
187
181
/usr/share/eucalyptus/euca_ipt
188
182
/usr/share/eucalyptus/populate_arp.pl
 
183
/usr/share/eucalyptus/euca_upgrade
189
184
/usr/lib/eucalyptus/euca_rootwrap
 
185
/usr/lib/eucalyptus/euca_mountwrap
190
186
/usr/sbin/euca_conf
191
187
/usr/sbin/euca_sync_key
192
188
/usr/sbin/euca_killall
194
190
/etc/eucalyptus/eucalyptus-version
195
191
 
196
192
%files common-java -f jar_list
 
193
/etc/init.d/eucalyptus-cloud
197
194
/etc/eucalyptus/cloud.d
198
 
/etc/eucalyptus/cloud.xml
199
195
/var/lib/eucalyptus/db
200
196
/var/lib/eucalyptus/modules
201
197
/var/lib/eucalyptus/webapps
202
 
/usr/lib/eucalyptus/libfsstorage.so
203
198
/usr/lib/eucalyptus/liblvm2control.so
204
199
/usr/sbin/eucalyptus-cloud
205
200
 
206
201
%files cloud
207
 
/etc/init.d/eucalyptus-cloud
208
 
/usr/share/eucalyptus/eucalyptus-interface-%{version}.jar
209
202
 
210
203
%files walrus
211
 
/etc/init.d/eucalyptus-walrus
212
 
/usr/share/eucalyptus/eucalyptus-walrus-%{version}.jar
213
204
 
214
205
%files sc
215
 
/etc/init.d/eucalyptus-sc
216
 
/usr/share/eucalyptus/eucalyptus-sc-%{version}.jar
217
206
 
218
207
%files cc
219
208
/opt/euca-axis2c/services/EucalyptusCC
221
210
/etc/eucalyptus/vtunall.conf.template
222
211
 
223
212
%files nc
224
 
/usr/lib/eucalyptus/euca_mountwrap
225
213
/usr/share/eucalyptus/gen_libvirt_xml
226
214
/usr/share/eucalyptus/gen_kvm_libvirt_xml
227
215
/usr/share/eucalyptus/partition2disk
236
224
/opt/euca-axis2c/services/EucalyptusGL
237
225
 
238
226
%pre
239
 
if [ -x /etc/init.d/eucalyptus ]; 
240
 
then
241
 
        # stop the old services
242
 
        /etc/init.d/eucalyptus stop || true
243
 
        chkconfig --del eucalyptus || true
244
 
fi
245
227
if [ "$1" = "2" ]; 
246
228
then
247
 
        cd /opt/eucalyptus
248
 
 
249
 
        # save a copy of the old conf file
250
 
        cp -f etc/eucalyptus/eucalyptus.conf etc/eucalyptus/eucalyptus.conf.preupgrade
251
 
 
252
 
        # let's check if we have already the db in the right place, then
253
 
        # it's an upgrade from >= 1.5.x and no special case
254
 
        if [ ! -e etc/eucalyptus/eucalyptus-version ];
255
 
        then
256
 
 
257
 
                # we upgrade only from 1.4
258
 
                if [ ! -e usr/share/eucalyptus/euca_ipt ];
259
 
                then
260
 
                        echo "Cannot upgrade from version earlier than 1.4"
261
 
                        exit 2
262
 
                fi
263
 
 
264
 
                # let's try to save the old configuration
265
 
                if [ -e /root/eucalyptus-pre-%{version}-rollback.tar ];
266
 
                then
267
 
                        mv -f /root/eucalyptus-pre-%{version}-rollback.tar /root/eucalyptus-pre-%{version}-rollback.tar.old
268
 
                fi
269
 
 
270
 
                # let's save database and keys
271
 
                rm -f var/eucalyptus/db/eucalyptus.lck
272
 
                tar cf /root/eucalyptus-pre-%{version}-rollback.tar var/eucalyptus/db var/eucalyptus/keys/*.p* 2> /dev/null || true
 
229
        # let's see where we installed
 
230
        cd /
 
231
        [ -e /opt/eucalyptus/etc/eucalyptus/eucalyptus-version ] && cd /opt/eucalyptus
 
232
 
 
233
        # stop all old services
 
234
        if [ -x etc/init.d/eucalyptus-cloud ];
 
235
        then
 
236
                 etc/init.d/eucalyptus-cloud stop
 
237
        fi
 
238
        if [ -x etc/init.d/eucalyptus-cc ]; 
 
239
        then
 
240
                 etc/init.d/eucalyptus-cc stop
 
241
        fi
 
242
        if [ -x etc/init.d/eucalyptus-nc ]; 
 
243
        then
 
244
                 etc/init.d/eucalyptus-nc stop
273
245
        fi
274
246
fi
275
247
 
284
256
        adduser -M eucalyptus 
285
257
%endif
286
258
fi
287
 
# let's get the default bridge 
288
 
/usr/sbin/euca_conf -bridge %{__bridge} 
289
259
 
290
 
# upgrade?
 
260
if [ "$1" = "1" ]; 
 
261
then
 
262
        # let's configure eucalyptus
 
263
        /usr/sbin/euca_conf -d / --instances /usr/local/eucalyptus/ -hypervisor xen -bridge %{__bridge}
 
264
fi
291
265
if [ "$1" = "2" ];
292
266
then
293
 
        cd /opt/eucalyptus
294
 
        
295
 
        # eucalyptus.conf was marked noreplace, so the new one could be named
296
 
        # *.rpmnew. Let's move it over (we did take a copy anyway)
297
 
        if [ -e etc/eucalyptus/eucalyptus.conf.rpmnew -a etc/eucalyptus/eucalyptus.conf.rpmnew -nt etc/eucalyptus/eucalyptus.conf ];
298
 
        then
299
 
                cp -f /opt/eucalyptus/etc/eucalyptus/eucalyptus.conf.rpmnew /opt/eucalyptus/etc/eucalyptus/eucalyptus.conf
300
 
        fi
301
 
 
302
 
        # if we have an old config file we try to upgrade
303
 
        if [ -e etc/eucalyptus/eucalyptus.conf.preupgrade ];
304
 
        then
305
 
                usr/sbin/euca_conf -upgrade-conf /opt/eucalyptus/etc/eucalyptus/eucalyptus.conf.preupgrade 
306
 
        fi
307
 
 
308
 
        # and now let's move the keys into the new place
309
 
        if [ -e var/eucalyptus/keys/cloud-cert.pem ];
310
 
        then
311
 
                mv -f var/eucalyptus/keys/*.p* var/lib/eucalyptus/keys
312
 
        fi
 
267
        if [ -e /opt/eucalyptus/etc/eucalyptus/eucalyptus.conf ]; 
 
268
        then
 
269
                cp --preserve -f /opt/eucalyptus/etc/eucalyptus/eucalyptus.conf /etc/eucalyptus/eucalyptus.conf.old 
 
270
        fi
 
271
        /usr/share/eucalyptus/euca_upgrade --old /opt/eucalyptus --new / --conf
313
272
fi
 
273
 
314
274
# final setup and set the new user
315
 
/usr/sbin/euca_conf -d / -setup -user eucalyptus
 
275
/usr/sbin/euca_conf -setup -user eucalyptus
316
276
 
317
277
%post common-java
318
 
if [ "$1" = "2" ]; 
319
 
then
320
 
        cd /opt/eucalyptus
321
 
 
322
 
        # if upgrading from version 1.5.x nothing to do
323
 
        if [ ! -e var/lib/eucalyptus/db/eucalyptus.script ];
324
 
        then
325
 
                if [ -d var/eucalyptus/db ];
326
 
                then
327
 
                        mkdir -p var/lib/eucalyptus/db
328
 
                        cp -ar var/eucalyptus/db var/lib/eucalyptus
329
 
                fi
330
 
        fi
331
 
fi
332
278
chkconfig --add eucalyptus-cloud
333
279
 
334
280
%post cloud
335
 
chkconfig --add eucalyptus-cloud
336
 
/etc/init.d/eucalyptus-cloud stop > /dev/null 2> /dev/null
 
281
/usr/sbin/euca_conf --enable cloud
 
282
%if %is_centos
 
283
if [ -e /etc/sysconfig/system-config-securitylevel ];
 
284
then
 
285
        if ! grep 8773:tcp /etc/sysconfig/system-config-securitylevel > /dev/null ; 
 
286
        then
 
287
                echo "--port=8773:tcp" >> /etc/sysconfig/system-config-securitylevel
 
288
                echo "--port=8443:tcp" >> /etc/sysconfig/system-config-securitylevel
 
289
        fi
 
290
fi
 
291
%endif
 
292
# upgrade from 1.5
 
293
if [ "$1" = "2" ];
 
294
then
 
295
        cd /
 
296
        [ -e /opt/eucalyptus/etc/eucalyptus/eucalyptus-version ] && cd /opt/eucalyptus
 
297
        if [ -e var/lib/eucalyptus/db/eucalyptus_volumes.properties ];
 
298
        then
 
299
                # if groovy was installed on the same shell the
 
300
                # environment can be wrong: we need to souce groovy env
 
301
                if [ -e /etc/profile.d/groovy.sh ];
 
302
                then
 
303
                        . /etc/profile.d/groovy.sh
 
304
                fi
 
305
                /usr/share/eucalyptus/euca_upgrade --old /opt/eucalyptus --new / --db
 
306
        fi
 
307
fi
337
308
 
338
309
%post walrus
339
 
chkconfig --add eucalyptus-walrus
340
 
/etc/init.d/eucalyptus-walrus stop > /dev/null 2> /dev/null
 
310
/usr/sbin/euca_conf --enable walrus
341
311
 
342
312
%post sc
343
 
chkconfig --add eucalyptus-sc
344
 
/etc/init.d/eucalyptus-sc stop > /dev/null 2> /dev/null
 
313
/usr/sbin/euca_conf --enable sc
345
314
 
346
315
%post cc
347
316
chkconfig --add eucalyptus-cc
 
317
%if %is_centos
 
318
if [ -e /etc/sysconfig/system-config-securitylevel ];
 
319
then
 
320
        if ! grep 8774:tcp /etc/sysconfig/system-config-securitylevel > /dev/null ; 
 
321
        then
 
322
                echo "--port=8774:tcp" >> /etc/sysconfig/system-config-securitylevel
 
323
        fi
 
324
fi
 
325
%endif
 
326
if [ "$1" = "2" ];
 
327
then
 
328
        if [ -e /opt/eucalyptus/var/lib/eucalyptus/keys/cluster-pk.pem ]; 
 
329
        then
 
330
                if [ ! -e /var/lib/eucalyptus/keys/cluster-pk.pem ]; 
 
331
                then
 
332
                        cp --preserve /opt/eucalyptus/var/lib/eucalyptus/keys/cluster*.pem /var/lib/eucalyptus/keys
 
333
                        cp --preserve /opt/eucalyptus/var/lib/eucalyptus/keys/node*.pem /var/lib/eucalyptus/keys
 
334
                fi
 
335
        fi
 
336
fi
348
337
 
349
338
%post nc
350
339
chkconfig --add eucalyptus-nc
 
340
%if %is_centos
 
341
if [ -e /etc/sysconfig/system-config-securitylevel ];
 
342
then
 
343
        if ! grep 8775:tcp /etc/sysconfig/system-config-securitylevel > /dev/null ; 
 
344
        then
 
345
                echo "--port=8775:tcp" >> /etc/sysconfig/system-config-securitylevel
 
346
        fi
 
347
fi
 
348
%endif
 
349
%if %is_suse
 
350
if [ -e /etc/PolicyKit/PolicyKit.conf ]; 
 
351
then
 
352
        if ! grep eucalyptus /etc/PolicyKit/PolicyKit.conf > /dev/null ;
 
353
        then
 
354
                sed -i '/<config version/ a <match action="org.libvirt.unix.manage">\n   <match user="eucalyptus">\n      <return result="yes"/>\n   </match>\n</match>' /etc/PolicyKit/PolicyKit.conf
 
355
        fi
 
356
fi
 
357
%endif
 
358
if [ "$1" = "2" ];
 
359
then
 
360
        if [ -e /opt/eucalyptus/var/lib/eucalyptus/keys/node-pk.pem ]; 
 
361
        then
 
362
                if [ ! -e /var/lib/eucalyptus/keys/node-pk.pem ]; 
 
363
                then
 
364
                        cp --preserve /opt/eucalyptus/var/lib/eucalyptus/keys/cluster-cert.pem /var/lib/eucalyptus/keys
 
365
                        cp --preserve /opt/eucalyptus/var/lib/eucalyptus/keys/node*.pem /var/lib/eucalyptus/keys
 
366
                fi
 
367
        fi
 
368
fi
 
369
 
351
370
 
352
371
%postun
353
372
# in case of removal let's try to clean up the best we can
357
376
        rm -rf /etc/eucalyptus/http*
358
377
fi
359
378
 
360
 
%postun common-java
361
 
if [ "$1" = "0" ];
362
 
then
363
 
        rm -f /usr/share/eucalyptus/*.jar.disabled
364
 
fi
365
 
 
366
379
%preun cloud
367
 
if [ -x /usr/sbin/euca_conf ];
 
380
if [ "$1" = "0" ];
368
381
then
369
 
        if [ -x /etc/init.d/eucalyptus-cloud ]; 
 
382
%if %is_centos
 
383
        if [ -e /etc/sysconfig/system-config-securitylevel ];
370
384
        then
371
 
                /etc/init.d/eucalyptus-cloud stop || /bin/true
372
 
        fi
373
 
fi
374
 
if [ "$1" = "0" ];
375
 
then
376
 
        chkconfig --del eucalyptus-cloud || true
377
 
fi
 
385
                sed -i '/^--port=8773/ d' /etc/sysconfig/system-config-securitylevel
 
386
                sed -i '/^--port=8443/ d' /etc/sysconfig/system-config-securitylevel
 
387
        fi
 
388
%endif
 
389
        [ -x /usr/sbin/euca_conf ] && /usr/sbin/euca_conf --disable cloud
 
390
        if [ -e /etc/init.d/eucalyptus-cloud ];
 
391
        then 
 
392
                /etc/init.d/eucalyptus-cloud restart || true
 
393
        fi
 
394
fi
 
395
 
378
396
 
379
397
%preun walrus
380
 
if [ -x /usr/sbin/euca_conf ];
 
398
if [ "$1" = "0" ];
381
399
then
382
 
        if [ -x /etc/init.d/eucalyptus-walrus ]; 
383
 
        then
384
 
                /etc/init.d/eucalyptus-walrus stop || /bin/true
 
400
        [ -x /usr/sbin/euca_conf ] && /usr/sbin/euca_conf --disable walrus
 
401
        if [ -e /etc/init.d/eucalyptus-cloud ];
 
402
        then 
 
403
                /etc/init.d/eucalyptus-cloud restart || true
385
404
        fi
386
405
fi
387
 
if [ "$1" = "0" ];
388
 
then
389
 
        chkconfig --del eucalyptus-walrus || true
390
 
fi
391
406
 
392
407
%preun sc
393
 
if [ -x /usr/sbin/euca_conf ];
 
408
if [ "$1" = "0" ];
394
409
then
395
 
        if [ -x /etc/init.d/eucalyptus-sc ]; 
396
 
        then
397
 
                /etc/init.d/eucalyptus-sc stop || /bin/true
 
410
        [ -x /usr/sbin/euca_conf ] && /usr/sbin/euca_conf --disable sc
 
411
        if [ -e /etc/init.d/eucalyptus-cloud ];
 
412
        then 
 
413
                /etc/init.d/eucalyptus-cloud restart || true
398
414
        fi
399
415
fi
 
416
 
 
417
%preun common-java
400
418
if [ "$1" = "0" ];
401
419
then
402
 
        chkconfig --del eucalyptus-sc || true
 
420
        /etc/init.d/eucalyptus-cloud stop
 
421
        chkconfig --del eucalyptus-cloud
 
422
        rm -f /var/lib/eucalyptus/services
403
423
fi
404
424
 
405
425
%preun cc
406
 
if [ -x /usr/sbin/euca_conf ];
 
426
if [ "$1" = "0" ];
407
427
then
408
 
        if [ -x /etc/init.d/eucalyptus-cc ]; 
 
428
        /etc/init.d/eucalyptus-cc stop
 
429
        chkconfig --del eucalyptus-cc
 
430
%if %is_centos
 
431
        if [ -e /etc/sysconfig/system-config-securitylevel ];
409
432
        then
410
 
                /etc/init.d/eucalyptus-cc stop || /bin/true
 
433
                sed -i '/^--port=8774/ d' /etc/sysconfig/system-config-securitylevel
411
434
        fi
412
 
fi
413
 
if [ "$1" = "0" ];
414
 
then
415
 
        chkconfig --del eucalyptus-cc || true
 
435
%endif
416
436
fi
417
437
 
418
438
%preun nc
419
 
if [ -x /usr/sbin/euca_conf ];
 
439
if [ "$1" = "0" ];
420
440
then
421
 
        if [ -x /etc/init.d/eucalyptus-nc ]; 
 
441
        /etc/init.d/eucalyptus-nc stop
 
442
        chkconfig --del eucalyptus-nc
 
443
%if %is_centos
 
444
        if [ -e /etc/sysconfig/system-config-securitylevel ];
422
445
        then
423
 
                /etc/init.d/eucalyptus-nc stop || /bin/true
 
446
                sed -i '/^--port=8775/ d' /etc/sysconfig/system-config-securitylevel
424
447
        fi
425
 
fi
426
 
if [ "$1" = "0" ];
427
 
then
428
 
        chkconfig --del eucalyptus-nc || true
 
448
%endif
429
449
fi
430
450
 
431
451
%changelog gl
 
452
*Thu Nov 5 2009 Eucalyptus Systems (support@open.eucalyptus.com)
 
453
- New version (1.6.1)
 
454
- install in / instead of /opt/eucalyptus
 
455
 
432
456
*Mon Jun 15 2009 Eucalyptus Systems (support@open.eucalyptus.com)
433
457
- New version (1.5.2)
434
458
 
439
463
- Added new service
440
464
 
441
465
%changelog cloud
 
466
*Thu Nov 5 2009 Eucalyptus Systems (support@open.eucalyptus.com)
 
467
- New version (1.6.1)
 
468
- install in / instead of /opt/eucalyptus
 
469
 
442
470
*Mon Jun 15 2009 eucalyptus systems (support@open.eucalyptus.com)
443
471
- New version (1.5.2)
444
472
 
480
508
- Fix the instance ID naming collision.
481
509
 
482
510
%changelog cc
 
511
*Thu Nov 5 2009 Eucalyptus Systems (support@open.eucalyptus.com)
 
512
- New version (1.6.1)
 
513
- install in / instead of /opt/eucalyptus
 
514
 
483
515
*Mon Jun 15 2009 eucalyptus systems (support@open.eucalyptus.com)
484
516
- New version (1.5.2)
485
517
 
497
529
  this module.
498
530
 
499
531
%changelog nc
 
532
*Thu Nov 5 2009 Eucalyptus Systems (support@open.eucalyptus.com)
 
533
- New version (1.6.1)
 
534
- install in / instead of /opt/eucalyptus
 
535
 
500
536
*Mon Jun 15 2009 eucalyptus systems (support@open.eucalyptus.com)
501
537
- New version (1.5.2)
502
538
 
523
559
- More robust checking for running instances.
524
560
 
525
561
%changelog
 
562
*Thu Nov 5 2009 Eucalyptus Systems (support@open.eucalyptus.com)
 
563
- New version (1.6.1)
 
564
- install in / instead of /opt/eucalyptus
 
565
 
526
566
*Mon Jun 15 2009 eucalyptus systems (support@open.eucalyptus.com)
527
567
- New version (1.5.2)
528
568