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 nodemanager-lib-MODULES := nodemanager
59 nodemanager-lib-SPEC := nodemanager-lib.spec
60 ALL += nodemanager-lib
61 IN_NODEIMAGE += nodemanager-lib
63 nodemanager-lxc-MODULES := nodemanager
64 nodemanager-lxc-SPEC := nodemanager-lxc.spec
65 ALL += nodemanager-lxc
66 IN_NODEIMAGE += nodemanager-lxc
71 sshd-MODULES := pl_sshd
72 sshd-SPEC := pl_sshd.spec
77 # codemux: Port 80 demux
79 codemux-MODULES := codemux
80 codemux-SPEC := codemux.spec
82 IN_NODEIMAGE += codemux
87 fprobe-ulog-MODULES := fprobe-ulog
88 fprobe-ulog-SPEC := fprobe-ulog.spec
90 IN_NODEIMAGE += fprobe-ulog
92 #################### libvirt on f16 is too old, sounds like f17 has something fine
94 ifeq "$(DISTRONAME)" "f16"
98 ifeq "$(local_libvirt)" "true"
102 libvirt-MODULES := libvirt
103 libvirt-SPEC := libvirt.spec
104 libvirt-BUILD-FROM-SRPM := yes
105 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
106 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
107 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
108 libvirt-DEVEL-RPMS += libudev-devel
109 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
110 --without storage-fs --without storage-lvm \
111 --without polkit --without sasl --without audit --with capng --with udev \
112 --without netcf --without avahi --without sanlock \
113 --without xen --without qemu --without hyperv --without phyp --without esx \
115 --define 'packager PlanetLab'
117 IN_NODEREPO += libvirt
118 IN_NODEIMAGE += libvirt
122 # DistributedRateLimiting
124 #DistributedRateLimiting-MODULES := DistributedRateLimiting
125 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
126 #ALL += DistributedRateLimiting
127 #IN_NODEREPO += DistributedRateLimiting
132 pf2slice-MODULES := pf2slice
133 pf2slice-SPEC := pf2slice.spec
137 ## PlanetLab Mom: Cleans up your mess
140 #mom-SPEC := pl_mom.spec
145 # inotify-tools - local import
146 # rebuild this on centos5 (not found) - see yumexclude
148 local_inotify_tools=false
149 ifeq "$(DISTRONAME)" "centos5"
150 local_inotify_tools=true
153 ifeq "$(DISTRONAME)" "sl6"
154 local_inotify_tools=true
157 ifeq "$(local_inotify_tools)" "true"
158 inotify-tools-MODULES := inotify-tools
159 inotify-tools-SPEC := inotify-tools.spec
160 inotify-tools-BUILD-FROM-SRPM := yes
161 IN_NODEIMAGE += inotify-tools
168 # openvswitch-MODULES := openvswitch
169 # openvswitch-SPEC := openvswitch.spec
170 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
171 # IN_NODEIMAGE += openvswitch
172 # # build only on f14 as f16 has this natively
173 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
181 vsys-SPEC := vsys.spec
182 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
183 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
184 ifeq "$(local_inotify_tools)" "true"
185 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
191 # vsyssh : installed in slivers
193 vsyssh-MODULES := vsys
194 vsyssh-SPEC := vsyssh.spec
195 IN_SLICEIMAGE += vsyssh
201 vsys-scripts-MODULES := vsys-scripts
202 vsys-scripts-SPEC := vsys-scripts.spec
203 IN_NODEIMAGE += vsys-scripts
209 plcapi-MODULES := plcapi
210 plcapi-SPEC := PLCAPI.spec
217 drupal-MODULES := drupal
218 drupal-SPEC := drupal.spec
219 drupal-BUILD-FROM-SRPM := yes
224 # use the plewww module instead
226 plewww-MODULES := plewww
227 plewww-SPEC := plewww.spec
232 # www-register-wizard
234 www-register-wizard-MODULES := www-register-wizard
235 www-register-wizard-SPEC := www-register-wizard.spec
236 ALL += www-register-wizard
237 IN_MYPLC += www-register-wizard
242 pcucontrol-MODULES := pcucontrol
243 pcucontrol-SPEC := pcucontrol.spec
249 #monitor-MODULES := monitor
250 #monitor-SPEC := Monitor.spec
251 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
253 #IN_NODEIMAGE += monitor
258 plcrt-MODULES := PLCRT
259 plcrt-SPEC := plcrt.spec
262 # f12 has 0.9-1 already
263 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
267 pyopenssl-MODULES := pyopenssl
268 pyopenssl-SPEC := pyOpenSSL.spec
269 pyopenssl-BUILD-FROM-SRPM := yes
276 pyaspects-MODULES := pyaspects
277 pyaspects-SPEC := pyaspects.spec
278 pyaspects-BUILD-FROM-SRPM := yes
281 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
282 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
284 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
288 ifeq "$(build_sfa)" "true"
290 # sfa - Slice Facility Architecture
296 sface-MODULES := sface
297 sface-SPEC := sface.spec
304 nodeconfig-MODULES := nodeconfig
305 nodeconfig-SPEC := nodeconfig.spec
307 IN_MYPLC += nodeconfig
312 bootmanager-MODULES := bootmanager
313 bootmanager-SPEC := bootmanager.spec
315 IN_MYPLC += bootmanager
318 # pypcilib : used in bootcd
320 pypcilib-MODULES := pypcilib
321 pypcilib-SPEC := pypcilib.spec
323 IN_BOOTCD += pypcilib
328 pyplnet-MODULES := pyplnet
329 pyplnet-SPEC := pyplnet.spec
331 IN_NODEIMAGE += pyplnet
336 # OMF resource controller
338 omf-resctl-MODULES := omf
339 omf-resctl-SPEC := omf-resctl.spec
341 IN_SLICEIMAGE += omf-resctl
346 omf-expctl-MODULES := omf
347 omf-expctl-SPEC := omf-expctl.spec
353 bootcd-MODULES := bootcd build
354 bootcd-SPEC := bootcd.spec
355 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
356 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
357 bootcd-RPMDATE := yes
364 sliceimage-MODULES := sliceimage build
365 sliceimage-SPEC := sliceimage.spec
366 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
367 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
368 sliceimage-RPMDATE := yes
370 IN_NODEIMAGE += sliceimage
373 # lxc-specific sliceimage initialization
375 lxc-sliceimage-MODULES := sliceimage
376 lxc-sliceimage-SPEC := lxc-sliceimage.spec
377 lxc-sliceimage-RPMDATE := yes
378 ALL += lxc-sliceimage
379 IN_NODEIMAGE += lxc-sliceimage
384 nodeimage-MODULES := nodeimage build
385 nodeimage-SPEC := nodeimage.spec
386 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
387 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
388 nodeimage-RPMDATE := yes
390 IN_MYPLC += nodeimage
395 # all rpms resulting from packages marked as being in nodeimage and sliceimage
396 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
397 # replace space with +++ (specvars cannot deal with spaces)
399 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
401 noderepo-MODULES := nodeimage
402 noderepo-SPEC := noderepo.spec
403 # package requires all embedded packages
404 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
405 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
406 #export rpm list to the specfile
407 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
408 noderepo-RPMDATE := yes
415 # all rpms resulting from packages marked as being in vserver
416 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
417 # replace space with +++ (specvars cannot deal with spaces)
419 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
421 slicerepo-MODULES := nodeimage
422 slicerepo-SPEC := slicerepo.spec
423 # package requires all embedded packages
424 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
425 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
426 #export rpm list to the specfile
427 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
428 slicerepo-RPMDATE := yes
432 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
434 myplc-MODULES := myplc
435 myplc-SPEC := myplc.spec
436 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
439 # myplc-docs only contains docs for PLCAPI and NMAPI, but
440 # we still need to pull MyPLC, as it is where the specfile lies,
441 # together with the utility script docbook2drupal.sh
442 myplc-docs-MODULES := myplc plcapi nodemanager monitor
443 myplc-docs-SPEC := myplc-docs.spec
446 # using some other name than myplc-release, as this is a make target already
447 release-MODULES := myplc
448 release-SPEC := myplc-release.spec
449 release-RPMDATE := yes