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
11 ### the madwifi drivers ship with fedora16's kernel rpm
14 # lxc-userspace: scripts for entering containers
16 lxc-userspace-MODULES := lxc-userspace
17 lxc-userspace-SPEC := lxc-userspace.spec
19 IN_NODEIMAGE += lxc-userspace
23 # transforward: root context module for transparent port forwarding
25 transforward-MODULES := transforward
26 transforward-SPEC := transforward.spec
28 IN_NODEIMAGE += transforward
31 # procprotect: root context module for protecting against weaknesses in /proc
33 ### an attempt to remove procprotect from the nodes on f21 now that it has 3.19
34 # xxx if that works then we should also tweak nodeimage.pkgs accordingly
35 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21)"
36 procprotect-MODULES := procprotect
37 procprotect-SPEC := procprotect.spec
39 IN_NODEIMAGE += procprotect
43 # ipfw: root context module, and slice companion
45 ipfwroot-MODULES := ipfw
46 ipfwroot-SPEC := planetlab/ipfwroot.spec
48 IN_NODEIMAGE += ipfwroot
50 ipfwslice-MODULES := ipfw
51 ipfwslice-SPEC := planetlab/ipfwslice.spec
55 # comgt - a companion to umts tools
57 comgt-MODULES := comgt
58 comgt-SPEC := comgt.spec
63 # umts: root context stuff
65 umts-backend-MODULES := planetlab-umts-tools
66 umts-backend-SPEC := backend.spec
67 IN_NODEIMAGE += umts-backend
73 umts-frontend-MODULES := planetlab-umts-tools
74 umts-frontend-SPEC := frontend.spec
75 IN_SLICEIMAGE += umts-frontend
81 nodeupdate-MODULES := nodeupdate
82 nodeupdate-SPEC := NodeUpdate.spec
84 IN_NODEIMAGE += nodeupdate
89 ipod-MODULES := PingOfDeath
90 ipod-SPEC := ipod.spec
97 plnode-utils-MODULES := plnode-utils
98 plnode-utils-SPEC := plnode-utils-lxc.spec
100 IN_NODEIMAGE += plnode-utils
105 nodemanager-MODULES := nodemanager
106 nodemanager-SPEC := nodemanager.spec
108 IN_NODEIMAGE += nodemanager
113 sshd-MODULES := pl_sshd
114 sshd-SPEC := pl_sshd.spec
119 # codemux: Port 80 demux
121 codemux-MODULES := codemux
122 codemux-SPEC := codemux.spec
124 IN_NODEIMAGE += codemux
129 # xxx temporarily turning this off on f20 and f21
130 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f20 f21)"
131 fprobe-ulog-MODULES := fprobe-ulog
132 fprobe-ulog-SPEC := fprobe-ulog.spec
134 IN_NODEIMAGE += fprobe-ulog
137 #################### libvirt version selection
138 # settling with using version 1.2.1 on all fedoras
139 # although this does not solve the slice re-creation issue seen on f20
142 separate_libvirt_python=true
147 ifeq "$(local_libvirt)" "true"
149 libvirt-MODULES := libvirt
150 libvirt-SPEC := libvirt.spec
151 libvirt-BUILD-FROM-SRPM := yes
152 # The --without options are breaking spec2make : hard-wired in the specfile instead
153 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
154 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
155 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
156 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
157 # for 1.2.1 - first seen on f20, not sure for the other ones
158 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
159 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
160 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
161 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
163 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
164 libvirt-STOCK-DEVEL-RPMS += ceph-devel-compat
166 IN_NODEREPO += libvirt
167 IN_NODEIMAGE += libvirt
174 ifeq "$(separate_libvirt_python)" "true"
176 libvirt-python-MODULES := libvirt-python
177 libvirt-python-SPEC := libvirt-python.spec
178 libvirt-python-BUILD-FROM-SRPM := yes
179 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
181 libvirt-python-STOCK-DEVEL-RPMS += python-nose
182 # it would make sense to do something like this if we wanted to
183 # build against python3 as well, but for now I turned this feature off
185 #ifeq "$(distro)" "Fedora"
186 #xxx if $(distrorelease) > 18
187 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
190 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
191 libvirt-python-RPMFLAGS := --define 'packager PlanetLab'
192 ALL += libvirt-python
193 IN_NODEREPO += libvirt-python
194 IN_NODEIMAGE += libvirt-python
199 # DistributedRateLimiting
201 #DistributedRateLimiting-MODULES := DistributedRateLimiting
202 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
203 #ALL += DistributedRateLimiting
204 #IN_NODEREPO += DistributedRateLimiting
209 pf2slice-MODULES := pf2slice
210 pf2slice-SPEC := pf2slice.spec
214 ## PlanetLab Mom: Cleans up your mess
217 #mom-SPEC := pl_mom.spec
224 # openvswitch-MODULES := openvswitch
225 # openvswitch-SPEC := openvswitch.spec
226 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
227 # IN_NODEIMAGE += openvswitch
228 # # build only on f14 as f16 has this natively
229 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
237 vsys-SPEC := vsys.spec
238 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
239 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
244 # vsyssh : installed in slivers
246 vsyssh-MODULES := vsys
247 vsyssh-SPEC := vsyssh.spec
248 IN_SLICEIMAGE += vsyssh
254 vsys-scripts-MODULES := vsys-scripts
255 vsys-scripts-SPEC := root-context/vsys-scripts.spec
256 IN_NODEIMAGE += vsys-scripts
259 # xxx temporarily turning this off on f21
260 ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f21)"
261 vsys-wrapper-MODULES := vsys-scripts
262 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
263 IN_SLICEIMAGE += vsys-wrapper
270 bind_public-MODULES := bind_public
271 bind_public-SPEC := bind_public.spec
272 IN_SLICEIMAGE += bind_public
278 sliver-openvswitch-MODULES := sliver-openvswitch
279 sliver-openvswitch-SPEC := sliver-openvswitch.spec
280 IN_SLICEIMAGE += sliver-openvswitch
281 ALL += sliver-openvswitch
286 plcapi-MODULES := plcapi
287 plcapi-SPEC := plcapi.spec
294 drupal-MODULES := drupal
295 drupal-SPEC := drupal.spec
296 drupal-BUILD-FROM-SRPM := yes
301 # use the plewww module instead
303 plewww-MODULES := plewww
304 plewww-SPEC := plewww.spec
309 # www-register-wizard
311 www-register-wizard-MODULES := www-register-wizard
312 www-register-wizard-SPEC := www-register-wizard.spec
313 ALL += www-register-wizard
314 IN_MYPLC += www-register-wizard
319 pcucontrol-MODULES := pcucontrol
320 pcucontrol-SPEC := pcucontrol.spec
326 #monitor-MODULES := monitor
327 #monitor-SPEC := Monitor.spec
328 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
330 #IN_NODEIMAGE += monitor
335 plcrt-MODULES := PLCRT
336 plcrt-SPEC := plcrt.spec
339 # f12 has 0.9-1 already
340 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
344 pyopenssl-MODULES := pyopenssl
345 pyopenssl-SPEC := pyOpenSSL.spec
346 pyopenssl-BUILD-FROM-SRPM := yes
353 pyaspects-MODULES := pyaspects
354 pyaspects-SPEC := pyaspects.spec
355 pyaspects-BUILD-FROM-SRPM := yes
361 nodeconfig-MODULES := nodeconfig
362 nodeconfig-SPEC := nodeconfig.spec
364 IN_MYPLC += nodeconfig
369 bootmanager-MODULES := bootmanager
370 bootmanager-SPEC := bootmanager.spec
372 IN_MYPLC += bootmanager
375 # pypcilib : used in bootcd
377 pypcilib-MODULES := pypcilib
378 pypcilib-SPEC := pypcilib.spec
380 IN_BOOTCD += pypcilib
385 pyplnet-MODULES := pyplnet
386 pyplnet-SPEC := pyplnet.spec
388 IN_NODEIMAGE += pyplnet
393 # OML measurement library
396 oml-STOCK-DEVEL-RPMS += sqlite-devel
397 oml-SPEC := liboml.spec
403 bootcd-MODULES := bootcd build
404 bootcd-SPEC := bootcd.spec
405 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
406 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
407 bootcd-RPMDATE := yes
414 sliceimage-MODULES := sliceimage build
415 sliceimage-SPEC := sliceimage.spec
416 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
417 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
418 sliceimage-RPMDATE := yes
420 IN_NODEIMAGE += sliceimage
423 # lxc-specific sliceimage initialization
425 lxc-sliceimage-MODULES := sliceimage
426 lxc-sliceimage-SPEC := lxc-sliceimage.spec
427 lxc-sliceimage-RPMDATE := yes
428 ALL += lxc-sliceimage
429 IN_NODEIMAGE += lxc-sliceimage
434 nodeimage-MODULES := nodeimage build
435 nodeimage-SPEC := nodeimage.spec
436 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
437 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
438 nodeimage-RPMDATE := yes
440 IN_MYPLC += nodeimage
445 # all rpms resulting from packages marked as being in nodeimage and sliceimage
446 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
447 # replace space with +++ (specvars cannot deal with spaces)
449 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
451 noderepo-MODULES := nodeimage
452 noderepo-SPEC := noderepo.spec
453 # package requires all embedded packages
454 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
455 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
456 #export rpm list to the specfile
457 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
458 noderepo-RPMDATE := yes
465 # all rpms resulting from packages marked as being in vserver
466 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
467 # replace space with +++ (specvars cannot deal with spaces)
469 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
471 slicerepo-MODULES := nodeimage
472 slicerepo-SPEC := slicerepo.spec
473 # package requires all embedded packages
474 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
475 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
476 #export rpm list to the specfile
477 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
478 slicerepo-RPMDATE := yes
482 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
484 myplc-MODULES := myplc
485 myplc-SPEC := myplc.spec
486 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
489 # myplc-docs only contains docs for PLCAPI and NMAPI, but
490 # we still need to pull MyPLC, as it is where the specfile lies,
491 # together with the utility script docbook2drupal.sh
492 myplc-docs-MODULES := myplc plcapi nodemanager monitor
493 myplc-docs-SPEC := myplc-docs.spec
496 # using some other name than myplc-release, as this is a make target already
497 release-MODULES := myplc
498 release-SPEC := myplc-release.spec
499 release-RPMDATE := yes
502 ##############################
504 # sfa - Slice Facility Architecture