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 # xxx temporarily turning this off
126 fprobe-ulog-MODULES := fprobe-ulog
127 fprobe-ulog-SPEC := fprobe-ulog.spec
129 #IN_NODEIMAGE += fprobe-ulog
131 #################### libvirt version selection
132 # settling with using version 1.2.1 on all fedoras
133 # although this does not solve the slice re-creation issue seen on f20
136 separate_libvirt_python=true
141 ifeq "$(local_libvirt)" "true"
143 libvirt-MODULES := libvirt
144 libvirt-SPEC := libvirt.spec
145 libvirt-BUILD-FROM-SRPM := yes
146 # The --without options are breaking spec2make : hard-wired in the specfile instead
147 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds
148 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
149 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
150 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
151 # for 1.2.1 - first seen on f20, not sure for the other ones
152 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
153 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
154 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
155 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-services netcf-devel
157 libvirt-STOCK-DEVEL-RPMS += wireshark-devel
159 IN_NODEREPO += libvirt
160 IN_NODEIMAGE += libvirt
167 ifeq "$(separate_libvirt_python)" "true"
169 libvirt-python-MODULES := libvirt-python
170 libvirt-python-SPEC := libvirt-python.spec
171 libvirt-python-BUILD-FROM-SRPM := yes
172 libvirt-python-STOCK-DEVEL-RPMS += pm-utils
174 libvirt-python-STOCK-DEVEL-RPMS += python-nose
175 # it would make sense to do something like this if we wanted to
176 # build against python3 as well, but for now I turned this feature off
178 #ifeq "$(distro)" "Fedora"
179 #xxx if $(distrorelease) > 18
180 #libvirt-python-STOCK-DEVEL-RPMS += python3-devel python3-nose python3-lxml
183 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
184 libvirt-python-RPMFLAGS := --define 'packager PlanetLab'
185 ALL += libvirt-python
186 IN_NODEREPO += libvirt-python
187 IN_NODEIMAGE += libvirt-python
192 # DistributedRateLimiting
194 #DistributedRateLimiting-MODULES := DistributedRateLimiting
195 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
196 #ALL += DistributedRateLimiting
197 #IN_NODEREPO += DistributedRateLimiting
202 pf2slice-MODULES := pf2slice
203 pf2slice-SPEC := pf2slice.spec
207 ## PlanetLab Mom: Cleans up your mess
210 #mom-SPEC := pl_mom.spec
217 # openvswitch-MODULES := openvswitch
218 # openvswitch-SPEC := openvswitch.spec
219 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
220 # IN_NODEIMAGE += openvswitch
221 # # build only on f14 as f16 has this natively
222 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
230 vsys-SPEC := vsys.spec
231 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
232 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
237 # vsyssh : installed in slivers
239 vsyssh-MODULES := vsys
240 vsyssh-SPEC := vsyssh.spec
241 IN_SLICEIMAGE += vsyssh
247 vsys-scripts-MODULES := vsys-scripts
248 vsys-scripts-SPEC := root-context/vsys-scripts.spec
249 IN_NODEIMAGE += vsys-scripts
252 vsys-wrapper-MODULES := vsys-scripts
253 vsys-wrapper-SPEC := slice-context/vsys-wrapper.spec
254 IN_SLICEIMAGE += vsys-wrapper
260 bind_public-MODULES := bind_public
261 bind_public-SPEC := bind_public.spec
262 IN_SLICEIMAGE += bind_public
268 sliver-openvswitch-MODULES := sliver-openvswitch
269 sliver-openvswitch-SPEC := sliver-openvswitch.spec
270 IN_SLICEIMAGE += sliver-openvswitch
271 ALL += sliver-openvswitch
276 plcapi-MODULES := plcapi
277 plcapi-SPEC := plcapi.spec
284 drupal-MODULES := drupal
285 drupal-SPEC := drupal.spec
286 drupal-BUILD-FROM-SRPM := yes
291 # use the plewww module instead
293 plewww-MODULES := plewww
294 plewww-SPEC := plewww.spec
299 # www-register-wizard
301 www-register-wizard-MODULES := www-register-wizard
302 www-register-wizard-SPEC := www-register-wizard.spec
303 ALL += www-register-wizard
304 IN_MYPLC += www-register-wizard
309 pcucontrol-MODULES := pcucontrol
310 pcucontrol-SPEC := pcucontrol.spec
316 #monitor-MODULES := monitor
317 #monitor-SPEC := Monitor.spec
318 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
320 #IN_NODEIMAGE += monitor
325 plcrt-MODULES := PLCRT
326 plcrt-SPEC := plcrt.spec
329 # f12 has 0.9-1 already
330 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
334 pyopenssl-MODULES := pyopenssl
335 pyopenssl-SPEC := pyOpenSSL.spec
336 pyopenssl-BUILD-FROM-SRPM := yes
343 pyaspects-MODULES := pyaspects
344 pyaspects-SPEC := pyaspects.spec
345 pyaspects-BUILD-FROM-SRPM := yes
351 nodeconfig-MODULES := nodeconfig
352 nodeconfig-SPEC := nodeconfig.spec
354 IN_MYPLC += nodeconfig
359 bootmanager-MODULES := bootmanager
360 bootmanager-SPEC := bootmanager.spec
362 IN_MYPLC += bootmanager
365 # pypcilib : used in bootcd
367 pypcilib-MODULES := pypcilib
368 pypcilib-SPEC := pypcilib.spec
370 IN_BOOTCD += pypcilib
375 pyplnet-MODULES := pyplnet
376 pyplnet-SPEC := pyplnet.spec
378 IN_NODEIMAGE += pyplnet
383 # OML measurement library
386 oml-STOCK-DEVEL-RPMS += sqlite-devel
387 oml-SPEC := liboml.spec
393 bootcd-MODULES := bootcd build
394 bootcd-SPEC := bootcd.spec
395 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
396 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
397 bootcd-RPMDATE := yes
404 sliceimage-MODULES := sliceimage build
405 sliceimage-SPEC := sliceimage.spec
406 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
407 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
408 sliceimage-RPMDATE := yes
410 IN_NODEIMAGE += sliceimage
413 # lxc-specific sliceimage initialization
415 lxc-sliceimage-MODULES := sliceimage
416 lxc-sliceimage-SPEC := lxc-sliceimage.spec
417 lxc-sliceimage-RPMDATE := yes
418 ALL += lxc-sliceimage
419 IN_NODEIMAGE += lxc-sliceimage
424 nodeimage-MODULES := nodeimage build
425 nodeimage-SPEC := nodeimage.spec
426 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
427 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
428 nodeimage-RPMDATE := yes
430 IN_MYPLC += nodeimage
435 # all rpms resulting from packages marked as being in nodeimage and sliceimage
436 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
437 # replace space with +++ (specvars cannot deal with spaces)
439 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
441 noderepo-MODULES := nodeimage
442 noderepo-SPEC := noderepo.spec
443 # package requires all embedded packages
444 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
445 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
446 #export rpm list to the specfile
447 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
448 noderepo-RPMDATE := yes
455 # all rpms resulting from packages marked as being in vserver
456 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
457 # replace space with +++ (specvars cannot deal with spaces)
459 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
461 slicerepo-MODULES := nodeimage
462 slicerepo-SPEC := slicerepo.spec
463 # package requires all embedded packages
464 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
465 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
466 #export rpm list to the specfile
467 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
468 slicerepo-RPMDATE := yes
472 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
474 myplc-MODULES := myplc
475 myplc-SPEC := myplc.spec
476 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
479 # myplc-docs only contains docs for PLCAPI and NMAPI, but
480 # we still need to pull MyPLC, as it is where the specfile lies,
481 # together with the utility script docbook2drupal.sh
482 myplc-docs-MODULES := myplc plcapi nodemanager monitor
483 myplc-docs-SPEC := myplc-docs.spec
486 # using some other name than myplc-release, as this is a make target already
487 release-MODULES := myplc
488 release-SPEC := myplc-release.spec
489 release-RPMDATE := yes
492 ##############################
494 # sfa - Slice Facility Architecture