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
12 # transforward: root context module for transparent port forwarding
14 transforward-MODULES := transforward
15 transforward-SPEC := transforward.spec
17 IN_NODEIMAGE += transforward
20 # procprotect: root context module for protecting against weaknesses in /proc
22 procprotect-MODULES := procprotect
23 procprotect-SPEC := procprotect.spec
25 IN_NODEIMAGE += procprotect
28 # ipfw: root context module, and slice companion
30 ipfwroot-MODULES := ipfw
31 ipfwroot-SPEC := planetlab/ipfwroot.spec
33 IN_NODEIMAGE += ipfwroot
35 ipfwslice-MODULES := ipfw
36 ipfwslice-SPEC := planetlab/ipfwslice.spec
42 nodeupdate-MODULES := nodeupdate
43 nodeupdate-SPEC := NodeUpdate.spec
45 IN_NODEIMAGE += nodeupdate
50 ipod-MODULES := PingOfDeath
51 ipod-SPEC := ipod.spec
58 plnode-utils-MODULES := plnode-utils
59 plnode-utils-SPEC := plnode-utils.spec
61 IN_NODEIMAGE += plnode-utils
66 nodemanager-lib-MODULES := nodemanager
67 nodemanager-lib-SPEC := nodemanager-lib.spec
68 ALL += nodemanager-lib
69 IN_NODEIMAGE += nodemanager-lib
71 nodemanager-lxc-MODULES := nodemanager
72 nodemanager-lxc-SPEC := nodemanager-lxc.spec
73 ALL += nodemanager-lxc
74 IN_NODEIMAGE += nodemanager-lxc
79 sshd-MODULES := pl_sshd
80 sshd-SPEC := pl_sshd.spec
85 # codemux: Port 80 demux
87 codemux-MODULES := codemux
88 codemux-SPEC := codemux.spec
90 IN_NODEIMAGE += codemux
95 fprobe-ulog-MODULES := fprobe-ulog
96 fprobe-ulog-SPEC := fprobe-ulog.spec
98 IN_NODEIMAGE += fprobe-ulog
100 #################### libvirt on f16 is too old, sounds like f17 has something fine
102 ifeq "$(DISTRONAME)" "f16"
106 ifeq "$(local_libvirt)" "true"
110 libvirt-MODULES := libvirt
111 libvirt-SPEC := libvirt.spec
112 libvirt-BUILD-FROM-SRPM := yes
113 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
114 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
115 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
116 libvirt-DEVEL-RPMS += libudev-devel
117 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
118 --without storage-fs --without storage-lvm \
119 --without polkit --without sasl --without audit --with capng --with udev \
120 --without netcf --without avahi --without sanlock \
121 --without xen --without qemu --without hyperv --without phyp --without esx \
123 --define 'packager PlanetLab'
125 IN_NODEREPO += libvirt
126 IN_NODEIMAGE += libvirt
130 # DistributedRateLimiting
132 #DistributedRateLimiting-MODULES := DistributedRateLimiting
133 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
134 #ALL += DistributedRateLimiting
135 #IN_NODEREPO += DistributedRateLimiting
140 pf2slice-MODULES := pf2slice
141 pf2slice-SPEC := pf2slice.spec
145 ## PlanetLab Mom: Cleans up your mess
148 #mom-SPEC := pl_mom.spec
153 # inotify-tools - local import
154 # rebuild this on centos5 (not found) - see yumexclude
156 local_inotify_tools=false
157 ifeq "$(DISTRONAME)" "centos5"
158 local_inotify_tools=true
161 ifeq "$(DISTRONAME)" "sl6"
162 local_inotify_tools=true
165 ifeq "$(local_inotify_tools)" "true"
166 inotify-tools-MODULES := inotify-tools
167 inotify-tools-SPEC := inotify-tools.spec
168 inotify-tools-BUILD-FROM-SRPM := yes
169 IN_NODEIMAGE += inotify-tools
176 # openvswitch-MODULES := openvswitch
177 # openvswitch-SPEC := openvswitch.spec
178 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
179 # IN_NODEIMAGE += openvswitch
180 # # build only on f14 as f16 has this natively
181 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
189 vsys-SPEC := vsys.spec
190 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
191 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
192 ifeq "$(local_inotify_tools)" "true"
193 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
199 # vsyssh : installed in slivers
201 vsyssh-MODULES := vsys
202 vsyssh-SPEC := vsyssh.spec
203 IN_SLICEIMAGE += vsyssh
209 vsys-scripts-MODULES := vsys-scripts
210 vsys-scripts-SPEC := vsys-scripts.spec
211 IN_NODEIMAGE += vsys-scripts
217 bind_public-MODULES := bind_public
218 bind_public-SPEC := bind_public.spec
219 IN_SLICEIMAGE += bind_public
225 plcapi-MODULES := plcapi
226 plcapi-SPEC := PLCAPI.spec
233 drupal-MODULES := drupal
234 drupal-SPEC := drupal.spec
235 drupal-BUILD-FROM-SRPM := yes
240 # use the plewww module instead
242 plewww-MODULES := plewww
243 plewww-SPEC := plewww.spec
248 # www-register-wizard
250 www-register-wizard-MODULES := www-register-wizard
251 www-register-wizard-SPEC := www-register-wizard.spec
252 ALL += www-register-wizard
253 IN_MYPLC += www-register-wizard
258 pcucontrol-MODULES := pcucontrol
259 pcucontrol-SPEC := pcucontrol.spec
265 #monitor-MODULES := monitor
266 #monitor-SPEC := Monitor.spec
267 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
269 #IN_NODEIMAGE += monitor
274 plcrt-MODULES := PLCRT
275 plcrt-SPEC := plcrt.spec
278 # f12 has 0.9-1 already
279 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
283 pyopenssl-MODULES := pyopenssl
284 pyopenssl-SPEC := pyOpenSSL.spec
285 pyopenssl-BUILD-FROM-SRPM := yes
292 pyaspects-MODULES := pyaspects
293 pyaspects-SPEC := pyaspects.spec
294 pyaspects-BUILD-FROM-SRPM := yes
297 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
298 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
300 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
304 ifeq "$(build_sfa)" "true"
306 # sfa - Slice Facility Architecture
312 sface-MODULES := sface
313 sface-SPEC := sface.spec
320 nodeconfig-MODULES := nodeconfig
321 nodeconfig-SPEC := nodeconfig.spec
323 IN_MYPLC += nodeconfig
328 bootmanager-MODULES := bootmanager
329 bootmanager-SPEC := bootmanager.spec
331 IN_MYPLC += bootmanager
334 # pypcilib : used in bootcd
336 pypcilib-MODULES := pypcilib
337 pypcilib-SPEC := pypcilib.spec
339 IN_BOOTCD += pypcilib
344 pyplnet-MODULES := pyplnet
345 pyplnet-SPEC := pyplnet.spec
347 IN_NODEIMAGE += pyplnet
352 # OMF resource controller
354 omf-resctl-MODULES := omf
355 omf-resctl-SPEC := omf-resctl.spec
357 IN_SLICEIMAGE += omf-resctl
362 omf-expctl-MODULES := omf
363 omf-expctl-SPEC := omf-expctl.spec
369 bootcd-MODULES := bootcd build
370 bootcd-SPEC := bootcd.spec
371 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
372 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
373 bootcd-RPMDATE := yes
380 sliceimage-MODULES := sliceimage build
381 sliceimage-SPEC := sliceimage.spec
382 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
383 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
384 sliceimage-RPMDATE := yes
386 IN_NODEIMAGE += sliceimage
389 # lxc-specific sliceimage initialization
391 lxc-sliceimage-MODULES := sliceimage
392 lxc-sliceimage-SPEC := lxc-sliceimage.spec
393 lxc-sliceimage-RPMDATE := yes
394 ALL += lxc-sliceimage
395 IN_NODEIMAGE += lxc-sliceimage
400 nodeimage-MODULES := nodeimage build
401 nodeimage-SPEC := nodeimage.spec
402 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
403 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
404 nodeimage-RPMDATE := yes
406 IN_MYPLC += nodeimage
411 # all rpms resulting from packages marked as being in nodeimage and sliceimage
412 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
413 # replace space with +++ (specvars cannot deal with spaces)
415 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
417 noderepo-MODULES := nodeimage
418 noderepo-SPEC := noderepo.spec
419 # package requires all embedded packages
420 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
421 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
422 #export rpm list to the specfile
423 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
424 noderepo-RPMDATE := yes
431 # all rpms resulting from packages marked as being in vserver
432 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
433 # replace space with +++ (specvars cannot deal with spaces)
435 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
437 slicerepo-MODULES := nodeimage
438 slicerepo-SPEC := slicerepo.spec
439 # package requires all embedded packages
440 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
441 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
442 #export rpm list to the specfile
443 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
444 slicerepo-RPMDATE := yes
448 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
450 myplc-MODULES := myplc
451 myplc-SPEC := myplc.spec
452 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
455 # myplc-docs only contains docs for PLCAPI and NMAPI, but
456 # we still need to pull MyPLC, as it is where the specfile lies,
457 # together with the utility script docbook2drupal.sh
458 myplc-docs-MODULES := myplc plcapi nodemanager monitor
459 myplc-docs-SPEC := myplc-docs.spec
462 # using some other name than myplc-release, as this is a make target already
463 release-MODULES := myplc
464 release-SPEC := myplc-release.spec
465 release-RPMDATE := yes