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 procprotect-MODULES := procprotect
34 procprotect-SPEC := procprotect.spec
36 IN_NODEIMAGE += procprotect
39 # ipfw: root context module, and slice companion
41 ipfwroot-MODULES := ipfw
42 ipfwroot-SPEC := planetlab/ipfwroot.spec
44 IN_NODEIMAGE += ipfwroot
46 ipfwslice-MODULES := ipfw
47 ipfwslice-SPEC := planetlab/ipfwslice.spec
51 # comgt - a companion to umts tools
53 comgt-MODULES := comgt
54 comgt-SPEC := comgt.spec
59 # umts: root context stuff
61 umts-backend-MODULES := planetlab-umts-tools
62 umts-backend-SPEC := backend.spec
63 IN_NODEIMAGE += umts-backend
69 umts-frontend-MODULES := planetlab-umts-tools
70 umts-frontend-SPEC := frontend.spec
71 IN_SLICEIMAGE += umts-frontend
77 nodeupdate-MODULES := nodeupdate
78 nodeupdate-SPEC := NodeUpdate.spec
80 IN_NODEIMAGE += nodeupdate
85 ipod-MODULES := PingOfDeath
86 ipod-SPEC := ipod.spec
93 plnode-utils-MODULES := plnode-utils
94 plnode-utils-SPEC := plnode-utils-lxc.spec
96 IN_NODEIMAGE += plnode-utils
101 nodemanager-MODULES := nodemanager
102 nodemanager-SPEC := nodemanager.spec
104 IN_NODEIMAGE += nodemanager
109 sshd-MODULES := pl_sshd
110 sshd-SPEC := pl_sshd.spec
115 # codemux: Port 80 demux
117 codemux-MODULES := codemux
118 codemux-SPEC := codemux.spec
120 IN_NODEIMAGE += codemux
125 fprobe-ulog-MODULES := fprobe-ulog
126 fprobe-ulog-SPEC := fprobe-ulog.spec
128 IN_NODEIMAGE += fprobe-ulog
130 #################### libvirt version selection
131 # settling with using version 1.2.1 on all fedoras
132 # although this does not solve the slice re-creation issue seen on f20
135 separate_libvirt_python=true
140 ifeq "$(local_libvirt)" "true"
142 libvirt-MODULES := libvirt
143 libvirt-SPEC := libvirt.spec
144 libvirt-BUILD-FROM-SRPM := yes
145 # The --without options are breaking spec2make : hard-wired in the specfile instead
146 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
147 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
148 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
149 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
150 # for 1.2.1 - first seen on f20, not sure for the other ones
151 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
152 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
153 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
154 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
156 IN_NODEREPO += libvirt
157 IN_NODEIMAGE += libvirt
164 ifeq "$(separate_libvirt_python)" "true"
166 libvirt-python-MODULES := libvirt-python
167 libvirt-python-SPEC := libvirt-python.spec
168 libvirt-python-BUILD-FROM-SRPM := yes
169 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
170 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
171 libvirt-python-RPMFLAGS := --define 'packager PlanetLab'
172 ALL += libvirt-python
173 IN_NODEREPO += libvirt-python
174 IN_NODEIMAGE += libvirt-python
179 # DistributedRateLimiting
181 #DistributedRateLimiting-MODULES := DistributedRateLimiting
182 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
183 #ALL += DistributedRateLimiting
184 #IN_NODEREPO += DistributedRateLimiting
189 pf2slice-MODULES := pf2slice
190 pf2slice-SPEC := pf2slice.spec
194 ## PlanetLab Mom: Cleans up your mess
197 #mom-SPEC := pl_mom.spec
204 # openvswitch-MODULES := openvswitch
205 # openvswitch-SPEC := openvswitch.spec
206 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
207 # IN_NODEIMAGE += openvswitch
208 # # build only on f14 as f16 has this natively
209 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
217 vsys-SPEC := vsys.spec
218 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
219 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
224 # vsyssh : installed in slivers
226 vsyssh-MODULES := vsys
227 vsyssh-SPEC := vsyssh.spec
228 IN_SLICEIMAGE += vsyssh
234 vsys-scripts-MODULES := vsys-scripts
235 vsys-scripts-SPEC := root-context/vsys-scripts.spec
236 IN_NODEIMAGE += vsys-scripts
239 vsys-wrapper-MODULES := vsys-scripts
240 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
241 IN_SLICEIMAGE += vsys-wrapper
247 bind_public-MODULES := bind_public
248 bind_public-SPEC := bind_public.spec
249 IN_SLICEIMAGE += bind_public
255 sliver-openvswitch-MODULES := sliver-openvswitch
256 sliver-openvswitch-SPEC := sliver-openvswitch.spec
257 IN_SLICEIMAGE += sliver-openvswitch
258 ALL += sliver-openvswitch
263 plcapi-MODULES := plcapi
264 plcapi-SPEC := plcapi.spec
271 drupal-MODULES := drupal
272 drupal-SPEC := drupal.spec
273 drupal-BUILD-FROM-SRPM := yes
278 # use the plewww module instead
280 plewww-MODULES := plewww
281 plewww-SPEC := plewww.spec
286 # www-register-wizard
288 www-register-wizard-MODULES := www-register-wizard
289 www-register-wizard-SPEC := www-register-wizard.spec
290 ALL += www-register-wizard
291 IN_MYPLC += www-register-wizard
296 pcucontrol-MODULES := pcucontrol
297 pcucontrol-SPEC := pcucontrol.spec
303 #monitor-MODULES := monitor
304 #monitor-SPEC := Monitor.spec
305 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
307 #IN_NODEIMAGE += monitor
312 plcrt-MODULES := PLCRT
313 plcrt-SPEC := plcrt.spec
316 # f12 has 0.9-1 already
317 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
321 pyopenssl-MODULES := pyopenssl
322 pyopenssl-SPEC := pyOpenSSL.spec
323 pyopenssl-BUILD-FROM-SRPM := yes
330 pyaspects-MODULES := pyaspects
331 pyaspects-SPEC := pyaspects.spec
332 pyaspects-BUILD-FROM-SRPM := yes
338 nodeconfig-MODULES := nodeconfig
339 nodeconfig-SPEC := nodeconfig.spec
341 IN_MYPLC += nodeconfig
346 bootmanager-MODULES := bootmanager
347 bootmanager-SPEC := bootmanager.spec
349 IN_MYPLC += bootmanager
352 # pypcilib : used in bootcd
354 pypcilib-MODULES := pypcilib
355 pypcilib-SPEC := pypcilib.spec
357 IN_BOOTCD += pypcilib
362 pyplnet-MODULES := pyplnet
363 pyplnet-SPEC := pyplnet.spec
365 IN_NODEIMAGE += pyplnet
370 # OML measurement library
373 oml-STOCK-DEVEL-RPMS += sqlite-devel
374 oml-SPEC := liboml.spec
380 bootcd-MODULES := bootcd build
381 bootcd-SPEC := bootcd.spec
382 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
383 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
384 bootcd-RPMDATE := yes
391 sliceimage-MODULES := sliceimage build
392 sliceimage-SPEC := sliceimage.spec
393 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
394 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
395 sliceimage-RPMDATE := yes
397 IN_NODEIMAGE += sliceimage
400 # lxc-specific sliceimage initialization
402 lxc-sliceimage-MODULES := sliceimage
403 lxc-sliceimage-SPEC := lxc-sliceimage.spec
404 lxc-sliceimage-RPMDATE := yes
405 ALL += lxc-sliceimage
406 IN_NODEIMAGE += lxc-sliceimage
411 nodeimage-MODULES := nodeimage build
412 nodeimage-SPEC := nodeimage.spec
413 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
414 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
415 nodeimage-RPMDATE := yes
417 IN_MYPLC += nodeimage
422 # all rpms resulting from packages marked as being in nodeimage and sliceimage
423 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
424 # replace space with +++ (specvars cannot deal with spaces)
426 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
428 noderepo-MODULES := nodeimage
429 noderepo-SPEC := noderepo.spec
430 # package requires all embedded packages
431 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
432 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
433 #export rpm list to the specfile
434 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
435 noderepo-RPMDATE := yes
442 # all rpms resulting from packages marked as being in vserver
443 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
444 # replace space with +++ (specvars cannot deal with spaces)
446 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
448 slicerepo-MODULES := nodeimage
449 slicerepo-SPEC := slicerepo.spec
450 # package requires all embedded packages
451 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
452 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
453 #export rpm list to the specfile
454 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
455 slicerepo-RPMDATE := yes
459 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
461 myplc-MODULES := myplc
462 myplc-SPEC := myplc.spec
463 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
466 # myplc-docs only contains docs for PLCAPI and NMAPI, but
467 # we still need to pull MyPLC, as it is where the specfile lies,
468 # together with the utility script docbook2drupal.sh
469 myplc-docs-MODULES := myplc plcapi nodemanager monitor
470 myplc-docs-SPEC := myplc-docs.spec
473 # using some other name than myplc-release, as this is a make target already
474 release-MODULES := myplc
475 release-SPEC := myplc-release.spec
476 release-RPMDATE := yes
479 ##############################
481 # sfa - Slice Facility Architecture