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 ahip with fedora16's kernel rpm
14 # lxctools: scripts for entering containers
16 lxctools-MODULES := lxctools
17 lxctools-SPEC := lxctools.spec
19 IN_NODEIMAGE += lxctools
22 # lxcsu: root context module for entering namespaces
24 lxcsu-MODULES := lxcsu
25 lxcsu-SPEC := lxcsu.spec
31 # transforward: root context module for transparent port forwarding
33 transforward-MODULES := transforward
34 transforward-SPEC := transforward.spec
36 IN_NODEIMAGE += transforward
39 # procprotect: root context module for protecting against weaknesses in /proc
41 procprotect-MODULES := procprotect
42 procprotect-SPEC := procprotect.spec
44 IN_NODEIMAGE += procprotect
47 # ipfw: root context module, and slice companion
49 # starting on 2013-03-05 when f18 has moved to kernel 3.8 this module won't build anymore
50 #ifeq "$(DISTRONAME)" "f16"
51 ipfwroot-MODULES := ipfw
52 ipfwroot-SPEC := planetlab/ipfwroot.spec
54 IN_NODEIMAGE += ipfwroot
56 ipfwslice-MODULES := ipfw
57 ipfwslice-SPEC := planetlab/ipfwslice.spec
64 nodeupdate-MODULES := nodeupdate
65 nodeupdate-SPEC := NodeUpdate.spec
67 IN_NODEIMAGE += nodeupdate
72 ipod-MODULES := PingOfDeath
73 ipod-SPEC := ipod.spec
80 plnode-utils-MODULES := plnode-utils
81 plnode-utils-SPEC := plnode-utils-lxc.spec
83 IN_NODEIMAGE += plnode-utils
88 nodemanager-lib-MODULES := nodemanager
89 nodemanager-lib-SPEC := nodemanager-lib.spec
90 ALL += nodemanager-lib
91 IN_NODEIMAGE += nodemanager-lib
93 nodemanager-lxc-MODULES := nodemanager
94 nodemanager-lxc-SPEC := nodemanager-lxc.spec
95 ALL += nodemanager-lxc
96 IN_NODEIMAGE += nodemanager-lxc
101 sshd-MODULES := pl_sshd
102 sshd-SPEC := pl_sshd.spec
107 # codemux: Port 80 demux
109 codemux-MODULES := codemux
110 codemux-SPEC := codemux.spec
112 IN_NODEIMAGE += codemux
117 fprobe-ulog-MODULES := fprobe-ulog
118 fprobe-ulog-SPEC := fprobe-ulog.spec
120 IN_NODEIMAGE += fprobe-ulog
122 #################### using our own libvirt on all distros for now
124 #ifeq "$(DISTRONAME)" "f16"
128 ifeq "$(local_libvirt)" "true"
132 libvirt-MODULES := libvirt
133 libvirt-SPEC := libvirt.spec
134 libvirt-BUILD-FROM-SRPM := yes
135 # The --without options are breaking spec2make : hard-wired in the specfile instead
136 libvirt-DEVEL-RPMS += xhtml1-dtds gettext gettext-devel libtasn1-devel gnutls-devel
137 libvirt-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
138 libvirt-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
139 libvirt-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
140 ifeq "$(DISTRONAME)" "f16"
141 libvirt-DEVEL-RPMS += libnl-devel libudev-devel
143 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
144 ifeq "$(DISTRONAME)" "f18"
145 libvirt-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
146 libvirt-DEVEL-RPMS += systemd-devel libnl3-devel iptables-ipv6
148 libvirt-RPMFLAGS := --define 'packager PlanetLab'
150 IN_NODEREPO += libvirt
151 IN_NODEIMAGE += libvirt
155 # DistributedRateLimiting
157 #DistributedRateLimiting-MODULES := DistributedRateLimiting
158 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
159 #ALL += DistributedRateLimiting
160 #IN_NODEREPO += DistributedRateLimiting
165 pf2slice-MODULES := pf2slice
166 pf2slice-SPEC := pf2slice.spec
170 ## PlanetLab Mom: Cleans up your mess
173 #mom-SPEC := pl_mom.spec
178 # inotify-tools - local import
179 # rebuild this on centos5 (not found) - see yumexclude
181 local_inotify_tools=false
182 ifeq "$(DISTRONAME)" "centos5"
183 local_inotify_tools=true
186 ifeq "$(DISTRONAME)" "sl6"
187 local_inotify_tools=true
190 ifeq "$(local_inotify_tools)" "true"
191 inotify-tools-MODULES := inotify-tools
192 inotify-tools-SPEC := inotify-tools.spec
193 inotify-tools-BUILD-FROM-SRPM := yes
194 IN_NODEIMAGE += inotify-tools
201 # openvswitch-MODULES := openvswitch
202 # openvswitch-SPEC := openvswitch.spec
203 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
204 # IN_NODEIMAGE += openvswitch
205 # # build only on f14 as f16 has this natively
206 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
214 vsys-SPEC := vsys.spec
215 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
216 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
217 ifeq "$(local_inotify_tools)" "true"
218 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
224 # vsyssh : installed in slivers
226 vsyssh-MODULES := vsys
227 vsyssh-SPEC := vsyssh.spec
228 IN_SLICEIMAGE += vsyssh
234 vsys-scripts-MODULES := vsys-scripts
235 vsys-scripts-SPEC := root-context/vsys-scripts.spec
236 IN_NODEIMAGE += vsys-scripts
242 bind_public-MODULES := bind_public
243 bind_public-SPEC := bind_public.spec
244 IN_SLICEIMAGE += bind_public
250 sliver-openvswitch-MODULES := sliver-openvswitch
251 sliver-openvswitch-SPEC := sliver-openvswitch.spec
252 IN_SLICEIMAGE += sliver-openvswitch
253 ALL += sliver-openvswitch
258 plcapi-MODULES := plcapi
259 plcapi-SPEC := plcapi.spec
266 # this was dropped in fedora18, at which point the intention has been to
267 # move to wsgi instead; however our using wsgi currently looks unstable
268 # so you have the option to install this manually, in which case myplc will
269 # swap to using mod_python - see plc.d/httpd
270 ifeq "$(DISTRO)" "Fedora"
271 ifneq "$(DISTRONAME)" "f16"
272 mod_python-MODULES := mod_python
273 mod_python-SPEC := mod_python.spec
274 mod_python-BUILD-FROM-SRPM := yes
282 drupal-MODULES := drupal
283 drupal-SPEC := drupal.spec
284 drupal-BUILD-FROM-SRPM := yes
289 # use the plewww module instead
291 plewww-MODULES := plewww
292 plewww-SPEC := plewww.spec
297 # www-register-wizard
299 www-register-wizard-MODULES := www-register-wizard
300 www-register-wizard-SPEC := www-register-wizard.spec
301 ALL += www-register-wizard
302 IN_MYPLC += www-register-wizard
307 pcucontrol-MODULES := pcucontrol
308 pcucontrol-SPEC := pcucontrol.spec
314 #monitor-MODULES := monitor
315 #monitor-SPEC := Monitor.spec
316 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
318 #IN_NODEIMAGE += monitor
323 plcrt-MODULES := PLCRT
324 plcrt-SPEC := plcrt.spec
327 # f12 has 0.9-1 already
328 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
332 pyopenssl-MODULES := pyopenssl
333 pyopenssl-SPEC := pyOpenSSL.spec
334 pyopenssl-BUILD-FROM-SRPM := yes
341 pyaspects-MODULES := pyaspects
342 pyaspects-SPEC := pyaspects.spec
343 pyaspects-BUILD-FROM-SRPM := yes
349 nodeconfig-MODULES := nodeconfig
350 nodeconfig-SPEC := nodeconfig.spec
352 IN_MYPLC += nodeconfig
357 bootmanager-MODULES := bootmanager
358 bootmanager-SPEC := bootmanager.spec
360 IN_MYPLC += bootmanager
363 # pypcilib : used in bootcd
365 pypcilib-MODULES := pypcilib
366 pypcilib-SPEC := pypcilib.spec
368 IN_BOOTCD += pypcilib
373 pyplnet-MODULES := pyplnet
374 pyplnet-SPEC := pyplnet.spec
376 IN_NODEIMAGE += pyplnet
381 # OMF resource controller
383 omf-resctl-MODULES := omf
384 omf-resctl-SPEC := omf-resctl.spec
386 IN_SLICEIMAGE += omf-resctl
391 omf-expctl-MODULES := omf
392 omf-expctl-SPEC := omf-expctl.spec
398 bootcd-MODULES := bootcd build
399 bootcd-SPEC := bootcd.spec
400 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
401 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
402 bootcd-RPMDATE := yes
409 sliceimage-MODULES := sliceimage build
410 sliceimage-SPEC := sliceimage.spec
411 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
412 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
413 sliceimage-RPMDATE := yes
415 IN_NODEIMAGE += sliceimage
418 # lxc-specific sliceimage initialization
420 lxc-sliceimage-MODULES := sliceimage
421 lxc-sliceimage-SPEC := lxc-sliceimage.spec
422 lxc-sliceimage-RPMDATE := yes
423 ALL += lxc-sliceimage
424 IN_NODEIMAGE += lxc-sliceimage
429 nodeimage-MODULES := nodeimage build
430 nodeimage-SPEC := nodeimage.spec
431 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
432 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
433 nodeimage-RPMDATE := yes
435 IN_MYPLC += nodeimage
440 # all rpms resulting from packages marked as being in nodeimage and sliceimage
441 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
442 # replace space with +++ (specvars cannot deal with spaces)
444 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
446 noderepo-MODULES := nodeimage
447 noderepo-SPEC := noderepo.spec
448 # package requires all embedded packages
449 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
450 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
451 #export rpm list to the specfile
452 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
453 noderepo-RPMDATE := yes
460 # all rpms resulting from packages marked as being in vserver
461 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
462 # replace space with +++ (specvars cannot deal with spaces)
464 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
466 slicerepo-MODULES := nodeimage
467 slicerepo-SPEC := slicerepo.spec
468 # package requires all embedded packages
469 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
470 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
471 #export rpm list to the specfile
472 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
473 slicerepo-RPMDATE := yes
477 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
479 myplc-MODULES := myplc
480 myplc-SPEC := myplc.spec
481 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
484 # myplc-docs only contains docs for PLCAPI and NMAPI, but
485 # we still need to pull MyPLC, as it is where the specfile lies,
486 # together with the utility script docbook2drupal.sh
487 myplc-docs-MODULES := myplc plcapi nodemanager monitor
488 myplc-docs-SPEC := myplc-docs.spec
491 # using some other name than myplc-release, as this is a make target already
492 release-MODULES := myplc
493 release-SPEC := myplc-release.spec
494 release-RPMDATE := yes
497 ##############################
498 # sfa requires python-2.7
500 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
504 ifeq "$(build_sfa)" "true"
506 # sfa - Slice Facility Architecture
512 sface-MODULES := sface
513 sface-SPEC := sface.spec
517 ##############################
518 # don't build these by default, we have separate builds for that
519 myslice-MODULES := myslice
520 myslice-SPEC := myslice.spec
523 manifold-MODULES := manifold
524 manifold-SPEC := manifold.spec