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 # ipfw: root context module, and slice companion
22 ipfwroot-MODULES := ipfw
23 ipfwroot-SPEC := planetlab/ipfwroot.spec
25 IN_NODEIMAGE += ipfwroot
27 ipfwslice-MODULES := ipfw
28 ipfwslice-SPEC := planetlab/ipfwslice.spec
29 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
30 kernel_release=$(kernel.rpm-release) \
31 kernel_arch=$(kernel.rpm-arch)
37 nodeupdate-MODULES := nodeupdate
38 nodeupdate-SPEC := NodeUpdate.spec
40 IN_NODEIMAGE += nodeupdate
45 ipod-MODULES := PingOfDeath
46 ipod-SPEC := ipod.spec
53 nodemanager-MODULES := nodemanager
54 nodemanager-SPEC := NodeManager.spec
56 IN_NODEIMAGE += nodemanager
61 sshd-MODULES := pl_sshd
62 sshd-SPEC := pl_sshd.spec
67 # codemux: Port 80 demux
69 codemux-MODULES := codemux
70 codemux-SPEC := codemux.spec
72 IN_NODEIMAGE += codemux
77 fprobe-ulog-MODULES := fprobe-ulog
78 fprobe-ulog-SPEC := fprobe-ulog.spec
80 IN_NODEIMAGE += fprobe-ulog
85 libvirt-MODULES := libvirt
86 libvirt-SPEC := libvirt.spec
87 libvirt-BUILD-FROM-SRPM := yes
88 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
89 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
90 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
91 libvirt-DEVEL-RPMS += libudev-devel
92 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
93 --without storage-fs --without storage-lvm \
94 --without polkit --without sasl --without audit --with capng --with udev \
95 --without netcf --without avahi --without sanlock \
96 --without xen --without qemu --without hyperv --without phyp --without esx \
98 --define 'packager PlanetLab'
100 IN_NODEREPO += libvirt
101 IN_NODEIMAGE += libvirt
104 # DistributedRateLimiting
106 #DistributedRateLimiting-MODULES := DistributedRateLimiting
107 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
108 #ALL += DistributedRateLimiting
109 #IN_NODEREPO += DistributedRateLimiting
114 pf2slice-MODULES := pf2slice
115 pf2slice-SPEC := pf2slice.spec
119 ## PlanetLab Mom: Cleans up your mess
122 #mom-SPEC := pl_mom.spec
127 # inotify-tools - local import
128 # rebuild this on centos5 (not found) - see yumexclude
130 local_inotify_tools=false
131 ifeq "$(DISTRONAME)" "centos5"
132 local_inotify_tools=true
135 ifeq "$(DISTRONAME)" "sl6"
136 local_inotify_tools=true
139 ifeq "$(local_inotify_tools)" "true"
140 inotify-tools-MODULES := inotify-tools
141 inotify-tools-SPEC := inotify-tools.spec
142 inotify-tools-BUILD-FROM-SRPM := yes
143 IN_NODEIMAGE += inotify-tools
150 # openvswitch-MODULES := openvswitch
151 # openvswitch-SPEC := openvswitch.spec
152 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
153 # IN_NODEIMAGE += openvswitch
154 # # build only on f14 as f16 has this natively
155 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
163 vsys-SPEC := vsys.spec
164 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
165 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
166 ifeq "$(local_inotify_tools)" "true"
167 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
173 # vsyssh : installed in slivers
175 vsyssh-MODULES := vsys
176 vsyssh-SPEC := vsyssh.spec
177 IN_SLICEIMAGE += vsyssh
183 vsys-scripts-MODULES := vsys-scripts
184 vsys-scripts-SPEC := vsys-scripts.spec
185 IN_NODEIMAGE += vsys-scripts
191 plcapi-MODULES := plcapi
192 plcapi-SPEC := PLCAPI.spec
199 drupal-MODULES := drupal
200 drupal-SPEC := drupal.spec
201 drupal-BUILD-FROM-SRPM := yes
206 # use the plewww module instead
208 plewww-MODULES := plewww
209 plewww-SPEC := plewww.spec
214 # www-register-wizard
216 www-register-wizard-MODULES := www-register-wizard
217 www-register-wizard-SPEC := www-register-wizard.spec
218 ALL += www-register-wizard
219 IN_MYPLC += www-register-wizard
224 pcucontrol-MODULES := pcucontrol
225 pcucontrol-SPEC := pcucontrol.spec
231 #monitor-MODULES := monitor
232 #monitor-SPEC := Monitor.spec
233 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
235 #IN_NODEIMAGE += monitor
240 plcrt-MODULES := PLCRT
241 plcrt-SPEC := plcrt.spec
244 # f12 has 0.9-1 already
245 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
249 pyopenssl-MODULES := pyopenssl
250 pyopenssl-SPEC := pyOpenSSL.spec
251 pyopenssl-BUILD-FROM-SRPM := yes
258 pyaspects-MODULES := pyaspects
259 pyaspects-SPEC := pyaspects.spec
260 pyaspects-BUILD-FROM-SRPM := yes
263 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
264 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
266 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
270 ifeq "$(build_sfa)" "true"
272 # sfa - Slice Facility Architecture
278 sface-MODULES := sface
279 sface-SPEC := sface.spec
286 nodeconfig-MODULES := nodeconfig
287 nodeconfig-SPEC := nodeconfig.spec
289 IN_MYPLC += nodeconfig
294 bootmanager-MODULES := bootmanager
295 bootmanager-SPEC := bootmanager.spec
297 IN_MYPLC += bootmanager
300 # pypcilib : used in bootcd
302 pypcilib-MODULES := pypcilib
303 pypcilib-SPEC := pypcilib.spec
305 IN_BOOTCD += pypcilib
310 pyplnet-MODULES := pyplnet
311 pyplnet-SPEC := pyplnet.spec
313 IN_NODEIMAGE += pyplnet
318 # OMF resource controller
320 omf-resctl-MODULES := omf
321 omf-resctl-SPEC := omf-resctl.spec
323 IN_SLICEIMAGE += omf-resctl
328 omf-expctl-MODULES := omf
329 omf-expctl-SPEC := omf-expctl.spec
335 bootcd-MODULES := bootcd build
336 bootcd-SPEC := bootcd.spec
337 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
338 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
339 bootcd-RPMDATE := yes
346 sliceimage-MODULES := sliceimage build
347 sliceimage-SPEC := sliceimage.spec
348 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
349 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
350 sliceimage-RPMDATE := yes
352 IN_NODEIMAGE += sliceimage
355 # lxc-specific sliceimage initialization
357 lxc-sliceimage-MODULES := sliceimage
358 lxc-sliceimage-SPEC := lxc-sliceimage.spec
359 lxc-sliceimage-RPMDATE := yes
360 ALL += lxc-sliceimage
361 IN_NODEIMAGE += lxc-sliceimage
366 nodeimage-MODULES := nodeimage build
367 nodeimage-SPEC := nodeimage.spec
368 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
369 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
370 nodeimage-RPMDATE := yes
372 IN_MYPLC += nodeimage
377 # all rpms resulting from packages marked as being in nodeimage and sliceimage
378 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
379 # replace space with +++ (specvars cannot deal with spaces)
381 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
383 noderepo-MODULES := nodeimage
384 noderepo-SPEC := noderepo.spec
385 # package requires all embedded packages
386 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
387 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
388 #export rpm list to the specfile
389 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
390 noderepo-RPMDATE := yes
397 # all rpms resulting from packages marked as being in vserver
398 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
399 # replace space with +++ (specvars cannot deal with spaces)
401 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
403 slicerepo-MODULES := nodeimage
404 slicerepo-SPEC := slicerepo.spec
405 # package requires all embedded packages
406 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
407 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
408 #export rpm list to the specfile
409 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
410 slicerepo-RPMDATE := yes
414 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
416 myplc-MODULES := myplc
417 myplc-SPEC := myplc.spec
418 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
421 # myplc-docs only contains docs for PLCAPI and NMAPI, but
422 # we still need to pull MyPLC, as it is where the specfile lies,
423 # together with the utility script docbook2drupal.sh
424 myplc-docs-MODULES := myplc plcapi nodemanager monitor
425 myplc-docs-SPEC := myplc-docs.spec
428 # using some other name than myplc-release, as this is a make target already
429 release-MODULES := myplc
430 release-SPEC := myplc-release.spec
431 release-RPMDATE := yes