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 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
159 IN_NODEREPO += libvirt
160 IN_NODEIMAGE += libvirt
167 ifeq "$(separate_libvirt_python)" "true"
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 += 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
182 # DistributedRateLimiting
184 #DistributedRateLimiting-MODULES := DistributedRateLimiting
185 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
186 #ALL += DistributedRateLimiting
187 #IN_NODEREPO += DistributedRateLimiting
192 pf2slice-MODULES := pf2slice
193 pf2slice-SPEC := pf2slice.spec
197 ## PlanetLab Mom: Cleans up your mess
200 #mom-SPEC := pl_mom.spec
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)"
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
227 # vsyssh : installed in slivers
229 vsyssh-MODULES := vsys
230 vsyssh-SPEC := vsyssh.spec
231 IN_SLICEIMAGE += vsyssh
237 vsys-scripts-MODULES := vsys-scripts
238 vsys-scripts-SPEC := root-context/vsys-scripts.spec
239 IN_NODEIMAGE += vsys-scripts
242 vsys-wrapper-MODULES := vsys-scripts
243 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
244 IN_SLICEIMAGE += vsys-wrapper
250 bind_public-MODULES := bind_public
251 bind_public-SPEC := bind_public.spec
252 IN_SLICEIMAGE += bind_public
258 sliver-openvswitch-MODULES := sliver-openvswitch
259 sliver-openvswitch-SPEC := sliver-openvswitch.spec
260 IN_SLICEIMAGE += sliver-openvswitch
261 ALL += sliver-openvswitch
266 plcapi-MODULES := plcapi
267 plcapi-SPEC := plcapi.spec
274 drupal-MODULES := drupal
275 drupal-SPEC := drupal.spec
276 drupal-BUILD-FROM-SRPM := yes
281 # use the plewww module instead
283 plewww-MODULES := plewww
284 plewww-SPEC := plewww.spec
289 # www-register-wizard
291 www-register-wizard-MODULES := www-register-wizard
292 www-register-wizard-SPEC := www-register-wizard.spec
293 ALL += www-register-wizard
294 IN_MYPLC += www-register-wizard
299 pcucontrol-MODULES := pcucontrol
300 pcucontrol-SPEC := pcucontrol.spec
306 #monitor-MODULES := monitor
307 #monitor-SPEC := Monitor.spec
308 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
310 #IN_NODEIMAGE += monitor
315 plcrt-MODULES := PLCRT
316 plcrt-SPEC := plcrt.spec
319 # f12 has 0.9-1 already
320 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
324 pyopenssl-MODULES := pyopenssl
325 pyopenssl-SPEC := pyOpenSSL.spec
326 pyopenssl-BUILD-FROM-SRPM := yes
333 pyaspects-MODULES := pyaspects
334 pyaspects-SPEC := pyaspects.spec
335 pyaspects-BUILD-FROM-SRPM := yes
341 nodeconfig-MODULES := nodeconfig
342 nodeconfig-SPEC := nodeconfig.spec
344 IN_MYPLC += nodeconfig
349 bootmanager-MODULES := bootmanager
350 bootmanager-SPEC := bootmanager.spec
352 IN_MYPLC += bootmanager
355 # pypcilib : used in bootcd
357 pypcilib-MODULES := pypcilib
358 pypcilib-SPEC := pypcilib.spec
360 IN_BOOTCD += pypcilib
365 pyplnet-MODULES := pyplnet
366 pyplnet-SPEC := pyplnet.spec
368 IN_NODEIMAGE += pyplnet
373 # OML measurement library
376 oml-STOCK-DEVEL-RPMS += sqlite-devel
377 oml-SPEC := liboml.spec
383 bootcd-MODULES := bootcd build
384 bootcd-SPEC := bootcd.spec
385 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
386 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
387 bootcd-RPMDATE := yes
394 sliceimage-MODULES := sliceimage build
395 sliceimage-SPEC := sliceimage.spec
396 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
397 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
398 sliceimage-RPMDATE := yes
400 IN_NODEIMAGE += sliceimage
403 # lxc-specific sliceimage initialization
405 lxc-sliceimage-MODULES := sliceimage
406 lxc-sliceimage-SPEC := lxc-sliceimage.spec
407 lxc-sliceimage-RPMDATE := yes
408 ALL += lxc-sliceimage
409 IN_NODEIMAGE += lxc-sliceimage
414 nodeimage-MODULES := nodeimage build
415 nodeimage-SPEC := nodeimage.spec
416 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
417 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
418 nodeimage-RPMDATE := yes
420 IN_MYPLC += nodeimage
425 # all rpms resulting from packages marked as being in nodeimage and sliceimage
426 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
427 # replace space with +++ (specvars cannot deal with spaces)
429 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
431 noderepo-MODULES := nodeimage
432 noderepo-SPEC := noderepo.spec
433 # package requires all embedded packages
434 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
435 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
436 #export rpm list to the specfile
437 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
438 noderepo-RPMDATE := yes
445 # all rpms resulting from packages marked as being in vserver
446 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
447 # replace space with +++ (specvars cannot deal with spaces)
449 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
451 slicerepo-MODULES := nodeimage
452 slicerepo-SPEC := slicerepo.spec
453 # package requires all embedded packages
454 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
455 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
456 #export rpm list to the specfile
457 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
458 slicerepo-RPMDATE := yes
462 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
464 myplc-MODULES := myplc
465 myplc-SPEC := myplc.spec
466 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
469 # myplc-docs only contains docs for PLCAPI and NMAPI, but
470 # we still need to pull MyPLC, as it is where the specfile lies,
471 # together with the utility script docbook2drupal.sh
472 myplc-docs-MODULES := myplc plcapi nodemanager monitor
473 myplc-docs-SPEC := myplc-docs.spec
476 # using some other name than myplc-release, as this is a make target already
477 release-MODULES := myplc
478 release-SPEC := myplc-release.spec
479 release-RPMDATE := yes
482 ##############################
484 # sfa - Slice Facility Architecture