Setting tag pyplnet-7.0-0
[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)"
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 #
38 ### remove procprotect from the nodes on f20 and above, needs more work starting with 3.19
39 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21 f22 f23 f24 f25 f27 f29)"
40 procprotect-MODULES := procprotect
41 procprotect-SPEC := procprotect.spec
42 ALL += procprotect
43 IN_NODEIMAGE += procprotect
44 endif
45
46 #
47 # ipfw: root context module, and slice companion
48 #
49 ### starting August 2015, ipfw module won't build against fedora22
50 # that comes with kernel 4.1.4
51 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21 f22 f23 f24 f25 f27 f29)"
52 ipfwroot-MODULES := ipfw
53 ipfwroot-SPEC := planetlab/ipfwroot.spec
54 ALL += ipfwroot
55 IN_NODEIMAGE += ipfwroot
56 endif
57
58 ipfwslice-MODULES := ipfw
59 ipfwslice-SPEC := planetlab/ipfwslice.spec
60 ALL += ipfwslice
61
62 #
63 # comgt - a companion to umts tools
64 #
65 comgt-MODULES := comgt
66 comgt-SPEC := comgt.spec
67 IN_NODEIMAGE += comgt
68 ALL += comgt
69
70 #
71 # umts: root context stuff
72 #
73 umts-backend-MODULES := planetlab-umts-tools
74 umts-backend-SPEC := backend.spec
75 IN_NODEIMAGE += umts-backend
76 ALL += umts-backend
77
78 #
79 # umts: slice tools
80 #
81 umts-frontend-MODULES := planetlab-umts-tools
82 umts-frontend-SPEC := frontend.spec
83 IN_SLICEIMAGE += umts-frontend
84 ALL += umts-frontend
85
86 #
87 # NodeUpdate
88 #
89 nodeupdate-MODULES := nodeupdate
90 nodeupdate-SPEC := NodeUpdate.spec
91 ALL += nodeupdate
92 IN_NODEIMAGE += nodeupdate
93
94 #
95 # ipod
96 #
97 ipod-MODULES := PingOfDeath
98 ipod-SPEC := ipod.spec
99 ALL += ipod
100 IN_NODEIMAGE += ipod
101
102 #
103 # plnode-utils
104 #
105 plnode-utils-MODULES := plnode-utils
106 plnode-utils-SPEC := plnode-utils-lxc.spec
107 ALL += plnode-utils
108 IN_NODEIMAGE += plnode-utils
109
110 #
111 # nodemanager
112 #
113 nodemanager-MODULES := nodemanager
114 nodemanager-SPEC := nodemanager.spec
115 ALL += nodemanager
116 IN_NODEIMAGE += nodemanager
117
118 #
119 # pl_sshd
120 #
121 sshd-MODULES := pl_sshd
122 sshd-SPEC := pl_sshd.spec
123 ALL += sshd
124 IN_NODEIMAGE += sshd
125
126 #
127 # codemux: Port 80 demux
128 #
129 codemux-MODULES := codemux
130 codemux-SPEC   := codemux.spec
131 ALL += codemux
132 IN_NODEIMAGE += codemux
133
134 #
135 # fprobe-ulog
136 #
137 # xxx temporarily turning this off on f20 and above
138 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21 f22 f23 f24 f25 f27 f29)"
139 fprobe-ulog-MODULES := fprobe-ulog
140 fprobe-ulog-SPEC := fprobe-ulog.spec
141 ALL += fprobe-ulog
142 IN_NODEIMAGE += fprobe-ulog
143 endif
144
145 #################### libvirt version selection
146
147 # use fedora's libvirt starting with f22
148 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f18 f20 f21)"
149 local_libvirt=true
150 endif
151
152 #
153 # libvirt
154 #
155 ifeq "$(local_libvirt)" "true"
156
157 libvirt-MODULES := libvirt
158 libvirt-SPEC    := libvirt.spec
159 libvirt-BUILD-FROM-SRPM := yes
160 # The --without options are breaking spec2make : hard-wired in the specfile instead
161 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
162 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
163 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
164 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
165 # for 1.2.1 - first seen on f20, not sure for the other ones
166 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
167 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
168 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
169 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
170 # 1.2.11
171 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
172 libvirt-STOCK-DEVEL-RPMS += ceph-devel-compat
173 ALL += libvirt
174 IN_NODEREPO += libvirt
175 IN_NODEIMAGE += libvirt
176
177 #
178 ## libvirt-python
179 #
180 libvirt-python-MODULES := libvirt-python
181 libvirt-python-SPEC    := libvirt-python.spec
182 libvirt-python-BUILD-FROM-SRPM := yes
183 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
184 # for 1.2.11
185 libvirt-python-STOCK-DEVEL-RPMS += python-nose
186 # it would make sense to do something like this if we wanted to
187 # build against python3 as well, but for now I turned this feature off
188 # in libvirt-python
189 #ifeq "$(distro)" "Fedora"
190 #xxx if $(distrorelease) > 18
191 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
192 #endif
193 #endif
194 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
195 libvirt-python-RPMFLAGS :=     --define 'packager PlanetLab'
196 ALL += libvirt-python
197 IN_NODEREPO += libvirt-python
198 IN_NODEIMAGE += libvirt-python
199
200 endif # local_libvirt
201
202 #
203 # DistributedRateLimiting
204 #
205 #DistributedRateLimiting-MODULES := DistributedRateLimiting
206 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
207 #ALL += DistributedRateLimiting
208 #IN_NODEREPO += DistributedRateLimiting
209
210 #
211 # pf2slice
212 #
213 pf2slice-MODULES := pf2slice
214 pf2slice-SPEC := pf2slice.spec
215 ALL += pf2slice
216
217 ##
218 ## PlanetLab Mom: Cleans up your mess
219 ##
220 #mom-MODULES := mom
221 #mom-SPEC := pl_mom.spec
222 #ALL += mom
223 #IN_NODEIMAGE += mom
224
225 #
226 # openvswitch
227 #
228 # openvswitch-MODULES := openvswitch
229 # openvswitch-SPEC := openvswitch.spec
230 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
231 # IN_NODEIMAGE += openvswitch
232 # # build only on f14 as f16 has this natively
233 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
234 # ALL += openvswitch
235 # endif
236
237 #
238 # vsys
239 #
240 vsys-MODULES := vsys
241 vsys-SPEC := vsys.spec
242 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
243 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
244 IN_NODEIMAGE += vsys
245 ALL += vsys
246
247 #
248 # vsyssh : installed in slivers
249 #
250 vsyssh-MODULES := vsys
251 vsyssh-SPEC := vsyssh.spec
252 IN_SLICEIMAGE += vsyssh
253 ALL += vsyssh
254
255 #
256 # vsys-scripts
257 #
258 vsys-scripts-MODULES := vsys-scripts
259 vsys-scripts-SPEC := root-context/vsys-scripts.spec
260 IN_NODEIMAGE += vsys-scripts
261 ALL += vsys-scripts
262
263 vsys-wrapper-MODULES := vsys-scripts
264 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
265 IN_SLICEIMAGE += vsys-wrapper
266 ALL += vsys-wrapper
267
268 #
269 # bind_public
270 #
271 bind_public-MODULES := bind_public
272 bind_public-SPEC := bind_public.spec
273 IN_SLICEIMAGE += bind_public
274 ALL += bind_public
275
276 # in fedora 29, this triggers nasty-looking compile messages
277 # not trying too hard, we're mostly after the server-side of f29
278 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f29)"
279 #
280 # sliver-openvswitch
281 #
282 sliver-openvswitch-MODULES := sliver-openvswitch
283 sliver-openvswitch-SPEC := sliver-openvswitch.spec
284 IN_SLICEIMAGE += sliver-openvswitch
285 ALL += sliver-openvswitch
286 endif
287
288 #
289 # plcapi
290 #
291 plcapi-MODULES := plcapi
292 plcapi-SPEC := plcapi.spec
293 ALL += plcapi
294 IN_MYPLC += plcapi
295
296 #
297 # drupal
298 #
299 drupal-MODULES := drupal
300 drupal-SPEC := drupal.spec
301 drupal-BUILD-FROM-SRPM := yes
302 ALL += drupal
303 IN_MYPLC += drupal
304
305 #
306 # use the plewww module instead
307 #
308 plewww-MODULES := plewww
309 plewww-SPEC := plewww.spec
310 ALL += plewww
311 IN_MYPLC += plewww
312
313 #
314 # www-register-wizard
315 #
316 www-register-wizard-MODULES := www-register-wizard
317 www-register-wizard-SPEC := www-register-wizard.spec
318 ALL += www-register-wizard
319 IN_MYPLC += www-register-wizard
320
321 #
322 # pcucontrol
323 #
324 # WARNING: as of f27 I have to remove support for SSL in pcucontrol
325 # see pcucontrol.spec for details
326 pcucontrol-MODULES := pcucontrol
327 pcucontrol-SPEC := pcucontrol.spec
328 ALL += pcucontrol
329
330 #
331 # monitor
332 #
333 #monitor-MODULES := monitor
334 #monitor-SPEC := Monitor.spec
335 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
336 #ALL += monitor
337 #IN_NODEIMAGE += monitor
338
339 #
340 # PLC RT
341 #
342 plcrt-MODULES := PLCRT
343 plcrt-SPEC := plcrt.spec
344 ALL += plcrt
345
346 # f12 has 0.9-1 already
347 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
348 #
349 # pyopenssl
350 #
351 pyopenssl-MODULES := pyopenssl
352 pyopenssl-SPEC := pyOpenSSL.spec
353 pyopenssl-BUILD-FROM-SRPM := yes
354 ALL += pyopenssl
355 endif
356
357 # nodeconfig
358 #
359 nodeconfig-MODULES := nodeconfig
360 nodeconfig-SPEC := nodeconfig.spec
361 ALL += nodeconfig
362 IN_MYPLC += nodeconfig
363
364 #
365 # bootmanager
366 #
367 bootmanager-MODULES := bootmanager
368 bootmanager-SPEC := bootmanager.spec
369 ALL += bootmanager
370 IN_MYPLC += bootmanager
371
372 #
373 # pypcilib : used in bootcd
374 #
375 pypcilib-MODULES := pypcilib
376 pypcilib-SPEC := pypcilib.spec
377 ALL += pypcilib
378 IN_BOOTCD += pypcilib
379
380 #
381 # pyplnet
382 #
383 pyplnet-MODULES := pyplnet
384 pyplnet-SPEC := pyplnet.spec
385 ALL += pyplnet
386 IN_NODEIMAGE += pyplnet
387 IN_MYPLC += pyplnet
388 IN_BOOTCD += pyplnet
389
390 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f23 f24 f25 f27 f29)"
391 #
392 # OML measurement library
393 #
394 oml-MODULES := oml
395 oml-STOCK-DEVEL-RPMS += sqlite-devel
396 oml-SPEC := liboml.spec
397 ALL += oml
398 endif
399
400 #
401 # bootcd
402 #
403 bootcd-MODULES := bootcd build
404 bootcd-SPEC := bootcd.spec
405 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
406 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
407 bootcd-RPMDATE := yes
408 ALL += bootcd
409 IN_MYPLC += bootcd
410
411 #
412 # images for slices
413 #
414 sliceimage-MODULES := sliceimage build
415 sliceimage-SPEC := sliceimage.spec
416 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
417 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
418 sliceimage-RPMDATE := yes
419 ALL += sliceimage
420 IN_NODEIMAGE += sliceimage
421
422 #
423 # lxc-specific sliceimage initialization
424 #
425 lxc-sliceimage-MODULES  := sliceimage
426 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
427 lxc-sliceimage-RPMDATE  := yes
428 ALL                     += lxc-sliceimage
429 IN_NODEIMAGE            += lxc-sliceimage
430
431 #
432 # nodeimage
433 #
434 nodeimage-MODULES := nodeimage build
435 nodeimage-SPEC := nodeimage.spec
436 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
437 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
438 nodeimage-RPMDATE := yes
439 ALL += nodeimage
440 IN_MYPLC += nodeimage
441
442 #
443 # noderepo
444 #
445 # all rpms resulting from packages marked as being in nodeimage and sliceimage
446 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
447 # replace space with +++ (specvars cannot deal with spaces)
448 SPACE=$(subst x, ,x)
449 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
450
451 noderepo-MODULES := nodeimage
452 noderepo-SPEC := noderepo.spec
453 # package requires all embedded packages
454 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
455 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
456 #export rpm list to the specfile
457 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
458 noderepo-RPMDATE := yes
459 ALL += noderepo
460 IN_MYPLC += noderepo
461
462 #
463 # slicerepo
464 #
465 # all rpms resulting from packages marked as being in vserver
466 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
467 # replace space with +++ (specvars cannot deal with spaces)
468 SPACE=$(subst x, ,x)
469 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
470
471 slicerepo-MODULES := nodeimage
472 slicerepo-SPEC := slicerepo.spec
473 # package requires all embedded packages
474 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
475 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
476 #export rpm list to the specfile
477 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
478 slicerepo-RPMDATE := yes
479 ALL += slicerepo
480
481 #
482 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
483 #
484 myplc-MODULES := myplc
485 myplc-SPEC := myplc.spec
486 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
487 ALL += myplc
488
489 # myplc-docs only contains docs for PLCAPI and NMAPI, but
490 # we still need to pull MyPLC, as it is where the specfile lies,
491 # together with the utility script docbook2drupal.sh
492 myplc-docs-MODULES := myplc plcapi nodemanager monitor
493 myplc-docs-SPEC := myplc-docs.spec
494 ALL += myplc-docs
495
496 # using some other name than myplc-release, as this is a make target already
497 release-MODULES := myplc
498 release-SPEC := myplc-release.spec
499 release-RPMDATE := yes
500 ALL += release
501
502 ##############################
503 #
504 # sfa - Slice Facility Architecture
505 #
506 # this is python2, somehow the tests won't pass against a py3 plcapi
507 # oddly enough, when the py2 sfa code issues xmlrpc calls over ssl 
508 # to the underlying myplc, we get SSL handshake issues
509 # so, let's keep this out of the way for now
510 #
511 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME), f27 f29)"
512 sfa-MODULES := sfa
513 sfa-SPEC := sfa.spec
514 ALL += sfa
515 endif