turn off pcucontrol
[build.git] / lxc.mk
1 #
2 # declare the packages to be built and their dependencies
3 # initial version from Mark Huang
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
6 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
7 #
8 # see doc in Makefile
9 #
10
11 ### the madwifi drivers ship with fedora16's kernel rpm
12
13 #
14 # lxc-userspace: scripts for entering containers
15 #
16 lxc-userspace-MODULES := lxc-userspace
17 lxc-userspace-SPEC := lxc-userspace.spec
18 ALL += lxc-userspace
19 IN_NODEIMAGE += lxc-userspace
20
21 #
22 # transforward: root context module for transparent port forwarding
23 #
24 # with 4.19, the jprobe api has gone entirely
25 # https://github.com/torvalds/linux/commit/4de58696de076d9bd2745d1cbe0930635c3f5ac9
26 #
27 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29 f31 f33)"
28 #
29 transforward-MODULES := transforward
30 transforward-SPEC := transforward.spec
31 ALL += transforward
32 IN_NODEIMAGE += transforward
33 endif
34
35 #
36 # procprotect: root context module for protecting against weaknesses in /proc
37 # has gone since f20
38 #
39
40 #
41 # ipfw: root context module, and slice companion
42 # has gone since f21
43 #
44
45 #
46 # comgt - a companion to umts tools
47 #
48 comgt-MODULES := comgt
49 comgt-SPEC := comgt.spec
50 IN_NODEIMAGE += comgt
51 ALL += comgt
52
53 #
54 # umts: root context stuff
55 #
56 umts-backend-MODULES := planetlab-umts-tools
57 umts-backend-SPEC := backend.spec
58 IN_NODEIMAGE += umts-backend
59 ALL += umts-backend
60
61 #
62 # umts: slice tools
63 #
64 umts-frontend-MODULES := planetlab-umts-tools
65 umts-frontend-SPEC := frontend.spec
66 IN_SLICEIMAGE += umts-frontend
67 ALL += umts-frontend
68
69 #
70 # NodeUpdate
71 #
72 nodeupdate-MODULES := nodeupdate
73 nodeupdate-SPEC := NodeUpdate.spec
74 ALL += nodeupdate
75 IN_NODEIMAGE += nodeupdate
76
77 #
78 # ipod
79 #
80 ipod-MODULES := PingOfDeath
81 ipod-SPEC := ipod.spec
82 ALL += ipod
83 IN_NODEIMAGE += ipod
84
85 #
86 # plnode-utils
87 #
88 plnode-utils-MODULES := plnode-utils
89 plnode-utils-SPEC := plnode-utils-lxc.spec
90 ALL += plnode-utils
91 IN_NODEIMAGE += plnode-utils
92
93 #
94 # nodemanager
95 #
96 nodemanager-MODULES := nodemanager
97 nodemanager-SPEC := nodemanager.spec
98 ALL += nodemanager
99 IN_NODEIMAGE += nodemanager
100
101 #
102 # pl_sshd
103 #
104 sshd-MODULES := pl_sshd
105 sshd-SPEC := pl_sshd.spec
106 ALL += sshd
107 IN_NODEIMAGE += sshd
108
109 #
110 # codemux: Port 80 demux
111 #
112 codemux-MODULES := codemux
113 codemux-SPEC   := codemux.spec
114 ALL += codemux
115 IN_NODEIMAGE += codemux
116
117 #
118 # fprobe-ulog
119 # has gone since f20
120 #
121
122 #
123 # our own brew of libvirt
124 # is no longer needed since f22
125 #
126
127 #
128 # pf2slice
129 #
130 pf2slice-MODULES := pf2slice
131 pf2slice-SPEC := pf2slice.spec
132 ALL += pf2slice
133
134 #
135 # vsys
136 #
137 # dropped in f33:
138 #ocamlopt  -c -o inotify.cmx inotify.ml
139 #File "inotify.ml", line 95, characters 27-30:
140 #95 |    let toread = Unix.read fd buf 0 toread in
141 #                                ^^^
142 #Error: This expression has type string but an expression was expected of type bytes
143
144 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f33)"
145 vsys-MODULES := vsys
146 vsys-SPEC := vsys.spec
147 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
148 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
149 IN_NODEIMAGE += vsys
150 ALL += vsys
151 endif
152
153 #
154 # vsyssh : installed in slivers
155 #
156 vsyssh-MODULES := vsys
157 vsyssh-SPEC := vsyssh.spec
158 IN_SLICEIMAGE += vsyssh
159 ALL += vsyssh
160
161 #
162 # vsys-scripts
163 #
164 vsys-scripts-MODULES := vsys-scripts
165 vsys-scripts-SPEC := root-context/vsys-scripts.spec
166 IN_NODEIMAGE += vsys-scripts
167 ALL += vsys-scripts
168
169 vsys-wrapper-MODULES := vsys-scripts
170 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
171 IN_SLICEIMAGE += vsys-wrapper
172 ALL += vsys-wrapper
173
174 #
175 # bind_public
176 #
177 bind_public-MODULES := bind_public
178 bind_public-SPEC := bind_public.spec
179 IN_SLICEIMAGE += bind_public
180 ALL += bind_public
181
182 # in fedora 29, this triggers nasty-looking compile messages
183 # not trying too hard, we're mostly after the server-side of f29 and above
184 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29 f31 f33)"
185 #
186 # sliver-openvswitch
187 #
188 sliver-openvswitch-MODULES := sliver-openvswitch
189 sliver-openvswitch-SPEC := sliver-openvswitch.spec
190 IN_SLICEIMAGE += sliver-openvswitch
191 ALL += sliver-openvswitch
192 endif
193
194 #
195 # plcapi
196 #
197 plcapi-MODULES := plcapi
198 plcapi-SPEC := plcapi.spec
199 ALL += plcapi
200 IN_MYPLC += plcapi
201
202 #
203 # drupal
204 #
205 drupal-MODULES := drupal
206 drupal-SPEC := drupal.spec
207 drupal-BUILD-FROM-SRPM := yes
208 ALL += drupal
209 IN_MYPLC += drupal
210
211 #
212 # use the plewww module instead
213 #
214 plewww-MODULES := plewww
215 plewww-SPEC := plewww.spec
216 ALL += plewww
217 IN_MYPLC += plewww
218
219 #
220 # www-register-wizard
221 #
222 www-register-wizard-MODULES := www-register-wizard
223 www-register-wizard-SPEC := www-register-wizard.spec
224 ALL += www-register-wizard
225 IN_MYPLC += www-register-wizard
226
227 #
228 # pcucontrol
229 #
230 # WARNING: as of f27 I have to remove support for SSL in pcucontrol
231 # see pcucontrol.spec for details
232 # no longer builds in f33
233 # stdsoap2.cpp: In function ‘char* soap_string_in(soap*, int, long int, long int)’:
234 # stdsoap2.cpp:8259:18: error: narrowing conversion of ‘2147483708’ from ‘unsigned int’ to ‘int’ [-Wnarrowing]
235 #  8259 |       case '<' | 0x80000000:
236 #       |                  ^~~~~~~~~~
237 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f33)"
238 pcucontrol-MODULES := pcucontrol
239 pcucontrol-SPEC := pcucontrol.spec
240 ALL += pcucontrol
241 endif
242
243 #
244 # monitor
245 #
246 #monitor-MODULES := monitor
247 #monitor-SPEC := Monitor.spec
248 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
249 #ALL += monitor
250 #IN_NODEIMAGE += monitor
251
252 #
253 # PLC RT
254 #
255 plcrt-MODULES := PLCRT
256 plcrt-SPEC := plcrt.spec
257 ALL += plcrt
258
259 # nodeconfig
260 #
261 nodeconfig-MODULES := nodeconfig
262 nodeconfig-SPEC := nodeconfig.spec
263 ALL += nodeconfig
264 IN_MYPLC += nodeconfig
265
266 #
267 # bootmanager
268 #
269 bootmanager-MODULES := bootmanager
270 bootmanager-SPEC := bootmanager.spec
271 ALL += bootmanager
272 IN_MYPLC += bootmanager
273
274 #
275 # pypcilib : used in bootcd
276 #
277 pypcilib-MODULES := pypcilib
278 pypcilib-SPEC := pypcilib.spec
279 ALL += pypcilib
280 IN_BOOTCD += pypcilib
281
282 #
283 # pyplnet
284 #
285 pyplnet-MODULES := pyplnet
286 pyplnet-SPEC := pyplnet.spec
287 ALL += pyplnet
288 IN_NODEIMAGE += pyplnet
289 IN_MYPLC += pyplnet
290 IN_BOOTCD += pyplnet
291
292 #
293 # bootcd
294 #
295 bootcd-MODULES := bootcd build
296 bootcd-SPEC := bootcd.spec
297 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
298 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
299 bootcd-RPMDATE := yes
300 ALL += bootcd
301 IN_MYPLC += bootcd
302
303 #
304 # images for slices
305 #
306 sliceimage-MODULES := sliceimage build
307 sliceimage-SPEC := sliceimage.spec
308 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
309 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
310 sliceimage-RPMDATE := yes
311 ALL += sliceimage
312 IN_NODEIMAGE += sliceimage
313
314 #
315 # lxc-specific sliceimage initialization
316 #
317 lxc-sliceimage-MODULES  := sliceimage
318 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
319 lxc-sliceimage-RPMDATE  := yes
320 ALL                     += lxc-sliceimage
321 IN_NODEIMAGE            += lxc-sliceimage
322
323 #
324 # nodeimage
325 #
326 nodeimage-MODULES := nodeimage build
327 nodeimage-SPEC := nodeimage.spec
328 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
329 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
330 nodeimage-RPMDATE := yes
331 ALL += nodeimage
332 IN_MYPLC += nodeimage
333
334 #
335 # noderepo
336 #
337 # all rpms resulting from packages marked as being in nodeimage and sliceimage
338 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
339 # replace space with +++ (specvars cannot deal with spaces)
340 SPACE=$(subst x, ,x)
341 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
342
343 noderepo-MODULES := nodeimage
344 noderepo-SPEC := noderepo.spec
345 # package requires all embedded packages
346 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
347 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
348 #export rpm list to the specfile
349 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
350 noderepo-RPMDATE := yes
351 ALL += noderepo
352 IN_MYPLC += noderepo
353
354 #
355 # slicerepo
356 #
357 # all rpms resulting from packages marked as being in vserver
358 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
359 # replace space with +++ (specvars cannot deal with spaces)
360 SPACE=$(subst x, ,x)
361 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
362
363 slicerepo-MODULES := nodeimage
364 slicerepo-SPEC := slicerepo.spec
365 # package requires all embedded packages
366 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
367 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
368 #export rpm list to the specfile
369 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
370 slicerepo-RPMDATE := yes
371 ALL += slicerepo
372
373 #
374 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
375 #
376 myplc-MODULES := myplc
377 myplc-SPEC := myplc.spec
378 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
379 ALL += myplc
380
381 # myplc-docs only contains docs for PLCAPI and NMAPI, but
382 # we still need to pull MyPLC, as it is where the specfile lies,
383 # together with the utility script docbook2drupal.sh
384 myplc-docs-MODULES := myplc plcapi nodemanager monitor
385 myplc-docs-SPEC := myplc-docs.spec
386 ALL += myplc-docs
387
388 # using some other name than myplc-release, as this is a make target already
389 release-MODULES := myplc
390 release-SPEC := myplc-release.spec
391 release-RPMDATE := yes
392 ALL += release
393
394 ##############################
395 #
396 # sfa - Slice Facility Architecture
397 #
398 # this is python2, somehow the tests won't pass against a py3 plcapi
399 # oddly enough, when the py2 sfa code issues xmlrpc calls over ssl
400 # to the underlying myplc, we get SSL handshake issues
401 # so, let's keep this out of the way for now
402 # 2019 mar 27: reinstating for hopefully connecting fed4fire
403 #
404 #ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f27 f29 f31)"
405 sfa-MODULES := sfa
406 sfa-SPEC := sfa.spec
407 ALL += sfa
408 #endif