other distros move to nodemanager that has a single specfile for all packages
[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 procprotect-MODULES := procprotect
34 procprotect-SPEC := procprotect.spec
35 ALL += procprotect
36 IN_NODEIMAGE += procprotect
37
38 #
39 # ipfw: root context module, and slice companion
40 #
41 # this module won't build yet under f20
42 ifeq "$(DISTRONAME)" "f18"
43 ipfwroot-MODULES := ipfw
44 ipfwroot-SPEC := planetlab/ipfwroot.spec
45 ALL += ipfwroot
46 IN_NODEIMAGE += ipfwroot
47
48 ipfwslice-MODULES := ipfw
49 ipfwslice-SPEC := planetlab/ipfwslice.spec
50 ALL += ipfwslice
51 endif
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 #
128 fprobe-ulog-MODULES := fprobe-ulog
129 fprobe-ulog-SPEC := fprobe-ulog.spec
130 ALL += fprobe-ulog
131 IN_NODEIMAGE += fprobe-ulog
132
133 #################### libvirt version selection
134 # settling with using version 1.2.1 on all fedoras
135 # although this does not solve the slice re-creation issue seen on f20
136
137 local_libvirt=true
138 separate_libvirt_python=true
139
140 #
141 # libvirt
142 #
143 ifeq "$(local_libvirt)" "true"
144
145 libvirt-MODULES := libvirt
146 libvirt-SPEC    := libvirt.spec
147 libvirt-BUILD-FROM-SRPM := yes
148 # The --without options are breaking spec2make : hard-wired in the specfile instead
149 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds gettext gettext-devel libtasn1-devel gnutls-devel 
150 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel 
151 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel 
152 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub 
153 # for 1.2.1 - first seen on f20, not sure for the other ones
154 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
155 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
156 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad 
157 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-ipv6 libgcrypt-devel netcf-devel
158 ALL += libvirt
159 IN_NODEREPO += libvirt
160 IN_NODEIMAGE += libvirt
161
162 endif
163
164 #
165 ## libvirt-python
166 #
167 ifeq "$(separate_libvirt_python)" "true"
168
169 libvirt-python-MODULES := libvirt-python
170 libvirt-python-SPEC    := libvirt-python.spec
171 libvirt-python-BUILD-FROM-SRPM := yes
172 libvirt-python-STOCK-DEVEL-RPMS += gnutls-utils nc pm-utils 
173 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
174 libvirt-python-RPMFLAGS :=     --define 'packager PlanetLab'
175 ALL += libvirt-python
176 IN_NODEREPO += libvirt-python
177 IN_NODEIMAGE += libvirt-python
178
179 endif
180
181 #
182 # DistributedRateLimiting
183 #
184 #DistributedRateLimiting-MODULES := DistributedRateLimiting
185 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
186 #ALL += DistributedRateLimiting
187 #IN_NODEREPO += DistributedRateLimiting
188
189 #
190 # pf2slice
191 #
192 pf2slice-MODULES := pf2slice
193 pf2slice-SPEC := pf2slice.spec
194 ALL += pf2slice
195
196 ##
197 ## PlanetLab Mom: Cleans up your mess
198 ##
199 #mom-MODULES := mom
200 #mom-SPEC := pl_mom.spec
201 #ALL += mom
202 #IN_NODEIMAGE += mom
203
204 #
205 # openvswitch
206 #
207 # openvswitch-MODULES := openvswitch
208 # openvswitch-SPEC := openvswitch.spec
209 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
210 # IN_NODEIMAGE += openvswitch
211 # # build only on f14 as f16 has this natively
212 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
213 # ALL += openvswitch
214 # endif
215
216 #
217 # vsys
218 #
219 vsys-MODULES := vsys
220 vsys-SPEC := vsys.spec
221 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
222 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
223 IN_NODEIMAGE += vsys
224 ALL += vsys
225
226 #
227 # vsyssh : installed in slivers
228 #
229 vsyssh-MODULES := vsys
230 vsyssh-SPEC := vsyssh.spec
231 IN_SLICEIMAGE += vsyssh
232 ALL += vsyssh
233
234 #
235 # vsys-scripts
236 #
237 vsys-scripts-MODULES := vsys-scripts
238 vsys-scripts-SPEC := root-context/vsys-scripts.spec
239 IN_NODEIMAGE += vsys-scripts
240 ALL += vsys-scripts
241
242 #
243 # bind_public
244 #
245 bind_public-MODULES := bind_public
246 bind_public-SPEC := bind_public.spec
247 IN_SLICEIMAGE += bind_public
248 ALL += bind_public
249
250 #
251 # sliver-openvswitch
252 #
253 sliver-openvswitch-MODULES := sliver-openvswitch
254 sliver-openvswitch-SPEC := sliver-openvswitch.spec
255 IN_SLICEIMAGE += sliver-openvswitch
256 ALL += sliver-openvswitch
257
258 #
259 # plcapi
260 #
261 plcapi-MODULES := plcapi
262 plcapi-SPEC := plcapi.spec
263 ALL += plcapi
264 IN_MYPLC += plcapi
265
266 #
267 # drupal
268
269 drupal-MODULES := drupal
270 drupal-SPEC := drupal.spec
271 drupal-BUILD-FROM-SRPM := yes
272 ALL += drupal
273 IN_MYPLC += drupal
274
275 #
276 # use the plewww module instead
277 #
278 plewww-MODULES := plewww
279 plewww-SPEC := plewww.spec
280 ALL += plewww
281 IN_MYPLC += plewww
282
283 #
284 # www-register-wizard
285 #
286 www-register-wizard-MODULES := www-register-wizard
287 www-register-wizard-SPEC := www-register-wizard.spec
288 ALL += www-register-wizard
289 IN_MYPLC += www-register-wizard
290
291 #
292 # pcucontrol
293 #
294 pcucontrol-MODULES := pcucontrol
295 pcucontrol-SPEC := pcucontrol.spec
296 ALL += pcucontrol
297
298 #
299 # monitor
300 #
301 #monitor-MODULES := monitor
302 #monitor-SPEC := Monitor.spec
303 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
304 #ALL += monitor
305 #IN_NODEIMAGE += monitor
306
307 #
308 # PLC RT
309 #
310 plcrt-MODULES := PLCRT
311 plcrt-SPEC := plcrt.spec
312 ALL += plcrt
313
314 # f12 has 0.9-1 already
315 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
316 #
317 # pyopenssl
318 #
319 pyopenssl-MODULES := pyopenssl
320 pyopenssl-SPEC := pyOpenSSL.spec
321 pyopenssl-BUILD-FROM-SRPM := yes
322 ALL += pyopenssl
323 endif
324
325 #
326 # pyaspects
327 #
328 pyaspects-MODULES := pyaspects
329 pyaspects-SPEC := pyaspects.spec
330 pyaspects-BUILD-FROM-SRPM := yes
331 ALL += pyaspects
332
333 #
334 # nodeconfig
335 #
336 nodeconfig-MODULES := nodeconfig
337 nodeconfig-SPEC := nodeconfig.spec
338 ALL += nodeconfig
339 IN_MYPLC += nodeconfig
340
341 #
342 # bootmanager
343 #
344 bootmanager-MODULES := bootmanager
345 bootmanager-SPEC := bootmanager.spec
346 ALL += bootmanager
347 IN_MYPLC += bootmanager
348
349 #
350 # pypcilib : used in bootcd
351
352 pypcilib-MODULES := pypcilib
353 pypcilib-SPEC := pypcilib.spec
354 ALL += pypcilib
355 IN_BOOTCD += pypcilib
356
357 #
358 # pyplnet
359 #
360 pyplnet-MODULES := pyplnet
361 pyplnet-SPEC := pyplnet.spec
362 ALL += pyplnet
363 IN_NODEIMAGE += pyplnet
364 IN_MYPLC += pyplnet
365 IN_BOOTCD += pyplnet
366
367 #
368 # OML measurement library
369 #
370 oml-MODULES := oml
371 oml-STOCK-DEVEL-RPMS += sqlite-devel 
372 oml-SPEC := liboml.spec
373 ALL += oml
374
375 #
376 # bootcd
377 #
378 bootcd-MODULES := bootcd build
379 bootcd-SPEC := bootcd.spec
380 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
381 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
382 bootcd-RPMDATE := yes
383 ALL += bootcd
384 IN_MYPLC += bootcd
385
386 #
387 # images for slices
388 #
389 sliceimage-MODULES := sliceimage build
390 sliceimage-SPEC := sliceimage.spec
391 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
392 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
393 sliceimage-RPMDATE := yes
394 ALL += sliceimage
395 IN_NODEIMAGE += sliceimage
396
397 #
398 # lxc-specific sliceimage initialization
399
400 lxc-sliceimage-MODULES  := sliceimage
401 lxc-sliceimage-SPEC     := lxc-sliceimage.spec
402 lxc-sliceimage-RPMDATE  := yes
403 ALL                     += lxc-sliceimage
404 IN_NODEIMAGE            += lxc-sliceimage
405
406 #
407 # nodeimage
408 #
409 nodeimage-MODULES := nodeimage build
410 nodeimage-SPEC := nodeimage.spec
411 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
412 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
413 nodeimage-RPMDATE := yes
414 ALL += nodeimage
415 IN_MYPLC += nodeimage
416
417 #
418 # noderepo
419 #
420 # all rpms resulting from packages marked as being in nodeimage and sliceimage
421 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
422 # replace space with +++ (specvars cannot deal with spaces)
423 SPACE=$(subst x, ,x)
424 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
425
426 noderepo-MODULES := nodeimage
427 noderepo-SPEC := noderepo.spec
428 # package requires all embedded packages
429 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
430 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
431 #export rpm list to the specfile
432 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
433 noderepo-RPMDATE := yes
434 ALL += noderepo
435 IN_MYPLC += noderepo
436
437 #
438 # slicerepo
439 #
440 # all rpms resulting from packages marked as being in vserver
441 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
442 # replace space with +++ (specvars cannot deal with spaces)
443 SPACE=$(subst x, ,x)
444 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
445
446 slicerepo-MODULES := nodeimage
447 slicerepo-SPEC := slicerepo.spec
448 # package requires all embedded packages
449 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
450 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
451 #export rpm list to the specfile
452 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
453 slicerepo-RPMDATE := yes
454 ALL += slicerepo
455
456 #
457 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
458 #
459 myplc-MODULES := myplc
460 myplc-SPEC := myplc.spec
461 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
462 ALL += myplc
463
464 # myplc-docs only contains docs for PLCAPI and NMAPI, but
465 # we still need to pull MyPLC, as it is where the specfile lies, 
466 # together with the utility script docbook2drupal.sh
467 myplc-docs-MODULES := myplc plcapi nodemanager monitor
468 myplc-docs-SPEC := myplc-docs.spec
469 ALL += myplc-docs
470
471 # using some other name than myplc-release, as this is a make target already
472 release-MODULES := myplc
473 release-SPEC := myplc-release.spec
474 release-RPMDATE := yes
475 ALL += release
476
477 ##############################
478 #
479 # sfa - Slice Facility Architecture
480 #
481 sfa-MODULES := sfa
482 sfa-SPEC := sfa.spec
483 ALL += sfa