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