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-lib-MODULES := nodemanager
62 nodemanager-lib-SPEC := nodemanager-lib.spec
63 ALL += nodemanager-lib
64 IN_NODEIMAGE += nodemanager-lib
66 nodemanager-lxc-MODULES := nodemanager
67 nodemanager-lxc-SPEC := nodemanager-lxc.spec
68 ALL += nodemanager-lxc
69 IN_NODEIMAGE += nodemanager-lxc
74 sshd-MODULES := pl_sshd
75 sshd-SPEC := pl_sshd.spec
80 # codemux: Port 80 demux
82 codemux-MODULES := codemux
83 codemux-SPEC := codemux.spec
85 IN_NODEIMAGE += codemux
90 fprobe-ulog-MODULES := fprobe-ulog
91 fprobe-ulog-SPEC := fprobe-ulog.spec
93 IN_NODEIMAGE += fprobe-ulog
98 libvirt-MODULES := libvirt
99 libvirt-SPEC := libvirt.spec
100 libvirt-BUILD-FROM-SRPM := yes
101 libvirt-DEVEL-RPMS += libxml2-devel gnutls-devel device-mapper-devel yajl-devel gettext
102 libvirt-DEVEL-RPMS += python-devel libcap-ng-devel libpciaccess-devel radvd numactl-devel
103 libvirt-DEVEL-RPMS += xhtml1-dtds libxslt libtasn1-devel systemtap-sdt-devel iptables-ipv6 augeas
104 libvirt-DEVEL-RPMS += libudev-devel
105 libvirt-RPMFLAGS := --without storage-disk --without storage-iscsi --without storage-scsi \
106 --without storage-fs --without storage-lvm \
107 --without polkit --without sasl --without audit --with capng --with udev \
108 --without netcf --without avahi --without sanlock \
109 --without xen --without qemu --without hyperv --without phyp --without esx \
111 --define 'packager PlanetLab'
113 IN_NODEREPO += libvirt
114 IN_NODEIMAGE += libvirt
117 # DistributedRateLimiting
119 #DistributedRateLimiting-MODULES := DistributedRateLimiting
120 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
121 #ALL += DistributedRateLimiting
122 #IN_NODEREPO += DistributedRateLimiting
127 pf2slice-MODULES := pf2slice
128 pf2slice-SPEC := pf2slice.spec
132 ## PlanetLab Mom: Cleans up your mess
135 #mom-SPEC := pl_mom.spec
140 # inotify-tools - local import
141 # rebuild this on centos5 (not found) - see yumexclude
143 local_inotify_tools=false
144 ifeq "$(DISTRONAME)" "centos5"
145 local_inotify_tools=true
148 ifeq "$(DISTRONAME)" "sl6"
149 local_inotify_tools=true
152 ifeq "$(local_inotify_tools)" "true"
153 inotify-tools-MODULES := inotify-tools
154 inotify-tools-SPEC := inotify-tools.spec
155 inotify-tools-BUILD-FROM-SRPM := yes
156 IN_NODEIMAGE += inotify-tools
163 # openvswitch-MODULES := openvswitch
164 # openvswitch-SPEC := openvswitch.spec
165 # openvswitch-DEPEND-DEVEL-RPMS += kernel-devel
166 # IN_NODEIMAGE += openvswitch
167 # # build only on f14 as f16 has this natively
168 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
176 vsys-SPEC := vsys.spec
177 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
178 vsys-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
179 ifeq "$(local_inotify_tools)" "true"
180 vsys-DEPEND-DEVEL-RPMS += inotify-tools inotify-tools-devel
186 # vsyssh : installed in slivers
188 vsyssh-MODULES := vsys
189 vsyssh-SPEC := vsyssh.spec
190 IN_SLICEIMAGE += vsyssh
196 vsys-scripts-MODULES := vsys-scripts
197 vsys-scripts-SPEC := vsys-scripts.spec
198 IN_NODEIMAGE += vsys-scripts
204 plcapi-MODULES := plcapi
205 plcapi-SPEC := PLCAPI.spec
212 drupal-MODULES := drupal
213 drupal-SPEC := drupal.spec
214 drupal-BUILD-FROM-SRPM := yes
219 # use the plewww module instead
221 plewww-MODULES := plewww
222 plewww-SPEC := plewww.spec
227 # www-register-wizard
229 www-register-wizard-MODULES := www-register-wizard
230 www-register-wizard-SPEC := www-register-wizard.spec
231 ALL += www-register-wizard
232 IN_MYPLC += www-register-wizard
237 pcucontrol-MODULES := pcucontrol
238 pcucontrol-SPEC := pcucontrol.spec
244 #monitor-MODULES := monitor
245 #monitor-SPEC := Monitor.spec
246 #monitor-DEVEL-RPMS += net-snmp net-snmp-devel
248 #IN_NODEIMAGE += monitor
253 plcrt-MODULES := PLCRT
254 plcrt-SPEC := plcrt.spec
257 # f12 has 0.9-1 already
258 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
262 pyopenssl-MODULES := pyopenssl
263 pyopenssl-SPEC := pyOpenSSL.spec
264 pyopenssl-BUILD-FROM-SRPM := yes
271 pyaspects-MODULES := pyaspects
272 pyaspects-SPEC := pyaspects.spec
273 pyaspects-BUILD-FROM-SRPM := yes
276 # sfa now uses the with statement that's not supported on python-2.4 - not even through __future__
277 # In addition we now use sqlalchemy and 0.5 as per f12 is not compatible with our model
279 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 f12 centos5)"
283 ifeq "$(build_sfa)" "true"
285 # sfa - Slice Facility Architecture
291 sface-MODULES := sface
292 sface-SPEC := sface.spec
299 nodeconfig-MODULES := nodeconfig
300 nodeconfig-SPEC := nodeconfig.spec
302 IN_MYPLC += nodeconfig
307 bootmanager-MODULES := bootmanager
308 bootmanager-SPEC := bootmanager.spec
310 IN_MYPLC += bootmanager
313 # pypcilib : used in bootcd
315 pypcilib-MODULES := pypcilib
316 pypcilib-SPEC := pypcilib.spec
318 IN_BOOTCD += pypcilib
323 pyplnet-MODULES := pyplnet
324 pyplnet-SPEC := pyplnet.spec
326 IN_NODEIMAGE += pyplnet
331 # OMF resource controller
333 omf-resctl-MODULES := omf
334 omf-resctl-SPEC := omf-resctl.spec
336 IN_SLICEIMAGE += omf-resctl
341 omf-expctl-MODULES := omf
342 omf-expctl-SPEC := omf-expctl.spec
348 bootcd-MODULES := bootcd build
349 bootcd-SPEC := bootcd.spec
350 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
351 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
352 bootcd-RPMDATE := yes
359 sliceimage-MODULES := sliceimage build
360 sliceimage-SPEC := sliceimage.spec
361 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
362 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
363 sliceimage-RPMDATE := yes
365 IN_NODEIMAGE += sliceimage
368 # lxc-specific sliceimage initialization
370 lxc-sliceimage-MODULES := sliceimage
371 lxc-sliceimage-SPEC := lxc-sliceimage.spec
372 lxc-sliceimage-RPMDATE := yes
373 ALL += lxc-sliceimage
374 IN_NODEIMAGE += lxc-sliceimage
379 nodeimage-MODULES := nodeimage build
380 nodeimage-SPEC := nodeimage.spec
381 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
382 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
383 nodeimage-RPMDATE := yes
385 IN_MYPLC += nodeimage
390 # all rpms resulting from packages marked as being in nodeimage and sliceimage
391 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
392 # replace space with +++ (specvars cannot deal with spaces)
394 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
396 noderepo-MODULES := nodeimage
397 noderepo-SPEC := noderepo.spec
398 # package requires all embedded packages
399 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
400 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
401 #export rpm list to the specfile
402 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
403 noderepo-RPMDATE := yes
410 # all rpms resulting from packages marked as being in vserver
411 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
412 # replace space with +++ (specvars cannot deal with spaces)
414 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
416 slicerepo-MODULES := nodeimage
417 slicerepo-SPEC := slicerepo.spec
418 # package requires all embedded packages
419 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
420 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
421 #export rpm list to the specfile
422 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
423 slicerepo-RPMDATE := yes
427 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
429 myplc-MODULES := myplc
430 myplc-SPEC := myplc.spec
431 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
434 # myplc-docs only contains docs for PLCAPI and NMAPI, but
435 # we still need to pull MyPLC, as it is where the specfile lies,
436 # together with the utility script docbook2drupal.sh
437 myplc-docs-MODULES := myplc plcapi nodemanager monitor
438 myplc-docs-SPEC := myplc-docs.spec
441 # using some other name than myplc-release, as this is a make target already
442 release-MODULES := myplc
443 release-SPEC := myplc-release.spec
444 release-RPMDATE := yes