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 portforward-MODULES := portforward
210 portforward-SPEC := portforward.spec
211 IN_SLICEIMAGE += portforward
217 plcapi-MODULES := plcapi
218 plcapi-SPEC := PLCAPI.spec
225 drupal-MODULES := drupal
226 drupal-SPEC := drupal.spec
227 drupal-BUILD-FROM-SRPM := yes
232 # use the plewww module instead
234 plewww-MODULES := plewww
235 plewww-SPEC := plewww.spec
240 # www-register-wizard
242 www-register-wizard-MODULES := www-register-wizard
243 www-register-wizard-SPEC := www-register-wizard.spec
244 ALL += www-register-wizard
245 IN_MYPLC += www-register-wizard
250 pcucontrol-MODULES := pcucontrol
251 pcucontrol-SPEC := pcucontrol.spec
257 #monitor-MODULES := monitor
258 #monitor-SPEC := Monitor.spec
259 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
261 #IN_NODEIMAGE += monitor
266 plcrt-MODULES := PLCRT
267 plcrt-SPEC := plcrt.spec
270 # f12 has 0.9-1 already
271 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
275 pyopenssl-MODULES := pyopenssl
276 pyopenssl-SPEC := pyOpenSSL.spec
277 pyopenssl-BUILD-FROM-SRPM := yes
284 pyaspects-MODULES := pyaspects
285 pyaspects-SPEC := pyaspects.spec
286 pyaspects-BUILD-FROM-SRPM := yes
289 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
290 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
292 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
296 ifeq "$(build_sfa)" "true"
298 # sfa - Slice Facility Architecture
304 sface-MODULES := sface
305 sface-SPEC := sface.spec
312 nodeconfig-MODULES := nodeconfig
313 nodeconfig-SPEC := nodeconfig.spec
315 IN_MYPLC += nodeconfig
320 bootmanager-MODULES := bootmanager
321 bootmanager-SPEC := bootmanager.spec
323 IN_MYPLC += bootmanager
326 # pypcilib : used in bootcd
328 pypcilib-MODULES := pypcilib
329 pypcilib-SPEC := pypcilib.spec
331 IN_BOOTCD += pypcilib
336 pyplnet-MODULES := pyplnet
337 pyplnet-SPEC := pyplnet.spec
339 IN_NODEIMAGE += pyplnet
344 # OMF resource controller
346 omf-resctl-MODULES := omf
347 omf-resctl-SPEC := omf-resctl.spec
349 IN_SLICEIMAGE += omf-resctl
354 omf-expctl-MODULES := omf
355 omf-expctl-SPEC := omf-expctl.spec
361 bootcd-MODULES := bootcd build
362 bootcd-SPEC := bootcd.spec
363 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
364 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
365 bootcd-RPMDATE := yes
372 sliceimage-MODULES := sliceimage build
373 sliceimage-SPEC := sliceimage.spec
374 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
375 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
376 sliceimage-RPMDATE := yes
378 IN_NODEIMAGE += sliceimage
381 # lxc-specific sliceimage initialization
383 lxc-sliceimage-MODULES := sliceimage
384 lxc-sliceimage-SPEC := lxc-sliceimage.spec
385 lxc-sliceimage-RPMDATE := yes
386 ALL += lxc-sliceimage
387 IN_NODEIMAGE += lxc-sliceimage
392 nodeimage-MODULES := nodeimage build
393 nodeimage-SPEC := nodeimage.spec
394 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
395 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
396 nodeimage-RPMDATE := yes
398 IN_MYPLC += nodeimage
403 # all rpms resulting from packages marked as being in nodeimage and sliceimage
404 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
405 # replace space with +++ (specvars cannot deal with spaces)
407 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
409 noderepo-MODULES := nodeimage
410 noderepo-SPEC := noderepo.spec
411 # package requires all embedded packages
412 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
413 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
414 #export rpm list to the specfile
415 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
416 noderepo-RPMDATE := yes
423 # all rpms resulting from packages marked as being in vserver
424 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
425 # replace space with +++ (specvars cannot deal with spaces)
427 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
429 slicerepo-MODULES := nodeimage
430 slicerepo-SPEC := slicerepo.spec
431 # package requires all embedded packages
432 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
433 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
434 #export rpm list to the specfile
435 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
436 slicerepo-RPMDATE := yes
440 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
442 myplc-MODULES := myplc
443 myplc-SPEC := myplc.spec
444 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
447 # myplc-docs only contains docs for PLCAPI and NMAPI, but
448 # we still need to pull MyPLC, as it is where the specfile lies,
449 # together with the utility script docbook2drupal.sh
450 myplc-docs-MODULES := myplc plcapi nodemanager monitor
451 myplc-docs-SPEC := myplc-docs.spec
454 # using some other name than myplc-release, as this is a make target already
455 release-MODULES := myplc
456 release-SPEC := myplc-release.spec
457 release-RPMDATE := yes