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 # starting on 2013-03-05 when f18 has moved to kernel 3.8 this module won't build anymore
42 #ifeq "$(DISTRONAME)" "f16"
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 #################### using our own libvirt on all distros for now
140 #ifeq "$(DISTRONAME)" "f16"
144 ifeq "$(local_libvirt)" "true"
148 libvirt-MODULES := libvirt
149 libvirt-SPEC := libvirt.spec
150 libvirt-BUILD-FROM-SRPM := yes
151 # The --without options are breaking spec2make : hard-wired in the specfile instead
152 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds gettext gettext-devel libtasn1-devel gnutls-devel
153 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
154 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
155 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
156 ifeq "$(DISTRONAME)" "f16"
157 libvirt-STOCK-DEVEL-RPMS += libnl-devel libudev-devel
159 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
160 ifeq "$(DISTRONAME)" "f18"
161 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
162 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-ipv6
164 libvirt-RPMFLAGS := --define 'packager PlanetLab'
166 IN_NODEREPO += libvirt
167 IN_NODEIMAGE += libvirt
171 # DistributedRateLimiting
173 #DistributedRateLimiting-MODULES := DistributedRateLimiting
174 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
175 #ALL += DistributedRateLimiting
176 #IN_NODEREPO += DistributedRateLimiting
181 pf2slice-MODULES := pf2slice
182 pf2slice-SPEC := pf2slice.spec
186 ## PlanetLab Mom: Cleans up your mess
189 #mom-SPEC := pl_mom.spec
196 # openvswitch-MODULES := openvswitch
197 # openvswitch-SPEC := openvswitch.spec
198 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
199 # IN_NODEIMAGE += openvswitch
200 # # build only on f14 as f16 has this natively
201 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
209 vsys-SPEC := vsys.spec
210 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
211 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
216 # vsyssh : installed in slivers
218 vsyssh-MODULES := vsys
219 vsyssh-SPEC := vsyssh.spec
220 IN_SLICEIMAGE += vsyssh
226 vsys-scripts-MODULES := vsys-scripts
227 vsys-scripts-SPEC := root-context/vsys-scripts.spec
228 IN_NODEIMAGE += vsys-scripts
234 bind_public-MODULES := bind_public
235 bind_public-SPEC := bind_public.spec
236 IN_SLICEIMAGE += bind_public
242 sliver-openvswitch-MODULES := sliver-openvswitch
243 sliver-openvswitch-SPEC := sliver-openvswitch.spec
244 IN_SLICEIMAGE += sliver-openvswitch
245 ALL += sliver-openvswitch
250 plcapi-MODULES := plcapi
251 plcapi-SPEC := plcapi.spec
258 # this was dropped in fedora18, at which point the intention has been to
259 # move to wsgi instead; however our using wsgi currently looks unstable
260 # so you have the option to install this manually, in which case myplc will
261 # swap to using mod_python - see plc.d/httpd
262 ifeq "$(DISTRO)" "Fedora"
263 ifneq "$(DISTRONAME)" "f16"
264 mod_python-MODULES := mod_python
265 mod_python-SPEC := mod_python.spec
266 mod_python-STOCK-DEVEL-RPMS := httpd-devel
267 mod_python-BUILD-FROM-SRPM := yes
275 drupal-MODULES := drupal
276 drupal-SPEC := drupal.spec
277 drupal-BUILD-FROM-SRPM := yes
282 # use the plewww module instead
284 plewww-MODULES := plewww
285 plewww-SPEC := plewww.spec
290 # www-register-wizard
292 www-register-wizard-MODULES := www-register-wizard
293 www-register-wizard-SPEC := www-register-wizard.spec
294 ALL += www-register-wizard
295 IN_MYPLC += www-register-wizard
300 pcucontrol-MODULES := pcucontrol
301 pcucontrol-SPEC := pcucontrol.spec
307 #monitor-MODULES := monitor
308 #monitor-SPEC := Monitor.spec
309 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
311 #IN_NODEIMAGE += monitor
316 plcrt-MODULES := PLCRT
317 plcrt-SPEC := plcrt.spec
320 # f12 has 0.9-1 already
321 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
325 pyopenssl-MODULES := pyopenssl
326 pyopenssl-SPEC := pyOpenSSL.spec
327 pyopenssl-BUILD-FROM-SRPM := yes
334 pyaspects-MODULES := pyaspects
335 pyaspects-SPEC := pyaspects.spec
336 pyaspects-BUILD-FROM-SRPM := yes
342 nodeconfig-MODULES := nodeconfig
343 nodeconfig-SPEC := nodeconfig.spec
345 IN_MYPLC += nodeconfig
350 bootmanager-MODULES := bootmanager
351 bootmanager-SPEC := bootmanager.spec
353 IN_MYPLC += bootmanager
356 # pypcilib : used in bootcd
358 pypcilib-MODULES := pypcilib
359 pypcilib-SPEC := pypcilib.spec
361 IN_BOOTCD += pypcilib
366 pyplnet-MODULES := pyplnet
367 pyplnet-SPEC := pyplnet.spec
369 IN_NODEIMAGE += pyplnet
374 # for OMF resource controller as a gem : rvm-ruby has right version of ruby and related gem stuff
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
384 # OML measurement library
387 oml-STOCK-DEVEL-RPMS += sqlite-devel
388 oml-SPEC := liboml.spec
394 bootcd-MODULES := bootcd build
395 bootcd-SPEC := bootcd.spec
396 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
397 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
398 bootcd-RPMDATE := yes
405 sliceimage-MODULES := sliceimage build
406 sliceimage-SPEC := sliceimage.spec
407 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
408 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
409 sliceimage-RPMDATE := yes
411 IN_NODEIMAGE += sliceimage
414 # lxc-specific sliceimage initialization
416 lxc-sliceimage-MODULES := sliceimage
417 lxc-sliceimage-SPEC := lxc-sliceimage.spec
418 lxc-sliceimage-RPMDATE := yes
419 ALL += lxc-sliceimage
420 IN_NODEIMAGE += lxc-sliceimage
425 nodeimage-MODULES := nodeimage build
426 nodeimage-SPEC := nodeimage.spec
427 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
428 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
429 nodeimage-RPMDATE := yes
431 IN_MYPLC += nodeimage
436 # all rpms resulting from packages marked as being in nodeimage and sliceimage
437 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
438 # replace space with +++ (specvars cannot deal with spaces)
440 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
442 noderepo-MODULES := nodeimage
443 noderepo-SPEC := noderepo.spec
444 # package requires all embedded packages
445 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
446 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
447 #export rpm list to the specfile
448 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
449 noderepo-RPMDATE := yes
456 # all rpms resulting from packages marked as being in vserver
457 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
458 # replace space with +++ (specvars cannot deal with spaces)
460 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
462 slicerepo-MODULES := nodeimage
463 slicerepo-SPEC := slicerepo.spec
464 # package requires all embedded packages
465 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
466 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
467 #export rpm list to the specfile
468 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
469 slicerepo-RPMDATE := yes
473 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
475 myplc-MODULES := myplc
476 myplc-SPEC := myplc.spec
477 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
480 # myplc-docs only contains docs for PLCAPI and NMAPI, but
481 # we still need to pull MyPLC, as it is where the specfile lies,
482 # together with the utility script docbook2drupal.sh
483 myplc-docs-MODULES := myplc plcapi nodemanager monitor
484 myplc-docs-SPEC := myplc-docs.spec
487 # using some other name than myplc-release, as this is a make target already
488 release-MODULES := myplc
489 release-SPEC := myplc-release.spec
490 release-RPMDATE := yes
493 ##############################
494 # sfa requires python-2.7
496 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
500 ifeq "$(build_sfa)" "true"
502 # sfa - Slice Facility Architecture
508 sface-MODULES := sface
509 sface-SPEC := sface.spec
513 ##############################
514 # don't build these by default, we have separate builds for that
515 myslice-MODULES := myslice
516 myslice-SPEC := myslice.spec
517 myslice-STOCK-DEVEL-RPMS := python-django
518 myslice-STOCK-DEVEL-DEBS := python-django python-django-south
521 manifold-MODULES := manifold
522 manifold-SPEC := manifold.spec