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
37 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
38 kernel_release=$(kernel.rpm-release) \
39 kernel_arch=$(kernel.rpm-arch)
45 nodeupdate-MODULES := nodeupdate
46 nodeupdate-SPEC := NodeUpdate.spec
48 IN_NODEIMAGE += nodeupdate
53 ipod-MODULES := PingOfDeath
54 ipod-SPEC := ipod.spec
61 nodemanager-MODULES := nodemanager
62 nodemanager-SPEC := NodeManager.spec
64 IN_NODEIMAGE += nodemanager
69 sshd-MODULES := pl_sshd
70 sshd-SPEC := pl_sshd.spec
75 # codemux: Port 80 demux
77 codemux-MODULES := codemux
78 codemux-SPEC := codemux.spec
80 IN_NODEIMAGE += codemux
85 fprobe-ulog-MODULES := fprobe-ulog
86 fprobe-ulog-SPEC := fprobe-ulog.spec
88 IN_NODEIMAGE += fprobe-ulog
93 libvirt-MODULES := libvirt
94 libvirt-SPEC := libvirt.spec
95 libvirt-BUILD-FROM-SRPM := yes
96 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
97 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
98 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
99 libvirt-DEVEL-RPMS += libudev-devel
100 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
101 --without storage-fs --without storage-lvm \
102 --without polkit --without sasl --without audit --with capng --with udev \
103 --without netcf --without avahi --without sanlock \
104 --without xen --without qemu --without hyperv --without phyp --without esx \
106 --define 'packager PlanetLab'
108 IN_NODEREPO += libvirt
109 IN_NODEIMAGE += libvirt
112 # DistributedRateLimiting
114 #DistributedRateLimiting-MODULES := DistributedRateLimiting
115 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
116 #ALL += DistributedRateLimiting
117 #IN_NODEREPO += DistributedRateLimiting
122 pf2slice-MODULES := pf2slice
123 pf2slice-SPEC := pf2slice.spec
127 ## PlanetLab Mom: Cleans up your mess
130 #mom-SPEC := pl_mom.spec
135 # inotify-tools - local import
136 # rebuild this on centos5 (not found) - see yumexclude
138 local_inotify_tools=false
139 ifeq "$(DISTRONAME)" "centos5"
140 local_inotify_tools=true
143 ifeq "$(DISTRONAME)" "sl6"
144 local_inotify_tools=true
147 ifeq "$(local_inotify_tools)" "true"
148 inotify-tools-MODULES := inotify-tools
149 inotify-tools-SPEC := inotify-tools.spec
150 inotify-tools-BUILD-FROM-SRPM := yes
151 IN_NODEIMAGE += inotify-tools
158 # openvswitch-MODULES := openvswitch
159 # openvswitch-SPEC := openvswitch.spec
160 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
161 # IN_NODEIMAGE += openvswitch
162 # # build only on f14 as f16 has this natively
163 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
171 vsys-SPEC := vsys.spec
172 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
173 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
174 ifeq "$(local_inotify_tools)" "true"
175 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
181 # vsyssh : installed in slivers
183 vsyssh-MODULES := vsys
184 vsyssh-SPEC := vsyssh.spec
185 IN_SLICEIMAGE += vsyssh
191 vsys-scripts-MODULES := vsys-scripts
192 vsys-scripts-SPEC := vsys-scripts.spec
193 IN_NODEIMAGE += vsys-scripts
199 plcapi-MODULES := plcapi
200 plcapi-SPEC := PLCAPI.spec
207 drupal-MODULES := drupal
208 drupal-SPEC := drupal.spec
209 drupal-BUILD-FROM-SRPM := yes
214 # use the plewww module instead
216 plewww-MODULES := plewww
217 plewww-SPEC := plewww.spec
222 # www-register-wizard
224 www-register-wizard-MODULES := www-register-wizard
225 www-register-wizard-SPEC := www-register-wizard.spec
226 ALL += www-register-wizard
227 IN_MYPLC += www-register-wizard
232 pcucontrol-MODULES := pcucontrol
233 pcucontrol-SPEC := pcucontrol.spec
239 #monitor-MODULES := monitor
240 #monitor-SPEC := Monitor.spec
241 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
243 #IN_NODEIMAGE += monitor
248 plcrt-MODULES := PLCRT
249 plcrt-SPEC := plcrt.spec
252 # f12 has 0.9-1 already
253 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
257 pyopenssl-MODULES := pyopenssl
258 pyopenssl-SPEC := pyOpenSSL.spec
259 pyopenssl-BUILD-FROM-SRPM := yes
266 pyaspects-MODULES := pyaspects
267 pyaspects-SPEC := pyaspects.spec
268 pyaspects-BUILD-FROM-SRPM := yes
271 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
272 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
274 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
278 ifeq "$(build_sfa)" "true"
280 # sfa - Slice Facility Architecture
286 sface-MODULES := sface
287 sface-SPEC := sface.spec
294 nodeconfig-MODULES := nodeconfig
295 nodeconfig-SPEC := nodeconfig.spec
297 IN_MYPLC += nodeconfig
302 bootmanager-MODULES := bootmanager
303 bootmanager-SPEC := bootmanager.spec
305 IN_MYPLC += bootmanager
308 # pypcilib : used in bootcd
310 pypcilib-MODULES := pypcilib
311 pypcilib-SPEC := pypcilib.spec
313 IN_BOOTCD += pypcilib
318 pyplnet-MODULES := pyplnet
319 pyplnet-SPEC := pyplnet.spec
321 IN_NODEIMAGE += pyplnet
326 # OMF resource controller
328 omf-resctl-MODULES := omf
329 omf-resctl-SPEC := omf-resctl.spec
331 IN_SLICEIMAGE += omf-resctl
336 omf-expctl-MODULES := omf
337 omf-expctl-SPEC := omf-expctl.spec
343 bootcd-MODULES := bootcd build
344 bootcd-SPEC := bootcd.spec
345 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
346 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
347 bootcd-RPMDATE := yes
354 sliceimage-MODULES := sliceimage build
355 sliceimage-SPEC := sliceimage.spec
356 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
357 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
358 sliceimage-RPMDATE := yes
360 IN_NODEIMAGE += sliceimage
363 # lxc-specific sliceimage initialization
365 lxc-sliceimage-MODULES := sliceimage
366 lxc-sliceimage-SPEC := lxc-sliceimage.spec
367 lxc-sliceimage-RPMDATE := yes
368 ALL += lxc-sliceimage
369 IN_NODEIMAGE += lxc-sliceimage
374 nodeimage-MODULES := nodeimage build
375 nodeimage-SPEC := nodeimage.spec
376 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
377 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
378 nodeimage-RPMDATE := yes
380 IN_MYPLC += nodeimage
385 # all rpms resulting from packages marked as being in nodeimage and sliceimage
386 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
387 # replace space with +++ (specvars cannot deal with spaces)
389 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
391 noderepo-MODULES := nodeimage
392 noderepo-SPEC := noderepo.spec
393 # package requires all embedded packages
394 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
395 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
396 #export rpm list to the specfile
397 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
398 noderepo-RPMDATE := yes
405 # all rpms resulting from packages marked as being in vserver
406 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
407 # replace space with +++ (specvars cannot deal with spaces)
409 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
411 slicerepo-MODULES := nodeimage
412 slicerepo-SPEC := slicerepo.spec
413 # package requires all embedded packages
414 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
415 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
416 #export rpm list to the specfile
417 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
418 slicerepo-RPMDATE := yes
422 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
424 myplc-MODULES := myplc
425 myplc-SPEC := myplc.spec
426 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
429 # myplc-docs only contains docs for PLCAPI and NMAPI, but
430 # we still need to pull MyPLC, as it is where the specfile lies,
431 # together with the utility script docbook2drupal.sh
432 myplc-docs-MODULES := myplc plcapi nodemanager monitor
433 myplc-docs-SPEC := myplc-docs.spec
436 # using some other name than myplc-release, as this is a make target already
437 release-MODULES := myplc
438 release-SPEC := myplc-release.spec
439 release-RPMDATE := yes