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 # this module won't build yet under f20
42 ifeq "$(DISTRONAME)" "f18"
43 ipfwroot-MODULES := ipfw
44 ipfwroot-SPEC := planetlab/ipfwroot.spec
46 IN_NODEIMAGE += ipfwroot
48 ipfwslice-MODULES := ipfw
49 ipfwslice-SPEC := planetlab/ipfwslice.spec
54 # comgt - a companion to umts tools
56 comgt-MODULES := comgt
57 comgt-SPEC := comgt.spec
62 # umts: root context stuff
64 umts-backend-MODULES := planetlab-umts-tools
65 umts-backend-SPEC := backend.spec
66 IN_NODEIMAGE += umts-backend
72 umts-frontend-MODULES := planetlab-umts-tools
73 umts-frontend-SPEC := frontend.spec
74 IN_SLICEIMAGE += umts-frontend
80 nodeupdate-MODULES := nodeupdate
81 nodeupdate-SPEC := NodeUpdate.spec
83 IN_NODEIMAGE += nodeupdate
88 ipod-MODULES := PingOfDeath
89 ipod-SPEC := ipod.spec
96 plnode-utils-MODULES := plnode-utils
97 plnode-utils-SPEC := plnode-utils-lxc.spec
99 IN_NODEIMAGE += plnode-utils
104 nodemanager-lib-MODULES := nodemanager
105 nodemanager-lib-SPEC := nodemanager-lib.spec
106 ALL += nodemanager-lib
107 IN_NODEIMAGE += nodemanager-lib
109 nodemanager-lxc-MODULES := nodemanager
110 nodemanager-lxc-SPEC := nodemanager-lxc.spec
111 ALL += nodemanager-lxc
112 IN_NODEIMAGE += nodemanager-lxc
117 sshd-MODULES := pl_sshd
118 sshd-SPEC := pl_sshd.spec
123 # codemux: Port 80 demux
125 codemux-MODULES := codemux
126 codemux-SPEC := codemux.spec
128 IN_NODEIMAGE += codemux
133 fprobe-ulog-MODULES := fprobe-ulog
134 fprobe-ulog-SPEC := fprobe-ulog.spec
136 IN_NODEIMAGE += fprobe-ulog
138 #################### libvirt version selection
139 # settling with using version 1.2.1 on all fedoras
140 # although this does not solve the slice re-creation issue seen on f20
143 separate_libvirt_python=true
148 ifeq "$(local_libvirt)" "true"
150 libvirt-MODULES := libvirt
151 libvirt-SPEC := libvirt.spec
152 libvirt-BUILD-FROM-SRPM := yes
153 # The --without options are breaking spec2make : hard-wired in the specfile instead
154 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds gettext gettext-devel libtasn1-devel gnutls-devel
155 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
156 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
157 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
158 # for 1.2.1 - first seen on f20, not sure for the other ones
159 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
160 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
161 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
162 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-ipv6 libgcrypt-devel netcf-devel
164 IN_NODEREPO += libvirt
165 IN_NODEIMAGE += libvirt
172 ifeq "$(separate_libvirt_python)" "true"
174 libvirt-python-MODULES := libvirt-python
175 libvirt-python-SPEC := libvirt-python.spec
176 libvirt-python-BUILD-FROM-SRPM := yes
177 libvirt-python-STOCK-DEVEL-RPMS += gnutls-utils nc pm-utils
178 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
179 libvirt-python-RPMFLAGS := --define 'packager PlanetLab'
180 ALL += libvirt-python
181 IN_NODEREPO += libvirt-python
182 IN_NODEIMAGE += libvirt-python
187 # DistributedRateLimiting
189 #DistributedRateLimiting-MODULES := DistributedRateLimiting
190 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
191 #ALL += DistributedRateLimiting
192 #IN_NODEREPO += DistributedRateLimiting
197 pf2slice-MODULES := pf2slice
198 pf2slice-SPEC := pf2slice.spec
202 ## PlanetLab Mom: Cleans up your mess
205 #mom-SPEC := pl_mom.spec
212 # openvswitch-MODULES := openvswitch
213 # openvswitch-SPEC := openvswitch.spec
214 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
215 # IN_NODEIMAGE += openvswitch
216 # # build only on f14 as f16 has this natively
217 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
225 vsys-SPEC := vsys.spec
226 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
227 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
232 # vsyssh : installed in slivers
234 vsyssh-MODULES := vsys
235 vsyssh-SPEC := vsyssh.spec
236 IN_SLICEIMAGE += vsyssh
242 vsys-scripts-MODULES := vsys-scripts
243 vsys-scripts-SPEC := root-context/vsys-scripts.spec
244 IN_NODEIMAGE += vsys-scripts
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 # for OMF resource controller as a gem : rvm-ruby has right version of ruby and related gem stuff
375 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f18 f20)"
376 rvm-ruby-MODULES := rvm-ruby
377 rvm-ruby-SPEC := rpm/rvm-ruby.spec
378 rvm-ruby-STOCK-DEVEL-RPMS := chrpath libyaml-devel libffi-devel libxslt-devel
379 # Since Oct 22. 2013, f18 has a new release of openssl that ruby is not too happy to build against
380 # turning this off for now, Christoph Dwertmann to monitor the status of this bug/incompatibility upstream
385 # OML measurement library
388 oml-STOCK-DEVEL-RPMS += sqlite-devel
389 oml-SPEC := liboml.spec
395 bootcd-MODULES := bootcd build
396 bootcd-SPEC := bootcd.spec
397 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
398 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
399 bootcd-RPMDATE := yes
406 sliceimage-MODULES := sliceimage build
407 sliceimage-SPEC := sliceimage.spec
408 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
409 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
410 sliceimage-RPMDATE := yes
412 IN_NODEIMAGE += sliceimage
415 # lxc-specific sliceimage initialization
417 lxc-sliceimage-MODULES := sliceimage
418 lxc-sliceimage-SPEC := lxc-sliceimage.spec
419 lxc-sliceimage-RPMDATE := yes
420 ALL += lxc-sliceimage
421 IN_NODEIMAGE += lxc-sliceimage
426 nodeimage-MODULES := nodeimage build
427 nodeimage-SPEC := nodeimage.spec
428 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
429 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
430 nodeimage-RPMDATE := yes
432 IN_MYPLC += nodeimage
437 # all rpms resulting from packages marked as being in nodeimage and sliceimage
438 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
439 # replace space with +++ (specvars cannot deal with spaces)
441 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
443 noderepo-MODULES := nodeimage
444 noderepo-SPEC := noderepo.spec
445 # package requires all embedded packages
446 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
447 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
448 #export rpm list to the specfile
449 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
450 noderepo-RPMDATE := yes
457 # all rpms resulting from packages marked as being in vserver
458 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
459 # replace space with +++ (specvars cannot deal with spaces)
461 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
463 slicerepo-MODULES := nodeimage
464 slicerepo-SPEC := slicerepo.spec
465 # package requires all embedded packages
466 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
467 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
468 #export rpm list to the specfile
469 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
470 slicerepo-RPMDATE := yes
474 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
476 myplc-MODULES := myplc
477 myplc-SPEC := myplc.spec
478 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
481 # myplc-docs only contains docs for PLCAPI and NMAPI, but
482 # we still need to pull MyPLC, as it is where the specfile lies,
483 # together with the utility script docbook2drupal.sh
484 myplc-docs-MODULES := myplc plcapi nodemanager monitor
485 myplc-docs-SPEC := myplc-docs.spec
488 # using some other name than myplc-release, as this is a make target already
489 release-MODULES := myplc
490 release-SPEC := myplc-release.spec
491 release-RPMDATE := yes
494 ##############################
495 # sfa requires python-2.7
497 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
501 ifeq "$(build_sfa)" "true"
503 # sfa - Slice Facility Architecture
509 #sface-MODULES := sface
510 #sface-SPEC := sface.spec
514 ##############################
515 # don't build these by default, we have separate builds for that
516 myslice-MODULES := myslice
517 myslice-SPEC := myslice.spec
518 myslice-STOCK-DEVEL-RPMS := python-django
519 myslice-STOCK-DEVEL-DEBS := python-django python-django-south
522 manifold-MODULES := manifold
523 manifold-SPEC := manifold.spec