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
11 ### the madwifi drivers ship with fedora16's kernel rpm
14 # lxc-userspace: scripts for entering containers
16 lxc-userspace-MODULES := lxc-userspace
17 lxc-userspace-SPEC := lxc-userspace.spec
19 IN_NODEIMAGE += lxc-userspace
23 # transforward: root context module for transparent port forwarding
25 transforward-MODULES := transforward
26 transforward-SPEC := transforward.spec
28 IN_NODEIMAGE += transforward
31 # procprotect: root context module for protecting against weaknesses in /proc
33 procprotect-MODULES := procprotect
34 procprotect-SPEC := procprotect.spec
36 IN_NODEIMAGE += procprotect
39 # ipfw: root context module, and slice companion
41 ipfwroot-MODULES := ipfw
42 ipfwroot-SPEC := planetlab/ipfwroot.spec
44 IN_NODEIMAGE += ipfwroot
46 ipfwslice-MODULES := ipfw
47 ipfwslice-SPEC := planetlab/ipfwslice.spec
51 # comgt - a companion to umts tools
53 comgt-MODULES := comgt
54 comgt-SPEC := comgt.spec
59 # umts: root context stuff
61 umts-backend-MODULES := planetlab-umts-tools
62 umts-backend-SPEC := backend.spec
63 IN_NODEIMAGE += umts-backend
69 umts-frontend-MODULES := planetlab-umts-tools
70 umts-frontend-SPEC := frontend.spec
71 IN_SLICEIMAGE += umts-frontend
77 nodeupdate-MODULES := nodeupdate
78 nodeupdate-SPEC := NodeUpdate.spec
80 IN_NODEIMAGE += nodeupdate
85 ipod-MODULES := PingOfDeath
86 ipod-SPEC := ipod.spec
93 plnode-utils-MODULES := plnode-utils
94 plnode-utils-SPEC := plnode-utils-lxc.spec
96 IN_NODEIMAGE += plnode-utils
101 nodemanager-MODULES := nodemanager
102 nodemanager-SPEC := nodemanager.spec
104 IN_NODEIMAGE += nodemanager
109 sshd-MODULES := pl_sshd
110 sshd-SPEC := pl_sshd.spec
115 # codemux: Port 80 demux
117 codemux-MODULES := codemux
118 codemux-SPEC := codemux.spec
120 IN_NODEIMAGE += codemux
125 # xxx temporarily turning this off
126 fprobe-ulog-MODULES := fprobe-ulog
127 fprobe-ulog-SPEC := fprobe-ulog.spec
129 #IN_NODEIMAGE += fprobe-ulog
131 #################### libvirt version selection
132 # settling with using version 1.2.1 on all fedoras
133 # although this does not solve the slice re-creation issue seen on f20
136 separate_libvirt_python=true
141 ifeq "$(local_libvirt)" "true"
143 libvirt-MODULES := libvirt
144 libvirt-SPEC := libvirt.spec
145 libvirt-BUILD-FROM-SRPM := yes
146 # The --without options are breaking spec2make : hard-wired in the specfile instead
147 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
148 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
149 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
150 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
151 # for 1.2.1 - first seen on f20, not sure for the other ones
152 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
153 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
154 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
155 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
157 IN_NODEREPO += libvirt
158 IN_NODEIMAGE += libvirt
165 ifeq "$(separate_libvirt_python)" "true"
167 libvirt-python-MODULES := libvirt-python
168 libvirt-python-SPEC := libvirt-python.spec
169 libvirt-python-BUILD-FROM-SRPM := yes
170 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
171 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
172 libvirt-python-RPMFLAGS := --define 'packager PlanetLab'
173 ALL += libvirt-python
174 IN_NODEREPO += libvirt-python
175 IN_NODEIMAGE += libvirt-python
180 # DistributedRateLimiting
182 #DistributedRateLimiting-MODULES := DistributedRateLimiting
183 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
184 #ALL += DistributedRateLimiting
185 #IN_NODEREPO += DistributedRateLimiting
190 pf2slice-MODULES := pf2slice
191 pf2slice-SPEC := pf2slice.spec
195 ## PlanetLab Mom: Cleans up your mess
198 #mom-SPEC := pl_mom.spec
205 # openvswitch-MODULES := openvswitch
206 # openvswitch-SPEC := openvswitch.spec
207 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
208 # IN_NODEIMAGE += openvswitch
209 # # build only on f14 as f16 has this natively
210 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
218 vsys-SPEC := vsys.spec
219 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
220 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
225 # vsyssh : installed in slivers
227 vsyssh-MODULES := vsys
228 vsyssh-SPEC := vsyssh.spec
229 IN_SLICEIMAGE += vsyssh
235 vsys-scripts-MODULES := vsys-scripts
236 vsys-scripts-SPEC := root-context/vsys-scripts.spec
237 IN_NODEIMAGE += vsys-scripts
240 vsys-wrapper-MODULES := vsys-scripts
241 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
242 IN_SLICEIMAGE += vsys-wrapper
248 bind_public-MODULES := bind_public
249 bind_public-SPEC := bind_public.spec
250 IN_SLICEIMAGE += bind_public
256 sliver-openvswitch-MODULES := sliver-openvswitch
257 sliver-openvswitch-SPEC := sliver-openvswitch.spec
258 IN_SLICEIMAGE += sliver-openvswitch
259 ALL += sliver-openvswitch
264 plcapi-MODULES := plcapi
265 plcapi-SPEC := plcapi.spec
272 drupal-MODULES := drupal
273 drupal-SPEC := drupal.spec
274 drupal-BUILD-FROM-SRPM := yes
279 # use the plewww module instead
281 plewww-MODULES := plewww
282 plewww-SPEC := plewww.spec
287 # www-register-wizard
289 www-register-wizard-MODULES := www-register-wizard
290 www-register-wizard-SPEC := www-register-wizard.spec
291 ALL += www-register-wizard
292 IN_MYPLC += www-register-wizard
297 pcucontrol-MODULES := pcucontrol
298 pcucontrol-SPEC := pcucontrol.spec
304 #monitor-MODULES := monitor
305 #monitor-SPEC := Monitor.spec
306 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
308 #IN_NODEIMAGE += monitor
313 plcrt-MODULES := PLCRT
314 plcrt-SPEC := plcrt.spec
317 # f12 has 0.9-1 already
318 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
322 pyopenssl-MODULES := pyopenssl
323 pyopenssl-SPEC := pyOpenSSL.spec
324 pyopenssl-BUILD-FROM-SRPM := yes
331 pyaspects-MODULES := pyaspects
332 pyaspects-SPEC := pyaspects.spec
333 pyaspects-BUILD-FROM-SRPM := yes
339 nodeconfig-MODULES := nodeconfig
340 nodeconfig-SPEC := nodeconfig.spec
342 IN_MYPLC += nodeconfig
347 bootmanager-MODULES := bootmanager
348 bootmanager-SPEC := bootmanager.spec
350 IN_MYPLC += bootmanager
353 # pypcilib : used in bootcd
355 pypcilib-MODULES := pypcilib
356 pypcilib-SPEC := pypcilib.spec
358 IN_BOOTCD += pypcilib
363 pyplnet-MODULES := pyplnet
364 pyplnet-SPEC := pyplnet.spec
366 IN_NODEIMAGE += pyplnet
371 # OML measurement library
374 oml-STOCK-DEVEL-RPMS += sqlite-devel
375 oml-SPEC := liboml.spec
381 bootcd-MODULES := bootcd build
382 bootcd-SPEC := bootcd.spec
383 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
384 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
385 bootcd-RPMDATE := yes
392 sliceimage-MODULES := sliceimage build
393 sliceimage-SPEC := sliceimage.spec
394 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
395 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
396 sliceimage-RPMDATE := yes
398 IN_NODEIMAGE += sliceimage
401 # lxc-specific sliceimage initialization
403 lxc-sliceimage-MODULES := sliceimage
404 lxc-sliceimage-SPEC := lxc-sliceimage.spec
405 lxc-sliceimage-RPMDATE := yes
406 ALL += lxc-sliceimage
407 IN_NODEIMAGE += lxc-sliceimage
412 nodeimage-MODULES := nodeimage build
413 nodeimage-SPEC := nodeimage.spec
414 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
415 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
416 nodeimage-RPMDATE := yes
418 IN_MYPLC += nodeimage
423 # all rpms resulting from packages marked as being in nodeimage and sliceimage
424 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
425 # replace space with +++ (specvars cannot deal with spaces)
427 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
429 noderepo-MODULES := nodeimage
430 noderepo-SPEC := noderepo.spec
431 # package requires all embedded packages
432 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
433 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
434 #export rpm list to the specfile
435 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
436 noderepo-RPMDATE := yes
443 # all rpms resulting from packages marked as being in vserver
444 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
445 # replace space with +++ (specvars cannot deal with spaces)
447 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
449 slicerepo-MODULES := nodeimage
450 slicerepo-SPEC := slicerepo.spec
451 # package requires all embedded packages
452 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
453 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
454 #export rpm list to the specfile
455 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
456 slicerepo-RPMDATE := yes
460 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
462 myplc-MODULES := myplc
463 myplc-SPEC := myplc.spec
464 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
467 # myplc-docs only contains docs for PLCAPI and NMAPI, but
468 # we still need to pull MyPLC, as it is where the specfile lies,
469 # together with the utility script docbook2drupal.sh
470 myplc-docs-MODULES := myplc plcapi nodemanager monitor
471 myplc-docs-SPEC := myplc-docs.spec
474 # using some other name than myplc-release, as this is a make target already
475 release-MODULES := myplc
476 release-SPEC := myplc-release.spec
477 release-RPMDATE := yes
480 ##############################
482 # sfa - Slice Facility Architecture