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
95 libvirt-MODULES := libvirt
96 libvirt-SPEC := libvirt.spec
97 libvirt-BUILD-FROM-SRPM := yes
98 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
99 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
100 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
101 libvirt-DEVEL-RPMS += libudev-devel
102 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
103 --without storage-fs --without storage-lvm \
104 --without polkit --without sasl --without audit --with capng --with udev \
105 --without netcf --without avahi --without sanlock \
106 --without xen --without qemu --without hyperv --without phyp --without esx \
108 --define 'packager PlanetLab'
110 IN_NODEREPO += libvirt
111 IN_NODEIMAGE += libvirt
114 # DistributedRateLimiting
116 #DistributedRateLimiting-MODULES := DistributedRateLimiting
117 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
118 #ALL += DistributedRateLimiting
119 #IN_NODEREPO += DistributedRateLimiting
124 pf2slice-MODULES := pf2slice
125 pf2slice-SPEC := pf2slice.spec
129 ## PlanetLab Mom: Cleans up your mess
132 #mom-SPEC := pl_mom.spec
137 # inotify-tools - local import
138 # rebuild this on centos5 (not found) - see yumexclude
140 local_inotify_tools=false
141 ifeq "$(DISTRONAME)" "centos5"
142 local_inotify_tools=true
145 ifeq "$(DISTRONAME)" "sl6"
146 local_inotify_tools=true
149 ifeq "$(local_inotify_tools)" "true"
150 inotify-tools-MODULES := inotify-tools
151 inotify-tools-SPEC := inotify-tools.spec
152 inotify-tools-BUILD-FROM-SRPM := yes
153 IN_NODEIMAGE += inotify-tools
160 # openvswitch-MODULES := openvswitch
161 # openvswitch-SPEC := openvswitch.spec
162 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
163 # IN_NODEIMAGE += openvswitch
164 # # build only on f14 as f16 has this natively
165 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
173 vsys-SPEC := vsys.spec
174 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
175 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
176 ifeq "$(local_inotify_tools)" "true"
177 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
183 # vsyssh : installed in slivers
185 vsyssh-MODULES := vsys
186 vsyssh-SPEC := vsyssh.spec
187 IN_SLICEIMAGE += vsyssh
193 vsys-scripts-MODULES := vsys-scripts
194 vsys-scripts-SPEC := vsys-scripts.spec
195 IN_NODEIMAGE += vsys-scripts
201 plcapi-MODULES := plcapi
202 plcapi-SPEC := PLCAPI.spec
209 drupal-MODULES := drupal
210 drupal-SPEC := drupal.spec
211 drupal-BUILD-FROM-SRPM := yes
216 # use the plewww module instead
218 plewww-MODULES := plewww
219 plewww-SPEC := plewww.spec
224 # www-register-wizard
226 www-register-wizard-MODULES := www-register-wizard
227 www-register-wizard-SPEC := www-register-wizard.spec
228 ALL += www-register-wizard
229 IN_MYPLC += www-register-wizard
234 pcucontrol-MODULES := pcucontrol
235 pcucontrol-SPEC := pcucontrol.spec
241 #monitor-MODULES := monitor
242 #monitor-SPEC := Monitor.spec
243 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
245 #IN_NODEIMAGE += monitor
250 plcrt-MODULES := PLCRT
251 plcrt-SPEC := plcrt.spec
254 # f12 has 0.9-1 already
255 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
259 pyopenssl-MODULES := pyopenssl
260 pyopenssl-SPEC := pyOpenSSL.spec
261 pyopenssl-BUILD-FROM-SRPM := yes
268 pyaspects-MODULES := pyaspects
269 pyaspects-SPEC := pyaspects.spec
270 pyaspects-BUILD-FROM-SRPM := yes
273 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
274 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
276 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
280 ifeq "$(build_sfa)" "true"
282 # sfa - Slice Facility Architecture
288 sface-MODULES := sface
289 sface-SPEC := sface.spec
296 nodeconfig-MODULES := nodeconfig
297 nodeconfig-SPEC := nodeconfig.spec
299 IN_MYPLC += nodeconfig
304 bootmanager-MODULES := bootmanager
305 bootmanager-SPEC := bootmanager.spec
307 IN_MYPLC += bootmanager
310 # pypcilib : used in bootcd
312 pypcilib-MODULES := pypcilib
313 pypcilib-SPEC := pypcilib.spec
315 IN_BOOTCD += pypcilib
320 pyplnet-MODULES := pyplnet
321 pyplnet-SPEC := pyplnet.spec
323 IN_NODEIMAGE += pyplnet
328 # OMF resource controller
330 omf-resctl-MODULES := omf
331 omf-resctl-SPEC := omf-resctl.spec
333 IN_SLICEIMAGE += omf-resctl
338 omf-expctl-MODULES := omf
339 omf-expctl-SPEC := omf-expctl.spec
345 bootcd-MODULES := bootcd build
346 bootcd-SPEC := bootcd.spec
347 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
348 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
349 bootcd-RPMDATE := yes
356 sliceimage-MODULES := sliceimage build
357 sliceimage-SPEC := sliceimage.spec
358 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
359 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
360 sliceimage-RPMDATE := yes
362 IN_NODEIMAGE += sliceimage
365 # lxc-specific sliceimage initialization
367 lxc-sliceimage-MODULES := sliceimage
368 lxc-sliceimage-SPEC := lxc-sliceimage.spec
369 lxc-sliceimage-RPMDATE := yes
370 ALL += lxc-sliceimage
371 IN_NODEIMAGE += lxc-sliceimage
376 nodeimage-MODULES := nodeimage build
377 nodeimage-SPEC := nodeimage.spec
378 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
379 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
380 nodeimage-RPMDATE := yes
382 IN_MYPLC += nodeimage
387 # all rpms resulting from packages marked as being in nodeimage and sliceimage
388 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
389 # replace space with +++ (specvars cannot deal with spaces)
391 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
393 noderepo-MODULES := nodeimage
394 noderepo-SPEC := noderepo.spec
395 # package requires all embedded packages
396 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
397 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
398 #export rpm list to the specfile
399 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
400 noderepo-RPMDATE := yes
407 # all rpms resulting from packages marked as being in vserver
408 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
409 # replace space with +++ (specvars cannot deal with spaces)
411 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
413 slicerepo-MODULES := nodeimage
414 slicerepo-SPEC := slicerepo.spec
415 # package requires all embedded packages
416 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
417 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
418 #export rpm list to the specfile
419 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
420 slicerepo-RPMDATE := yes
424 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
426 myplc-MODULES := myplc
427 myplc-SPEC := myplc.spec
428 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
431 # myplc-docs only contains docs for PLCAPI and NMAPI, but
432 # we still need to pull MyPLC, as it is where the specfile lies,
433 # together with the utility script docbook2drupal.sh
434 myplc-docs-MODULES := myplc plcapi nodemanager monitor
435 myplc-docs-SPEC := myplc-docs.spec
438 # using some other name than myplc-release, as this is a make target already
439 release-MODULES := myplc
440 release-SPEC := myplc-release.spec
441 release-RPMDATE := yes