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