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 madwifi-MODULES := madwifi
43 madwifi-SPEC := madwifi.spec
44 madwifi-BUILD-FROM-SRPM := yes
46 IN_NODEIMAGE += madwifi
51 nodeupdate-MODULES := nodeupdate
52 nodeupdate-SPEC := NodeUpdate.spec
54 IN_NODEIMAGE += nodeupdate
59 ipod-MODULES := PingOfDeath
60 ipod-SPEC := ipod.spec
67 nodemanager-lib-MODULES := nodemanager
68 nodemanager-lib-SPEC := nodemanager-lib.spec
69 ALL += nodemanager-lib
70 IN_NODEIMAGE += nodemanager-lib
72 nodemanager-lxc-MODULES := nodemanager
73 nodemanager-lxc-SPEC := nodemanager-lxc.spec
74 ALL += nodemanager-lxc
75 IN_NODEIMAGE += nodemanager-lxc
80 sshd-MODULES := pl_sshd
81 sshd-SPEC := pl_sshd.spec
86 # codemux: Port 80 demux
88 codemux-MODULES := codemux
89 codemux-SPEC := codemux.spec
91 IN_NODEIMAGE += codemux
96 fprobe-ulog-MODULES := fprobe-ulog
97 fprobe-ulog-SPEC := fprobe-ulog.spec
99 IN_NODEIMAGE += fprobe-ulog
104 libvirt-MODULES := libvirt
105 libvirt-SPEC := libvirt.spec
106 libvirt-BUILD-FROM-SRPM := yes
107 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
108 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
109 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
110 libvirt-DEVEL-RPMS += libudev-devel
111 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
112 --without storage-fs --without storage-lvm \
113 --without polkit --without sasl --without audit --with capng --with udev \
114 --without netcf --without avahi --without sanlock \
115 --without xen --without qemu --without hyperv --without phyp --without esx \
117 --define 'packager PlanetLab'
119 IN_NODEREPO += libvirt
120 IN_NODEIMAGE += libvirt
123 # DistributedRateLimiting
125 #DistributedRateLimiting-MODULES := DistributedRateLimiting
126 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
127 #ALL += DistributedRateLimiting
128 #IN_NODEREPO += DistributedRateLimiting
133 pf2slice-MODULES := pf2slice
134 pf2slice-SPEC := pf2slice.spec
138 ## PlanetLab Mom: Cleans up your mess
141 #mom-SPEC := pl_mom.spec
146 # inotify-tools - local import
147 # rebuild this on centos5 (not found) - see yumexclude
149 local_inotify_tools=false
150 ifeq "$(DISTRONAME)" "centos5"
151 local_inotify_tools=true
154 ifeq "$(DISTRONAME)" "sl6"
155 local_inotify_tools=true
158 ifeq "$(local_inotify_tools)" "true"
159 inotify-tools-MODULES := inotify-tools
160 inotify-tools-SPEC := inotify-tools.spec
161 inotify-tools-BUILD-FROM-SRPM := yes
162 IN_NODEIMAGE += inotify-tools
169 # openvswitch-MODULES := openvswitch
170 # openvswitch-SPEC := openvswitch.spec
171 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
172 # IN_NODEIMAGE += openvswitch
173 # # build only on f14 as f16 has this natively
174 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
182 vsys-SPEC := vsys.spec
183 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
184 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
185 ifeq "$(local_inotify_tools)" "true"
186 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
192 # vsyssh : installed in slivers
194 vsyssh-MODULES := vsys
195 vsyssh-SPEC := vsyssh.spec
196 IN_SLICEIMAGE += vsyssh
202 vsys-scripts-MODULES := vsys-scripts
203 vsys-scripts-SPEC := vsys-scripts.spec
204 IN_NODEIMAGE += vsys-scripts
210 plcapi-MODULES := plcapi
211 plcapi-SPEC := PLCAPI.spec
218 drupal-MODULES := drupal
219 drupal-SPEC := drupal.spec
220 drupal-BUILD-FROM-SRPM := yes
225 # use the plewww module instead
227 plewww-MODULES := plewww
228 plewww-SPEC := plewww.spec
233 # www-register-wizard
235 www-register-wizard-MODULES := www-register-wizard
236 www-register-wizard-SPEC := www-register-wizard.spec
237 ALL += www-register-wizard
238 IN_MYPLC += www-register-wizard
243 pcucontrol-MODULES := pcucontrol
244 pcucontrol-SPEC := pcucontrol.spec
250 #monitor-MODULES := monitor
251 #monitor-SPEC := Monitor.spec
252 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
254 #IN_NODEIMAGE += monitor
259 plcrt-MODULES := PLCRT
260 plcrt-SPEC := plcrt.spec
263 # f12 has 0.9-1 already
264 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
268 pyopenssl-MODULES := pyopenssl
269 pyopenssl-SPEC := pyOpenSSL.spec
270 pyopenssl-BUILD-FROM-SRPM := yes
277 pyaspects-MODULES := pyaspects
278 pyaspects-SPEC := pyaspects.spec
279 pyaspects-BUILD-FROM-SRPM := yes
282 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
283 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
285 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
289 ifeq "$(build_sfa)" "true"
291 # sfa - Slice Facility Architecture
297 sface-MODULES := sface
298 sface-SPEC := sface.spec
305 nodeconfig-MODULES := nodeconfig
306 nodeconfig-SPEC := nodeconfig.spec
308 IN_MYPLC += nodeconfig
313 bootmanager-MODULES := bootmanager
314 bootmanager-SPEC := bootmanager.spec
316 IN_MYPLC += bootmanager
319 # pypcilib : used in bootcd
321 pypcilib-MODULES := pypcilib
322 pypcilib-SPEC := pypcilib.spec
324 IN_BOOTCD += pypcilib
329 pyplnet-MODULES := pyplnet
330 pyplnet-SPEC := pyplnet.spec
332 IN_NODEIMAGE += pyplnet
337 # OMF resource controller
339 omf-resctl-MODULES := omf
340 omf-resctl-SPEC := omf-resctl.spec
342 IN_SLICEIMAGE += omf-resctl
347 omf-expctl-MODULES := omf
348 omf-expctl-SPEC := omf-expctl.spec
354 bootcd-MODULES := bootcd build
355 bootcd-SPEC := bootcd.spec
356 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
357 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
358 bootcd-RPMDATE := yes
365 sliceimage-MODULES := sliceimage build
366 sliceimage-SPEC := sliceimage.spec
367 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
368 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
369 sliceimage-RPMDATE := yes
371 IN_NODEIMAGE += sliceimage
374 # lxc-specific sliceimage initialization
376 lxc-sliceimage-MODULES := sliceimage
377 lxc-sliceimage-SPEC := lxc-sliceimage.spec
378 lxc-sliceimage-RPMDATE := yes
379 ALL += lxc-sliceimage
380 IN_NODEIMAGE += lxc-sliceimage
385 nodeimage-MODULES := nodeimage build
386 nodeimage-SPEC := nodeimage.spec
387 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
388 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
389 nodeimage-RPMDATE := yes
391 IN_MYPLC += nodeimage
396 # all rpms resulting from packages marked as being in nodeimage and sliceimage
397 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
398 # replace space with +++ (specvars cannot deal with spaces)
400 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
402 noderepo-MODULES := nodeimage
403 noderepo-SPEC := noderepo.spec
404 # package requires all embedded packages
405 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
406 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
407 #export rpm list to the specfile
408 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
409 noderepo-RPMDATE := yes
416 # all rpms resulting from packages marked as being in vserver
417 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
418 # replace space with +++ (specvars cannot deal with spaces)
420 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
422 slicerepo-MODULES := nodeimage
423 slicerepo-SPEC := slicerepo.spec
424 # package requires all embedded packages
425 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
426 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
427 #export rpm list to the specfile
428 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
429 slicerepo-RPMDATE := yes
433 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
435 myplc-MODULES := myplc
436 myplc-SPEC := myplc.spec
437 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
440 # myplc-docs only contains docs for PLCAPI and NMAPI, but
441 # we still need to pull MyPLC, as it is where the specfile lies,
442 # together with the utility script docbook2drupal.sh
443 myplc-docs-MODULES := myplc plcapi nodemanager monitor
444 myplc-docs-SPEC := myplc-docs.spec
447 # using some other name than myplc-release, as this is a make target already
448 release-MODULES := myplc
449 release-SPEC := myplc-release.spec
450 release-RPMDATE := yes