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 ipfwroot-MODULES := ipfw
50 ipfwroot-SPEC := planetlab/ipfwroot.spec
52 IN_NODEIMAGE += ipfwroot
54 ipfwslice-MODULES := ipfw
55 ipfwslice-SPEC := planetlab/ipfwslice.spec
61 nodeupdate-MODULES := nodeupdate
62 nodeupdate-SPEC := NodeUpdate.spec
64 IN_NODEIMAGE += nodeupdate
69 ipod-MODULES := PingOfDeath
70 ipod-SPEC := ipod.spec
77 plnode-utils-MODULES := plnode-utils
78 plnode-utils-SPEC := plnode-utils-lxc.spec
80 IN_NODEIMAGE += plnode-utils
85 nodemanager-lib-MODULES := nodemanager
86 nodemanager-lib-SPEC := nodemanager-lib.spec
87 ALL += nodemanager-lib
88 IN_NODEIMAGE += nodemanager-lib
90 nodemanager-lxc-MODULES := nodemanager
91 nodemanager-lxc-SPEC := nodemanager-lxc.spec
92 ALL += nodemanager-lxc
93 IN_NODEIMAGE += nodemanager-lxc
98 sshd-MODULES := pl_sshd
99 sshd-SPEC := pl_sshd.spec
104 # codemux: Port 80 demux
106 codemux-MODULES := codemux
107 codemux-SPEC := codemux.spec
109 IN_NODEIMAGE += codemux
114 fprobe-ulog-MODULES := fprobe-ulog
115 fprobe-ulog-SPEC := fprobe-ulog.spec
117 IN_NODEIMAGE += fprobe-ulog
119 #################### libvirt on f16 is too old, sounds like f17 has something fine
121 ifeq "$(DISTRONAME)" "f16"
125 ifeq "$(local_libvirt)" "true"
129 libvirt-MODULES := libvirt
130 libvirt-SPEC := libvirt.spec
131 libvirt-BUILD-FROM-SRPM := yes
132 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
133 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
134 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
135 libvirt-DEVEL-RPMS += libudev-devel libpcap-devel libnl-devel ebtables scrub
136 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
137 --without storage-fs --without storage-lvm \
138 --without polkit --without sasl --without audit --with capng --with udev \
139 --without netcf --without avahi --without sanlock \
140 --without xen --without qemu --without hyperv --without phyp --without esx \
142 --define 'packager PlanetLab'
144 IN_NODEREPO += libvirt
145 IN_NODEIMAGE += libvirt
149 # DistributedRateLimiting
151 #DistributedRateLimiting-MODULES := DistributedRateLimiting
152 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
153 #ALL += DistributedRateLimiting
154 #IN_NODEREPO += DistributedRateLimiting
159 pf2slice-MODULES := pf2slice
160 pf2slice-SPEC := pf2slice.spec
164 ## PlanetLab Mom: Cleans up your mess
167 #mom-SPEC := pl_mom.spec
172 # inotify-tools - local import
173 # rebuild this on centos5 (not found) - see yumexclude
175 local_inotify_tools=false
176 ifeq "$(DISTRONAME)" "centos5"
177 local_inotify_tools=true
180 ifeq "$(DISTRONAME)" "sl6"
181 local_inotify_tools=true
184 ifeq "$(local_inotify_tools)" "true"
185 inotify-tools-MODULES := inotify-tools
186 inotify-tools-SPEC := inotify-tools.spec
187 inotify-tools-BUILD-FROM-SRPM := yes
188 IN_NODEIMAGE += inotify-tools
195 # openvswitch-MODULES := openvswitch
196 # openvswitch-SPEC := openvswitch.spec
197 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
198 # IN_NODEIMAGE += openvswitch
199 # # build only on f14 as f16 has this natively
200 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
208 vsys-SPEC := vsys.spec
209 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
210 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
211 ifeq "$(local_inotify_tools)" "true"
212 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
218 # vsyssh : installed in slivers
220 vsyssh-MODULES := vsys
221 vsyssh-SPEC := vsyssh.spec
222 IN_SLICEIMAGE += vsyssh
228 vsys-scripts-MODULES := vsys-scripts
229 vsys-scripts-SPEC := root-context/vsys-scripts.spec
230 IN_NODEIMAGE += vsys-scripts
236 bind_public-MODULES := bind_public
237 bind_public-SPEC := bind_public.spec
238 IN_SLICEIMAGE += bind_public
244 plcapi-MODULES := plcapi
245 plcapi-SPEC := PLCAPI.spec
252 drupal-MODULES := drupal
253 drupal-SPEC := drupal.spec
254 drupal-BUILD-FROM-SRPM := yes
259 # use the plewww module instead
261 plewww-MODULES := plewww
262 plewww-SPEC := plewww.spec
267 # www-register-wizard
269 www-register-wizard-MODULES := www-register-wizard
270 www-register-wizard-SPEC := www-register-wizard.spec
271 ALL += www-register-wizard
272 IN_MYPLC += www-register-wizard
277 pcucontrol-MODULES := pcucontrol
278 pcucontrol-SPEC := pcucontrol.spec
284 #monitor-MODULES := monitor
285 #monitor-SPEC := Monitor.spec
286 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
288 #IN_NODEIMAGE += monitor
293 plcrt-MODULES := PLCRT
294 plcrt-SPEC := plcrt.spec
297 # f12 has 0.9-1 already
298 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
302 pyopenssl-MODULES := pyopenssl
303 pyopenssl-SPEC := pyOpenSSL.spec
304 pyopenssl-BUILD-FROM-SRPM := yes
311 pyaspects-MODULES := pyaspects
312 pyaspects-SPEC := pyaspects.spec
313 pyaspects-BUILD-FROM-SRPM := yes
316 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
317 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
319 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
323 ifeq "$(build_sfa)" "true"
325 # sfa - Slice Facility Architecture
331 sface-MODULES := sface
332 sface-SPEC := sface.spec
339 nodeconfig-MODULES := nodeconfig
340 nodeconfig-SPEC := nodeconfig.spec
342 IN_MYPLC += nodeconfig
347 bootmanager-MODULES := bootmanager
348 bootmanager-SPEC := bootmanager.spec
350 IN_MYPLC += bootmanager
353 # pypcilib : used in bootcd
355 pypcilib-MODULES := pypcilib
356 pypcilib-SPEC := pypcilib.spec
358 IN_BOOTCD += pypcilib
363 pyplnet-MODULES := pyplnet
364 pyplnet-SPEC := pyplnet.spec
366 IN_NODEIMAGE += pyplnet
371 # OMF resource controller
373 omf-resctl-MODULES := omf
374 omf-resctl-SPEC := omf-resctl.spec
376 IN_SLICEIMAGE += omf-resctl
381 omf-expctl-MODULES := omf
382 omf-expctl-SPEC := omf-expctl.spec
388 bootcd-MODULES := bootcd build
389 bootcd-SPEC := bootcd.spec
390 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
391 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
392 bootcd-RPMDATE := yes
399 sliceimage-MODULES := sliceimage build
400 sliceimage-SPEC := sliceimage.spec
401 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
402 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
403 sliceimage-RPMDATE := yes
405 IN_NODEIMAGE += sliceimage
408 # lxc-specific sliceimage initialization
410 lxc-sliceimage-MODULES := sliceimage
411 lxc-sliceimage-SPEC := lxc-sliceimage.spec
412 lxc-sliceimage-RPMDATE := yes
413 ALL += lxc-sliceimage
414 IN_NODEIMAGE += lxc-sliceimage
419 nodeimage-MODULES := nodeimage build
420 nodeimage-SPEC := nodeimage.spec
421 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
422 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
423 nodeimage-RPMDATE := yes
425 IN_MYPLC += nodeimage
430 # all rpms resulting from packages marked as being in nodeimage and sliceimage
431 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
432 # replace space with +++ (specvars cannot deal with spaces)
434 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
436 noderepo-MODULES := nodeimage
437 noderepo-SPEC := noderepo.spec
438 # package requires all embedded packages
439 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
440 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
441 #export rpm list to the specfile
442 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
443 noderepo-RPMDATE := yes
450 # all rpms resulting from packages marked as being in vserver
451 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
452 # replace space with +++ (specvars cannot deal with spaces)
454 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
456 slicerepo-MODULES := nodeimage
457 slicerepo-SPEC := slicerepo.spec
458 # package requires all embedded packages
459 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
460 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
461 #export rpm list to the specfile
462 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
463 slicerepo-RPMDATE := yes
467 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
469 myplc-MODULES := myplc
470 myplc-SPEC := myplc.spec
471 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
474 # myplc-docs only contains docs for PLCAPI and NMAPI, but
475 # we still need to pull MyPLC, as it is where the specfile lies,
476 # together with the utility script docbook2drupal.sh
477 myplc-docs-MODULES := myplc plcapi nodemanager monitor
478 myplc-docs-SPEC := myplc-docs.spec
481 # using some other name than myplc-release, as this is a make target already
482 release-MODULES := myplc
483 release-SPEC := myplc-release.spec
484 release-RPMDATE := yes