forked from xenserver/xen-api-libs-specs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxenopsd.spec
276 lines (219 loc) · 8.29 KB
/
xenopsd.spec
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
Name: xenopsd
Version: 0.12.0
Release: 1%{?dist}
Summary: Simple VM manager
License: LGPL
URL: https://github.com/xapi-project/xenopsd
Source0: https://github.com/xapi-project/xenopsd/archive/v%{version}/xenopsd-%{version}.tar.gz
Source1: xenopsd-xc-init
Source2: xenopsd-simulator-init
Source3: xenopsd-libvirt-init
Source4: xenopsd-xenlight-init
Source5: xenopsd-conf
Source6: xenopsd-network-conf
Source7: xenopsd-64-conf
BuildRequires: ocaml
BuildRequires: optcomp
BuildRequires: ocaml-findlib
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-rpc-devel
BuildRequires: ocaml-xcp-idl-devel
BuildRequires: ocaml-cmdliner-devel
BuildRequires: ocaml-cohttp-devel
BuildRequires: forkexecd-devel
BuildRequires: ocaml-oclock-devel
BuildRequires: ocaml-uuidm-devel
#BuildRequires: libvirt-devel
#BuildRequires: ocaml-libvirt-devel
BuildRequires: ocaml-qmp-devel
BuildRequires: ocaml-sexplib-devel
BuildRequires: xen-ocaml-devel
BuildRequires: ocaml-xenstore-clients-devel
BuildRequires: ocaml-xenstore-devel
BuildRequires: ocaml-xcp-inventory-devel
BuildRequires: xen-devel
BuildRequires: xen-libs-devel
BuildRequires: xen-dom0-libs-devel
BuildRequires: ocaml-uutf-devel
BuildRequires: ocaml-xcp-rrd-devel
BuildRequires: python-devel
Requires: message-switch
#Requires: redhat-lsb-core
Requires: xenops-cli
#Requires: vncterm
#Requires: linux-guest-loader
Requires: xen-dom0-tools
%description
Simple VM manager for the xapi toolstack.
#%package libvirt
#Summary: Xenopsd using libvirt
#Requires: %{name} = %{version}-%{release}
#Requires: libvirt
#%description libvirt
#Simple VM manager for Xen and KVM using libvirt.
%package xc
Summary: Xenopsd using xc
Requires: %{name} = %{version}-%{release}
Requires: forkexecd
#Requires: vncterm
Requires: xen-libs
%description xc
Simple VM manager for Xen using libxc.
%package simulator
Summary: Xenopsd simulator
Requires: %{name} = %{version}-%{release}
%description simulator
A synthetic VM manager for testing.
%package xenlight
Summary: Xenopsd using libxenlight
Group: Development/Other
Requires: %{name} = %{version}-%{release}
%description xenlight
Simple VM manager for Xen using libxenlight
%prep
%setup -q
cp %{SOURCE1} xenopsd-xc-init
cp %{SOURCE2} xenopsd-simulator-init
cp %{SOURCE3} xenopsd-libvirt-init
cp %{SOURCE4} xenopsd-xenlight-init
cp %{SOURCE5} xenopsd.conf
cp %{SOURCE6} xenopsd-network-conf
cp %{SOURCE7} xenopsd-64-conf
%build
./configure --libexecdir %{_libexecdir}/%{name}
make
%install
make install DESTDIR=%{buildroot} LIBEXECDIR=%{_libexecdir}/%{name} SBINDIR=%{_sbindir} MANDIR=%{_mandir}
gzip %{buildroot}%{_mandir}/man1/*.1
install -D -m 0755 xenopsd-xenlight-init %{buildroot}/%{_sysconfdir}/init.d/xenopsd-xenlight
install -m 0755 xenopsd-xc-init %{buildroot}/%{_sysconfdir}/init.d/xenopsd-xc
install -m 0755 xenopsd-simulator-init %{buildroot}/%{_sysconfdir}/init.d/xenopsd-simulator
mkdir -p %{buildroot}/etc/xapi
install -m 0644 xenopsd-64-conf %{buildroot}/etc/xenopsd.conf
install -m 0644 xenopsd-network-conf %{buildroot}/etc/xapi/network.conf
%files
%doc README.md LICENSE
%{_libexecdir}/%{name}/vif
%{_libexecdir}/%{name}/vif-real
%{_libexecdir}/%{name}/block
%{_libexecdir}/%{name}/tap
%{_libexecdir}/%{name}/qemu-dm-wrapper
%{_libexecdir}/%{name}/qemu-vif-script
%{_libexecdir}/%{name}/setup-vif-rules
%{_libexecdir}/%{name}/common.py
%{_libexecdir}/%{name}/common.pyo
%{_libexecdir}/%{name}/common.pyc
/etc/xenopsd.conf
/etc/xapi/network.conf
/etc/udev/rules.d/xen-backend.rules
#%files libvirt
#%{_sbindir}/xenopsd-libvirt
#%{_sysconfdir}/init.d/xenopsd-libvirt
#%post libvirt
#/sbin/chkconfig --add xenopsd-libvirt
#%preun libvirt
#if [ $1 -eq 0 ]; then
# /sbin/service xenopsd-libvirt stop > /dev/null 2>&1
# /sbin/chkconfig --del xenopsd-libvirt
#fi
%files xc
%{_sbindir}/xenopsd-xc
%{_sysconfdir}/init.d/xenopsd-xc
%{_mandir}/man1/xenopsd-xc.1.gz
%{_libexecdir}/%{name}/set-domain-uuid
%post xc
/sbin/chkconfig --add xenopsd-xc
%preun xc
if [ $1 -eq 0 ]; then
/sbin/service xenopsd-xc stop > /dev/null 2>&1
/sbin/chkconfig --del xenopsd-xc
fi
%files simulator
%{_sbindir}/xenopsd-simulator
%{_sysconfdir}/init.d/xenopsd-simulator
%{_mandir}/man1/xenopsd-simulator.1.gz
%post simulator
/sbin/chkconfig --add xenopsd-simulator
%preun simulator
if [ $1 -eq 0 ]; then
/sbin/service xenopsd-simulator stop > /dev/null 2>&1
/sbin/chkconfig --del xenopsd-simulator
fi
%files xenlight
%defattr(-,root,root)
%{_sbindir}/xenopsd-xenlight
%{_sysconfdir}/init.d/xenopsd-xenlight
%{_mandir}/man1/xenopsd-xenlight.1.gz
%post xenlight
#/sbin/chkconfig --add xenopsd-xenlight
%preun xenlight
if [ $1 -eq 0 ]; then
/sbin/service xenopsd-xenlight stop > /dev/null 2>&1
/sbin/chkconfig --del xenopsd-xenlight
fi
%changelog
* Thu Sep 24 2015 Jon Ludlam <[email protected]> - 0.12.0-1
- New upstream release, and an extra file
* Thu Apr 30 2015 Jon Ludlam <[email protected]> - UNRELEASED
- Revert some PCI passthrough patches
* Mon Sep 8 2014 David Scott <[email protected]> - 0.9.43-4
- Add a search-path to the xenopsd.conf
* Thu Sep 4 2014 Jon Ludlam <[email protected]> - 0.9.43-3
- Remove xen-missing-headers dependency
* Thu Sep 4 2014 Jon Ludlam <[email protected]> - 0.9.43-2
- Reinstate xenlight package in CentOS
* Sun Aug 24 2014 David Scott <[email protected]> - 0.9.43-1
- Update to 0.9.43 which supports OCaml 4.01.0
* Fri Aug 22 2014 David Scott <[email protected]> - 0.9.41-1
- Update to 0.9.41: now pygrub, eliloader, hvmloader and vncterm
are optional
* Fri Aug 22 2014 David Scott <[email protected]> - 0.9.39-5
- vncterm-wrapper: ensure the groups are added on startup.
* Fri Aug 22 2014 David Scott <[email protected]> - 0.9.39-4
- Add a vncterm-wrapper: needed to locate the qemu keymaps
* Thu Aug 21 2014 David Scott <[email protected]> - 0.9.39-2
- Include {vbd,vif}-xl in the package
* Wed Aug 20 2014 David Scott <[email protected]> - 0.9.39-2
- Package xenopsd-xenlight
* Wed Aug 20 2014 Jon Ludlam <[email protected]> - 0.9.39-1
- Update to 0.9.39 which compiles without warnings
* Tue Aug 19 2014 David Scott <[email protected]> - 0.9.38-1
- Update to 0.9.38 with better libxl support
* Sat Jun 21 2014 David Scott <[email protected]> - 0.9.37-1
- Depend on the ocaml-xen-lowlevel-libs-runtime package
- Don't include xenguest: this now comes from ocaml-xen-lowlevel-libs
* Fri Jun 6 2014 Jonathan Ludlam <[email protected]> - 0.9.37-1
- Update to 0.9.37
* Fri Jan 17 2014 Euan Harris <[email protected]> - 0.9.34-1
- Update to 0.9.34, restoring fixes from the 0.9.32 line which were
not merged to trunk before 0.9.33 was tagged
* Wed Dec 4 2013 Euan Harris <[email protected]> - 0.9.33-1
- Update to 0.9.33, with fixes for suspending and resuming HVM guests
* Mon Oct 28 2013 David Scott <[email protected]> - 0.9.32-1
- Update to 0.9.32, with udev fix (no more "task was asynchronously cancelled")
* Mon Oct 21 2013 David Scott <[email protected]>
- Update to 0.9.31
- move scripts back to libexecdir
* Sun Oct 20 2013 David Scott <[email protected]>
- give up on making libxl work, since it requires xen-4.4
- move scripts from libexecdir to libdir
* Fri Oct 18 2013 David Scott <[email protected]>
- update to 0.9.29
* Fri Oct 18 2013 David Scott <[email protected]>
- update to 0.9.28
* Wed Sep 25 2013 David Scott <[email protected]>
- modprobe blk{tap,back} in the xenopsd-xc init.d script since
we need these to make virtual disks work
- update to 0.9.27
* Tue Sep 24 2013 David Scott <[email protected]>
- Update to 0.9.26, which includes fixes for networking and libxl
* Fri Sep 20 2013 Euan Harris <[email protected]>
- Generate xenopsd.conf automatically
* Mon Sep 16 2013 Euan Harris <[email protected]>
- Update to 0.9.25, which includes linker paths required on Debian
* Tue Sep 10 2013 David Scott <[email protected]>
- Update to 0.9.24
* Fri Jun 21 2013 David Scott <[email protected]>
- Update to 0.9.5, which includes xenopsd-xenlight
* Thu May 30 2013 David Scott <[email protected]>
- Initial package