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 madwifi-MODULES := madwifi
43 madwifi-SPEC := madwifi.spec
44 madwifi-BUILD-FROM-SRPM := yes
45 madwifi-DEPEND-DEVEL-RPMS += kernel-devel
47 IN_NODEIMAGE += madwifi
52 nodeupdate-MODULES := nodeupdate
53 nodeupdate-SPEC := NodeUpdate.spec
55 IN_NODEIMAGE += nodeupdate
60 ipod-MODULES := PingOfDeath
61 ipod-SPEC := ipod.spec
68 nodemanager-lib-MODULES := nodemanager
69 nodemanager-lib-SPEC := nodemanager-lib.spec
70 ALL += nodemanager-lib
71 IN_NODEIMAGE += nodemanager-lib
73 nodemanager-lxc-MODULES := nodemanager
74 nodemanager-lxc-SPEC := nodemanager-lxc.spec
75 ALL += nodemanager-lxc
76 IN_NODEIMAGE += nodemanager-lxc
81 sshd-MODULES := pl_sshd
82 sshd-SPEC := pl_sshd.spec
87 # codemux: Port 80 demux
89 codemux-MODULES := codemux
90 codemux-SPEC := codemux.spec
92 IN_NODEIMAGE += codemux
97 fprobe-ulog-MODULES := fprobe-ulog
98 fprobe-ulog-SPEC := fprobe-ulog.spec
100 IN_NODEIMAGE += fprobe-ulog
105 libvirt-MODULES := libvirt
106 libvirt-SPEC := libvirt.spec
107 libvirt-BUILD-FROM-SRPM := yes
108 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
109 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
110 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
111 libvirt-DEVEL-RPMS += libudev-devel
112 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
113 --without storage-fs --without storage-lvm \
114 --without polkit --without sasl --without audit --with capng --with udev \
115 --without netcf --without avahi --without sanlock \
116 --without xen --without qemu --without hyperv --without phyp --without esx \
118 --define 'packager PlanetLab'
120 IN_NODEREPO += libvirt
121 IN_NODEIMAGE += libvirt
124 # DistributedRateLimiting
126 #DistributedRateLimiting-MODULES := DistributedRateLimiting
127 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
128 #ALL += DistributedRateLimiting
129 #IN_NODEREPO += DistributedRateLimiting
134 pf2slice-MODULES := pf2slice
135 pf2slice-SPEC := pf2slice.spec
139 ## PlanetLab Mom: Cleans up your mess
142 #mom-SPEC := pl_mom.spec
147 # inotify-tools - local import
148 # rebuild this on centos5 (not found) - see yumexclude
150 local_inotify_tools=false
151 ifeq "$(DISTRONAME)" "centos5"
152 local_inotify_tools=true
155 ifeq "$(DISTRONAME)" "sl6"
156 local_inotify_tools=true
159 ifeq "$(local_inotify_tools)" "true"
160 inotify-tools-MODULES := inotify-tools
161 inotify-tools-SPEC := inotify-tools.spec
162 inotify-tools-BUILD-FROM-SRPM := yes
163 IN_NODEIMAGE += inotify-tools
170 # openvswitch-MODULES := openvswitch
171 # openvswitch-SPEC := openvswitch.spec
172 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
173 # IN_NODEIMAGE += openvswitch
174 # # build only on f14 as f16 has this natively
175 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
183 vsys-SPEC := vsys.spec
184 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
185 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
186 ifeq "$(local_inotify_tools)" "true"
187 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
193 # vsyssh : installed in slivers
195 vsyssh-MODULES := vsys
196 vsyssh-SPEC := vsyssh.spec
197 IN_SLICEIMAGE += vsyssh
203 vsys-scripts-MODULES := vsys-scripts
204 vsys-scripts-SPEC := vsys-scripts.spec
205 IN_NODEIMAGE += vsys-scripts
211 plcapi-MODULES := plcapi
212 plcapi-SPEC := PLCAPI.spec
219 drupal-MODULES := drupal
220 drupal-SPEC := drupal.spec
221 drupal-BUILD-FROM-SRPM := yes
226 # use the plewww module instead
228 plewww-MODULES := plewww
229 plewww-SPEC := plewww.spec
234 # www-register-wizard
236 www-register-wizard-MODULES := www-register-wizard
237 www-register-wizard-SPEC := www-register-wizard.spec
238 ALL += www-register-wizard
239 IN_MYPLC += www-register-wizard
244 pcucontrol-MODULES := pcucontrol
245 pcucontrol-SPEC := pcucontrol.spec
251 #monitor-MODULES := monitor
252 #monitor-SPEC := Monitor.spec
253 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
255 #IN_NODEIMAGE += monitor
260 plcrt-MODULES := PLCRT
261 plcrt-SPEC := plcrt.spec
264 # f12 has 0.9-1 already
265 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
269 pyopenssl-MODULES := pyopenssl
270 pyopenssl-SPEC := pyOpenSSL.spec
271 pyopenssl-BUILD-FROM-SRPM := yes
278 pyaspects-MODULES := pyaspects
279 pyaspects-SPEC := pyaspects.spec
280 pyaspects-BUILD-FROM-SRPM := yes
283 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
284 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
286 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
290 ifeq "$(build_sfa)" "true"
292 # sfa - Slice Facility Architecture
298 sface-MODULES := sface
299 sface-SPEC := sface.spec
306 nodeconfig-MODULES := nodeconfig
307 nodeconfig-SPEC := nodeconfig.spec
309 IN_MYPLC += nodeconfig
314 bootmanager-MODULES := bootmanager
315 bootmanager-SPEC := bootmanager.spec
317 IN_MYPLC += bootmanager
320 # pypcilib : used in bootcd
322 pypcilib-MODULES := pypcilib
323 pypcilib-SPEC := pypcilib.spec
325 IN_BOOTCD += pypcilib
330 pyplnet-MODULES := pyplnet
331 pyplnet-SPEC := pyplnet.spec
333 IN_NODEIMAGE += pyplnet
338 # OMF resource controller
340 omf-resctl-MODULES := omf
341 omf-resctl-SPEC := omf-resctl.spec
343 IN_SLICEIMAGE += omf-resctl
348 omf-expctl-MODULES := omf
349 omf-expctl-SPEC := omf-expctl.spec
355 bootcd-MODULES := bootcd build
356 bootcd-SPEC := bootcd.spec
357 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
358 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
359 bootcd-RPMDATE := yes
366 sliceimage-MODULES := sliceimage build
367 sliceimage-SPEC := sliceimage.spec
368 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
369 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
370 sliceimage-RPMDATE := yes
372 IN_NODEIMAGE += sliceimage
375 # lxc-specific sliceimage initialization
377 lxc-sliceimage-MODULES := sliceimage
378 lxc-sliceimage-SPEC := lxc-sliceimage.spec
379 lxc-sliceimage-RPMDATE := yes
380 ALL += lxc-sliceimage
381 IN_NODEIMAGE += lxc-sliceimage
386 nodeimage-MODULES := nodeimage build
387 nodeimage-SPEC := nodeimage.spec
388 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
389 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
390 nodeimage-RPMDATE := yes
392 IN_MYPLC += nodeimage
397 # all rpms resulting from packages marked as being in nodeimage and sliceimage
398 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
399 # replace space with +++ (specvars cannot deal with spaces)
401 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
403 noderepo-MODULES := nodeimage
404 noderepo-SPEC := noderepo.spec
405 # package requires all embedded packages
406 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
407 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
408 #export rpm list to the specfile
409 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
410 noderepo-RPMDATE := yes
417 # all rpms resulting from packages marked as being in vserver
418 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
419 # replace space with +++ (specvars cannot deal with spaces)
421 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
423 slicerepo-MODULES := nodeimage
424 slicerepo-SPEC := slicerepo.spec
425 # package requires all embedded packages
426 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
427 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
428 #export rpm list to the specfile
429 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
430 slicerepo-RPMDATE := yes
434 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
436 myplc-MODULES := myplc
437 myplc-SPEC := myplc.spec
438 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
441 # myplc-docs only contains docs for PLCAPI and NMAPI, but
442 # we still need to pull MyPLC, as it is where the specfile lies,
443 # together with the utility script docbook2drupal.sh
444 myplc-docs-MODULES := myplc plcapi nodemanager monitor
445 myplc-docs-SPEC := myplc-docs.spec
448 # using some other name than myplc-release, as this is a make target already
449 release-MODULES := myplc
450 release-SPEC := myplc-release.spec
451 release-RPMDATE := yes