forked from xapi-project/xen-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xapi.spec.in
409 lines (345 loc) · 10.5 KB
/
xapi.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
# -*- rpm-spec -*-
Summary: xapi - xen toolstack for XCP
Name: xapi
Version: 0.2
Release: @RPM_RELEASE@
Group: System/Hypervisor
License: LGPL+linking exception
URL: http://www.xen.org
Source0: xapi-%{version}.tar.bz2
Source1: jquery-1.1.3.1.pack.js
Source2: jquery.treeview.zip
Patch0: xapi-version.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: pam-devel tetex-latex ocaml omake ocaml-findlib ocaml-xmlm ocaml-type-conv ocaml-xmlm-devel xen-devel zlib-devel
%description
XCP toolstack.
%package core
Summary: The xapi toolstack
Group: System/Hypervisor
%description core
This package contains the xapi toolstack.
%package xe
Summary: The xapi toolstack CLI
Group: System/Hypervisor
%description xe
The command-line interface for controlling XCP hosts.
%package tests
Summary: Toolstack test programs
Group: System/Hypervisor
%description tests
This package contains a series of simple regression tests.
%package squeezed
Summary: The memory ballooning daemon
Group: System/Hypervisor
%description squeezed
This package contains the Xen virtual firmware (hvmloader)
%package xenopsd
Summary: The xenops daemon
Group: System/Hypervisor
%description xenopsd
This package contains the xenops daemon.
%package v6d
Summary: The editions and features daemon
Group: System/Hypervisor
%description v6d
This package contains daemon that defines and controls XCP editions and
associated features
%package networkd
Summary: The networking daemon
Group: System/Hypervisor
%description networkd
This package contains a daemon that is able to configure network
interfaces and bridges
%package rrdd
Summary: The RRD daemon
Group: System/Hypervisor
%description rrdd
This package contains a daemon that continually collects performance metrics
from the host and its VMs, stores the data in host's memory, and occasionally
synchronises the data to host's local storage.
%package xenops
Summary: Low-level debugging tools
Group: System/Hypervisor
%description xenops
This package contains the xenops-based low-level debugging tools.
%package client-devel
Summary: xapi Development Headers and Libraries
Group: Development/Libraries
%description client-devel
This package contains the xapi development libraries and header files
for building addon tools.
%package datamodel-devel
Summary: xapi Datamodel headers and libraries
Group: Development/Libraries
%description datamodel-devel
This package contains the internal xapi datamodel as a library suitable
for writing additional code generators.
%package rrd-devel
Summary: rrd-client headers and libraries
Group: Development/Libraries
%description rrd-devel
This package contains rrd functions as a library suitable for writing tools
related to rrd. Needed for rrd2csv and rrdd-plugins.
%package xenstore-watch-devel
Summary: xenstore-watch headers and libraries
Group: Development/Libraries
%description xenstore-watch-devel
This package contains a library of functions for watching xenstore.
%prep
%setup -q
%patch0 -p0 -b xapi-version.patch
%build
COMPILE_JAVA=no %{__make}
COMPILE_JAVA=no %{__make} test
%install
rm -rf %{buildroot}
DESTDIR=$RPM_BUILD_ROOT %{__make} install
SITEDIR=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
for f in XenAPI XenAPIPlugin inventory; do
for e in py pyc pyo; do
echo $SITEDIR/$f.$e
done
done > core-files
for e in py pyc pyo; do
echo $SITEDIR/rrdd.$e
done > rrdd-files
ln -s /var/lib/xcp $RPM_BUILD_ROOT/var/xapi
%clean
rm -rf $RPM_BUILD_ROOT
%post core
[ ! -x /sbin/chkconfig ] || chkconfig --add xapi
[ ! -x /sbin/chkconfig ] || chkconfig --add xenservices
[ ! -x /sbin/chkconfig ] || chkconfig --add xapi-domains
[ ! -x /sbin/chkconfig ] || chkconfig --add perfmon
[ ! -x /sbin/chkconfig ] || chkconfig --add genptoken
%post networkd
[ ! -x /sbin/chkconfig ] || chkconfig --add xcp-networkd
%post rrdd
[ ! -x /sbin/chkconfig ] || chkconfig --add xcp-rrdd
%post squeezed
[ ! -x /sbin/chkconfig ] || chkconfig squeezed on
%post xenopsd
[ ! -x /sbin/chkconfig ] || chkconfig xenopsd on
%post v6d
[ ! -x /sbin/chkconfig ] || chkconfig --add v6d
%files core -f core-files
%defattr(-,root,root,-)
@OPTDIR@/bin/xapi
%config(noreplace) /etc/xapi.conf
/etc/logrotate.d/audit
/etc/logrotate.d/v6d
/etc/logrotate.d/xapi
/etc/pam.d/xapi
/etc/rc.d/init.d/management-interface
/etc/rc.d/init.d/perfmon
/etc/rc.d/init.d/xapi
/etc/rc.d/init.d/xapi-domains
@OPTDIR@/libexec/xapissl
/etc/rc.d/init.d/xenservices
/etc/rc.d/init.d/genptoken
%config(noreplace) /etc/sysconfig/perfmon
%config(noreplace) /etc/sysconfig/xapi
/etc/xapi.d/base-path
/etc/xapi.d/plugins/DRAC.py
/etc/xapi.d/plugins/DRAC.pyo
/etc/xapi.d/plugins/DRAC.pyc
/etc/xapi.d/plugins/echo
/etc/xapi.d/plugins/extauth-hook
/etc/xapi.d/plugins/extauth-hook-AD.py
/etc/xapi.d/plugins/extauth-hook-AD.pyo
/etc/xapi.d/plugins/extauth-hook-AD.pyc
/etc/xapi.d/plugins/iLO.py
/etc/xapi.d/plugins/iLO.pyo
/etc/xapi.d/plugins/iLO.pyc
/etc/xapi.d/plugins/iLOPowerON.xml
/etc/xapi.d/plugins/perfmon
/etc/xapi.d/plugins/power-on-host
/etc/xapi.d/plugins/wake-on-lan
/etc/xapi.d/plugins/wlan.py
/etc/xapi.d/plugins/wlan.pyo
/etc/xapi.d/plugins/wlan.pyc
/etc/xapi.d/plugins/iovirt
%config(noreplace) /etc/xensource/db.conf
%config(noreplace) /etc/xensource/db.conf.rio
/etc/xensource/master.d/01-example
/etc/xensource/master.d/03-mpathalert-daemon
%config(noreplace) /etc/xensource/pool.conf
@OPTDIR@/bin/fix_firewall.sh
@OPTDIR@/bin/list_domains
@OPTDIR@/bin/mpathalert
@OPTDIR@/bin/perfmon
@OPTDIR@/bin/static-vdis
@OPTDIR@/bin/xapi-autostart-vms
@OPTDIR@/bin/xapi-db-process
@OPTDIR@/bin/xapi-wait-init-complete
@OPTDIR@/bin/xe-backup-metadata
@OPTDIR@/bin/xe-edit-bootloader
@OPTDIR@/bin/xe-get-network-backend
@OPTDIR@/bin/xe-mount-iso-sr
@OPTDIR@/bin/xe-restore-metadata
@OPTDIR@/bin/xe-reset-networking
@OPTDIR@/bin/xe-scsi-dev-map
@OPTDIR@/bin/xe-set-iscsi-iqn
@OPTDIR@/bin/xe-toolstack-restart
@OPTDIR@/bin/xe-xentrace
@OPTDIR@/bin/xe-switch-network-backend
@OPTDIR@/bin/xe-enable-all-plugin-metrics
/etc/bash_completion.d/xe-switch-network-backend
@OPTDIR@/bin/xsh
/etc/xensource/bugtool/xapi.xml
/etc/xensource/bugtool/xapi/stuff.xml
@OPTDIR@/libexec/list_plugins
@OPTDIR@/libexec/sm_diagnostics
@OPTDIR@/libexec/thread_diagnostics
@OPTDIR@/libexec/InterfaceReconfigure.py
@OPTDIR@/libexec/InterfaceReconfigure.pyo
@OPTDIR@/libexec/InterfaceReconfigure.pyc
@OPTDIR@/libexec/InterfaceReconfigureBridge.py
@OPTDIR@/libexec/InterfaceReconfigureBridge.pyo
@OPTDIR@/libexec/InterfaceReconfigureBridge.pyc
@OPTDIR@/libexec/InterfaceReconfigureVswitch.py
@OPTDIR@/libexec/InterfaceReconfigureVswitch.pyo
@OPTDIR@/libexec/InterfaceReconfigureVswitch.pyc
@OPTDIR@/libexec/backup-metadata-cron
@OPTDIR@/libexec/backup-sr-metadata.py
@OPTDIR@/libexec/backup-sr-metadata.pyo
@OPTDIR@/libexec/backup-sr-metadata.pyc
@OPTDIR@/libexec/block_device_io
@OPTDIR@/libexec/cdrommon
@OPTDIR@/libexec/dumpcore
@OPTDIR@/libexec/fence
@OPTDIR@/libexec/fence.bin
@OPTDIR@/libexec/generate_ssl_cert
@OPTDIR@/libexec/host-backup
@OPTDIR@/libexec/host-bugreport-upload
@OPTDIR@/libexec/host-restore
@OPTDIR@/libexec/interface-reconfigure
@OPTDIR@/libexec/interface-visualise
@OPTDIR@/libexec/license-check.py
@OPTDIR@/libexec/license-check.pyo
@OPTDIR@/libexec/license-check.pyc
@OPTDIR@/libexec/link-vms-by-sr.py
@OPTDIR@/libexec/link-vms-by-sr.pyo
@OPTDIR@/libexec/link-vms-by-sr.pyc
@OPTDIR@/libexec/logs-download
@OPTDIR@/libexec/lw-force-domain-leave
@OPTDIR@/libexec/mail-alarm
@OPTDIR@/libexec/print-custom-templates
@OPTDIR@/libexec/probe-device-for-file
@OPTDIR@/libexec/genptoken
@OPTDIR@/libexec/qemu-dm-wrapper
@OPTDIR@/libexec/restore-sr-metadata.py
@OPTDIR@/libexec/restore-sr-metadata.pyo
@OPTDIR@/libexec/restore-sr-metadata.pyc
@OPTDIR@/libexec/set-hostname
@OPTDIR@/libexec/shell.py
@OPTDIR@/libexec/shell.pyo
@OPTDIR@/libexec/shell.pyc
@OPTDIR@/libexec/shutdown
@OPTDIR@/libexec/sparse_dd
%config(noreplace) /etc/sparse_dd.conf
@OPTDIR@/libexec/update-mh-info
@OPTDIR@/libexec/upload-wrapper
@OPTDIR@/libexec/vncterm-wrapper
@OPTDIR@/libexec/xapi-health-check
@OPTDIR@/libexec/xapi-rolling-upgrade
@OPTDIR@/libexec/xenguest
@OPTDIR@/libexec/xha-lc
@OPTDIR@/libexec/pci-info
@OPTDIR@/packages/post-install-scripts/debian-etch
@OPTDIR@/packages/post-install-scripts/debug
/var/lib/xcp/udhcpd.skel
@OPTDIR@/debug/rbac_static.csv
/etc/xapi.d/host-post-declare-dead/10resetvdis
/var/xapi
%files xe
%defattr(-,root,root,-)
@OPTDIR@/bin/xe
@OPTDIR@/debug/sm
/usr/bin/xe
/etc/bash_completion.d/xe
%files squeezed
%defattr(-,root,root,-)
@OPTDIR@/libexec/squeezed
/etc/rc.d/init.d/squeezed
%config(noreplace) /etc/squeezed.conf
%files xenopsd
%defattr(-,root,root,-)
@OPTDIR@/libexec/xenopsd
/etc/rc.d/init.d/xenopsd
%config(noreplace) /etc/xenopsd.conf
@OPTDIR@/bin/xn
/usr/bin/xn
/etc/xensource/bugtool/xenopsd.xml
/etc/xensource/bugtool/xenopsd/stuff.xml
@OPTDIR@/libexec/xn_diagnostics
@OPTDIR@/libexec/domain_sethandle
%files v6d
%defattr(-,root,root,-)
@OPTDIR@/libexec/v6d
/etc/rc.d/init.d/v6d
%files networkd
%defattr(-,root,root,-)
@OPTDIR@/libexec/xcp-networkd
/etc/rc.d/init.d/xcp-networkd
@OPTDIR@/libexec/networkd_db
%files rrdd -f rrdd-files
%defattr(-,root,root,-)
@OPTDIR@/libexec/xcp-rrdd
/etc/rc.d/init.d/xcp-rrdd
%config(noreplace) /etc/xcp-rrdd.conf
@OPTDIR@/libexec/rrdd-example.py
@OPTDIR@/libexec/rrdd-example.pyc
@OPTDIR@/libexec/rrdd-example.pyo
%files xenops
%defattr(-,root,root,-)
@OPTDIR@/debug/xenops
@OPTDIR@/debug/add_vbd
@OPTDIR@/debug/add_vif
@OPTDIR@/debug/build_domain
@OPTDIR@/debug/build_hvm
@OPTDIR@/debug/create_domain
@OPTDIR@/debug/debug_ha_query_liveset
@OPTDIR@/debug/destroy_domain
@OPTDIR@/debug/event_listen
@OPTDIR@/debug/graph
@OPTDIR@/debug/memory_breakdown
@OPTDIR@/debug/memory_summary
@OPTDIR@/debug/pause_domain
@OPTDIR@/debug/restore_domain
@OPTDIR@/debug/shutdown_domain
@OPTDIR@/debug/sm_stress
@OPTDIR@/debug/suspend_domain
@OPTDIR@/debug/unpause_domain
@OPTDIR@/debug/vncproxy
@OPTDIR@/debug/with-vdi
%files tests
%defattr(-,root,root,-)
/etc/xapi.d/plugins/lvhdrt-helper
/etc/xapi.d/plugins/lvhdrt-trash-vdi
/etc/xapi.d/plugins/multipathrt-helper
@OPTDIR@/debug/cli-rt-domu-shar.sh
@OPTDIR@/debug/cli_test
@OPTDIR@/debug/install-debian-pv-inside.sh
@OPTDIR@/debug/install-debian-pv.sh
@OPTDIR@/debug/lvhdrt
@OPTDIR@/debug/multipathrt
@OPTDIR@/debug/myfirstpatch.asc
@OPTDIR@/debug/perftest
@OPTDIR@/debug/quicktest
@OPTDIR@/debug/quicktestbin
/cli-rt/*
%files client-devel
%defattr(-,root,root,-)
/usr/lib/ocaml/xapi-client/*
%files datamodel-devel
%defattr(-,root,root,-)
/usr/lib/ocaml/xapi-datamodel/*
%files rrd-devel
%defattr(-,root,root,-)
/usr/lib/ocaml/rrd-client/*
%files xenstore-watch-devel
%defattr(-,root,root,-)
/usr/lib/ocaml/xenstore-watch/*
%changelog