turn off procprotect in fedora20 as well
[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 f21 now that it has 3.19
34 ### as of beg apr 15 f20 also runs 3.19
35 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21)"
36 procprotect-MODULES := procprotect
37 procprotect-SPEC := procprotect.spec
38 ALL += procprotect
39 IN_NODEIMAGE += procprotect
40 endif
41
42 #
43 # ipfw: root context module, and slice companion
44 #
45 ipfwroot-MODULES := ipfw
46 ipfwroot-SPEC := planetlab/ipfwroot.spec
47 ALL += ipfwroot
48 IN_NODEIMAGE += ipfwroot
49
50 ipfwslice-MODULES := ipfw
51 ipfwslice-SPEC := planetlab/ipfwslice.spec
52 ALL += ipfwslice
53
54 #
55 # comgt - a companion to umts tools
56
57 comgt-MODULES := comgt
58 comgt-SPEC := comgt.spec
59 IN_NODEIMAGE += comgt
60 ALL += comgt
61
62 #
63 # umts: root context stuff
64 #
65 umts-backend-MODULES := planetlab-umts-tools
66 umts-backend-SPEC := backend.spec
67 IN_NODEIMAGE += umts-backend
68 ALL += umts-backend
69
70 #
71 # umts: slice tools
72 #
73 umts-frontend-MODULES := planetlab-umts-tools
74 umts-frontend-SPEC := frontend.spec
75 IN_SLICEIMAGE += umts-frontend
76 ALL += umts-frontend
77
78 #
79 # NodeUpdate
80 #
81 nodeupdate-MODULES := nodeupdate
82 nodeupdate-SPEC := NodeUpdate.spec
83 ALL += nodeupdate
84 IN_NODEIMAGE += nodeupdate
85
86 #
87 # ipod
88 #
89 ipod-MODULES := PingOfDeath
90 ipod-SPEC := ipod.spec
91 ALL += ipod
92 IN_NODEIMAGE += ipod
93
94 #
95 # plnode-utils
96
97 plnode-utils-MODULES := plnode-utils
98 plnode-utils-SPEC := plnode-utils-lxc.spec
99 ALL += plnode-utils
100 IN_NODEIMAGE += plnode-utils
101
102 #
103 # nodemanager
104 #
105 nodemanager-MODULES := nodemanager
106 nodemanager-SPEC := nodemanager.spec
107 ALL += nodemanager
108 IN_NODEIMAGE += nodemanager
109
110 #
111 # pl_sshd
112 #
113 sshd-MODULES := pl_sshd
114 sshd-SPEC := pl_sshd.spec
115 ALL += sshd
116 IN_NODEIMAGE += sshd
117
118 #
119 # codemux: Port 80 demux
120 #
121 codemux-MODULES := codemux
122 codemux-SPEC   := codemux.spec
123 ALL += codemux
124 IN_NODEIMAGE += codemux
125
126 #
127 # fprobe-ulog
128 #
129 # xxx temporarily turning this off on f20 and f21
130 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21)"
131 fprobe-ulog-MODULES := fprobe-ulog
132 fprobe-ulog-SPEC := fprobe-ulog.spec
133 ALL += fprobe-ulog
134 IN_NODEIMAGE += fprobe-ulog
135 endif
136
137 #################### libvirt version selection
138 # settling with using version 1.2.1 on all fedoras
139 # although this does not solve the slice re-creation issue seen on f20
140
141 local_libvirt=true
142 separate_libvirt_python=true
143
144 #
145 # libvirt
146 #
147 ifeq "$(local_libvirt)" "true"
148
149 libvirt-MODULES := libvirt
150 libvirt-SPEC    := libvirt.spec
151 libvirt-BUILD-FROM-SRPM := yes
152 # The --without options are breaking spec2make : hard-wired in the specfile instead
153 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
154 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel 
155 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel 
156 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub 
157 # for 1.2.1 - first seen on f20, not sure for the other ones
158 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
159 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
160 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad 
161 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
162 # 1.2.11
163 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
164 libvirt-STOCK-DEVEL-RPMS += ceph-devel-compat
165 ALL += libvirt
166 IN_NODEREPO += libvirt
167 IN_NODEIMAGE += libvirt
168
169 endif
170
171 #
172 ## libvirt-python
173 #
174 ifeq "$(separate_libvirt_python)" "true"
175
176 libvirt-python-MODULES := libvirt-python
177 libvirt-python-SPEC    := libvirt-python.spec
178 libvirt-python-BUILD-FROM-SRPM := yes
179 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
180 # for 1.2.11
181 libvirt-python-STOCK-DEVEL-RPMS += python-nose
182 # it would make sense to do something like this if we wanted to
183 # build against python3 as well, but for now I turned this feature off
184 # in libvirt-python
185 #ifeq "$(distro)" "Fedora"
186 #xxx if $(distrorelease) > 18
187 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
188 #endif
189 #endif
190 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
191 libvirt-python-RPMFLAGS :=     --define 'packager PlanetLab'
192 ALL += libvirt-python
193 IN_NODEREPO += libvirt-python
194 IN_NODEIMAGE += libvirt-python
195
196 endif
197
198 #
199 # DistributedRateLimiting
200 #
201 #DistributedRateLimiting-MODULES := DistributedRateLimiting
202 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
203 #ALL += DistributedRateLimiting
204 #IN_NODEREPO += DistributedRateLimiting
205
206 #
207 # pf2slice
208 #
209 pf2slice-MODULES := pf2slice
210 pf2slice-SPEC := pf2slice.spec
211 ALL += pf2slice
212
213 ##
214 ## PlanetLab Mom: Cleans up your mess
215 ##
216 #mom-MODULES := mom
217 #mom-SPEC := pl_mom.spec
218 #ALL += mom
219 #IN_NODEIMAGE += mom
220
221 #
222 # openvswitch
223 #
224 # openvswitch-MODULES := openvswitch
225 # openvswitch-SPEC := openvswitch.spec
226 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
227 # IN_NODEIMAGE += openvswitch
228 # # build only on f14 as f16 has this natively
229 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
230 # ALL += openvswitch
231 # endif
232
233 #
234 # vsys
235 #
236 vsys-MODULES := vsys
237 vsys-SPEC := vsys.spec
238 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
239 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
240 IN_NODEIMAGE += vsys
241 ALL += vsys
242
243 #
244 # vsyssh : installed in slivers
245 #
246 vsyssh-MODULES := vsys
247 vsyssh-SPEC := vsyssh.spec
248 IN_SLICEIMAGE += vsyssh
249 ALL += vsyssh
250
251 #
252 # vsys-scripts
253 #
254 vsys-scripts-MODULES := vsys-scripts
255 vsys-scripts-SPEC := root-context/vsys-scripts.spec
256 IN_NODEIMAGE += vsys-scripts
257 ALL += vsys-scripts
258
259 # xxx temporarily turning this off on f21
260 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21)"
261 vsys-wrapper-MODULES := vsys-scripts
262 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
263 IN_SLICEIMAGE += vsys-wrapper
264 ALL += vsys-wrapper
265 endif
266
267 #
268 # bind_public
269 #
270 bind_public-MODULES := bind_public
271 bind_public-SPEC := bind_public.spec
272 IN_SLICEIMAGE += bind_public
273 ALL += bind_public
274
275 #
276 # sliver-openvswitch
277 #
278 sliver-openvswitch-MODULES := sliver-openvswitch
279 sliver-openvswitch-SPEC := sliver-openvswitch.spec
280 IN_SLICEIMAGE += sliver-openvswitch
281 ALL += sliver-openvswitch
282
283 #
284 # plcapi
285 #
286 plcapi-MODULES := plcapi
287 plcapi-SPEC := plcapi.spec
288 ALL += plcapi
289 IN_MYPLC += plcapi
290
291 #
292 # drupal
293
294 drupal-MODULES := drupal
295 drupal-SPEC := drupal.spec
296 drupal-BUILD-FROM-SRPM := yes
297 ALL += drupal
298 IN_MYPLC += drupal
299
300 #
301 # use the plewww module instead
302 #
303 plewww-MODULES := plewww
304 plewww-SPEC := plewww.spec
305 ALL += plewww
306 IN_MYPLC += plewww
307
308 #
309 # www-register-wizard
310 #
311 www-register-wizard-MODULES := www-register-wizard
312 www-register-wizard-SPEC := www-register-wizard.spec
313 ALL += www-register-wizard
314 IN_MYPLC += www-register-wizard
315
316 #
317 # pcucontrol
318 #
319 pcucontrol-MODULES := pcucontrol
320 pcucontrol-SPEC := pcucontrol.spec
321 ALL += pcucontrol
322
323 #
324 # monitor
325 #
326 #monitor-MODULES := monitor
327 #monitor-SPEC := Monitor.spec
328 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
329 #ALL += monitor
330 #IN_NODEIMAGE += monitor
331
332 #
333 # PLC RT
334 #
335 plcrt-MODULES := PLCRT
336 plcrt-SPEC := plcrt.spec
337 ALL += plcrt
338
339 # f12 has 0.9-1 already
340 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
341 #
342 # pyopenssl
343 #
344 pyopenssl-MODULES := pyopenssl
345 pyopenssl-SPEC := pyOpenSSL.spec
346 pyopenssl-BUILD-FROM-SRPM := yes
347 ALL += pyopenssl
348 endif
349
350 #
351 # pyaspects
352 #
353 pyaspects-MODULES := pyaspects
354 pyaspects-SPEC := pyaspects.spec
355 pyaspects-BUILD-FROM-SRPM := yes
356 ALL += pyaspects
357
358 #
359 # nodeconfig
360 #
361 nodeconfig-MODULES := nodeconfig
362 nodeconfig-SPEC := nodeconfig.spec
363 ALL += nodeconfig
364 IN_MYPLC += nodeconfig
365
366 #
367 # bootmanager
368 #
369 bootmanager-MODULES := bootmanager
370 bootmanager-SPEC := bootmanager.spec
371 ALL += bootmanager
372 IN_MYPLC += bootmanager
373
374 #
375 # pypcilib : used in bootcd
376
377 pypcilib-MODULES := pypcilib
378 pypcilib-SPEC := pypcilib.spec
379 ALL += pypcilib
380 IN_BOOTCD += pypcilib
381
382 #
383 # pyplnet
384 #
385 pyplnet-MODULES := pyplnet
386 pyplnet-SPEC := pyplnet.spec
387 ALL += pyplnet
388 IN_NODEIMAGE += pyplnet
389 IN_MYPLC += pyplnet
390 IN_BOOTCD += pyplnet
391
392 #
393 # OML measurement library
394 #
395 oml-MODULES := oml
396 oml-STOCK-DEVEL-RPMS += sqlite-devel 
397 oml-SPEC := liboml.spec
398 ALL += oml
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 sfa-MODULES := sfa
507 sfa-SPEC := sfa.spec
508 ALL += sfa