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 # this module won't build yet under f20
42 ifeq "$(DISTRONAME)" "f18"
43 ipfwroot-MODULES := ipfw
44 ipfwroot-SPEC := planetlab/ipfwroot.spec
46 IN_NODEIMAGE += ipfwroot
48 ipfwslice-MODULES := ipfw
49 ipfwslice-SPEC := planetlab/ipfwslice.spec
54 # comgt - a companion to umts tools
56 comgt-MODULES := comgt
57 comgt-SPEC := comgt.spec
62 # umts: root context stuff
64 umts-backend-MODULES := planetlab-umts-tools
65 umts-backend-SPEC := backend.spec
66 IN_NODEIMAGE += umts-backend
72 umts-frontend-MODULES := planetlab-umts-tools
73 umts-frontend-SPEC := frontend.spec
74 IN_SLICEIMAGE += umts-frontend
80 nodeupdate-MODULES := nodeupdate
81 nodeupdate-SPEC := NodeUpdate.spec
83 IN_NODEIMAGE += nodeupdate
88 ipod-MODULES := PingOfDeath
89 ipod-SPEC := ipod.spec
96 plnode-utils-MODULES := plnode-utils
97 plnode-utils-SPEC := plnode-utils-lxc.spec
99 IN_NODEIMAGE += plnode-utils
104 nodemanager-MODULES := nodemanager
105 nodemanager-SPEC := nodemanager.spec
107 IN_NODEIMAGE += nodemanager
112 sshd-MODULES := pl_sshd
113 sshd-SPEC := pl_sshd.spec
118 # codemux: Port 80 demux
120 codemux-MODULES := codemux
121 codemux-SPEC := codemux.spec
123 IN_NODEIMAGE += codemux
128 fprobe-ulog-MODULES := fprobe-ulog
129 fprobe-ulog-SPEC := fprobe-ulog.spec
131 IN_NODEIMAGE += fprobe-ulog
133 #################### libvirt version selection
134 # settling with using version 1.2.1 on all fedoras
135 # although this does not solve the slice re-creation issue seen on f20
138 separate_libvirt_python=true
143 ifeq "$(local_libvirt)" "true"
145 libvirt-MODULES := libvirt
146 libvirt-SPEC := libvirt.spec
147 libvirt-BUILD-FROM-SRPM := yes
148 # The --without options are breaking spec2make : hard-wired in the specfile instead
149 libvirt-STOCK-DEVEL-RPMS += xhtml1-dtds gettext gettext-devel libtasn1-devel gnutls-devel
150 libvirt-STOCK-DEVEL-RPMS += libattr-devel augeas libpciaccess-devel yajl-devel
151 libvirt-STOCK-DEVEL-RPMS += libpcap-devel radvd ebtables device-mapper-devel
152 libvirt-STOCK-DEVEL-RPMS += ceph-devel numactl-devel libcap-ng-devel scrub
153 # for 1.2.1 - first seen on f20, not sure for the other ones
154 libvirt-STOCK-DEVEL-RPMS += libblkid-devel glusterfs-api-devel glusterfs-devel
155 # strictly speaking fuse-devel is not required anymore but we might wish to turn fuse back on again in the future
156 libvirt-STOCK-DEVEL-RPMS += fuse-devel libssh2-devel dbus-devel numad
157 libvirt-STOCK-DEVEL-RPMS += systemd-devel libnl3-devel iptables-ipv6 libgcrypt-devel netcf-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 += gnutls-utils nc pm-utils
173 libvirt-python-LOCAL-DEVEL-RPMS += libvirt-devel libvirt-docs libvirt-client
174 libvirt-python-RPMFLAGS := --define 'packager PlanetLab'
175 ALL += libvirt-python
176 IN_NODEREPO += libvirt-python
177 IN_NODEIMAGE += libvirt-python
182 # DistributedRateLimiting
184 #DistributedRateLimiting-MODULES := DistributedRateLimiting
185 #DistributedRateLimiting-SPEC := DistributedRateLimiting.spec
186 #ALL += DistributedRateLimiting
187 #IN_NODEREPO += DistributedRateLimiting
192 pf2slice-MODULES := pf2slice
193 pf2slice-SPEC := pf2slice.spec
197 ## PlanetLab Mom: Cleans up your mess
200 #mom-SPEC := pl_mom.spec
207 # openvswitch-MODULES := openvswitch
208 # openvswitch-SPEC := openvswitch.spec
209 # openvswitch-STOCK-DEVEL-RPMS += kernel-devel
210 # IN_NODEIMAGE += openvswitch
211 # # build only on f14 as f16 has this natively
212 # ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f14)"
220 vsys-SPEC := vsys.spec
221 # ocaml-docs is not needed anymore but keep it on a tmp basis as some tags may still have it
222 vsys-STOCK-DEVEL-RPMS += ocaml-ocamldoc ocaml-docs
227 # vsyssh : installed in slivers
229 vsyssh-MODULES := vsys
230 vsyssh-SPEC := vsyssh.spec
231 IN_SLICEIMAGE += vsyssh
237 vsys-scripts-MODULES := vsys-scripts
238 vsys-scripts-SPEC := root-context/vsys-scripts.spec
239 IN_NODEIMAGE += vsys-scripts
245 bind_public-MODULES := bind_public
246 bind_public-SPEC := bind_public.spec
247 IN_SLICEIMAGE += bind_public
253 sliver-openvswitch-MODULES := sliver-openvswitch
254 sliver-openvswitch-SPEC := sliver-openvswitch.spec
255 IN_SLICEIMAGE += sliver-openvswitch
256 ALL += sliver-openvswitch
261 plcapi-MODULES := plcapi
262 plcapi-SPEC := plcapi.spec
269 drupal-MODULES := drupal
270 drupal-SPEC := drupal.spec
271 drupal-BUILD-FROM-SRPM := yes
276 # use the plewww module instead
278 plewww-MODULES := plewww
279 plewww-SPEC := plewww.spec
284 # www-register-wizard
286 www-register-wizard-MODULES := www-register-wizard
287 www-register-wizard-SPEC := www-register-wizard.spec
288 ALL += www-register-wizard
289 IN_MYPLC += www-register-wizard
294 pcucontrol-MODULES := pcucontrol
295 pcucontrol-SPEC := pcucontrol.spec
301 #monitor-MODULES := monitor
302 #monitor-SPEC := Monitor.spec
303 #monitor-STOCK-DEVEL-RPMS += net-snmp net-snmp-devel
305 #IN_NODEIMAGE += monitor
310 plcrt-MODULES := PLCRT
311 plcrt-SPEC := plcrt.spec
314 # f12 has 0.9-1 already
315 ifeq "$(DISTRONAME)" "$(filter $(DISTRONAME),f8 centos5)"
319 pyopenssl-MODULES := pyopenssl
320 pyopenssl-SPEC := pyOpenSSL.spec
321 pyopenssl-BUILD-FROM-SRPM := yes
328 pyaspects-MODULES := pyaspects
329 pyaspects-SPEC := pyaspects.spec
330 pyaspects-BUILD-FROM-SRPM := yes
336 nodeconfig-MODULES := nodeconfig
337 nodeconfig-SPEC := nodeconfig.spec
339 IN_MYPLC += nodeconfig
344 bootmanager-MODULES := bootmanager
345 bootmanager-SPEC := bootmanager.spec
347 IN_MYPLC += bootmanager
350 # pypcilib : used in bootcd
352 pypcilib-MODULES := pypcilib
353 pypcilib-SPEC := pypcilib.spec
355 IN_BOOTCD += pypcilib
360 pyplnet-MODULES := pyplnet
361 pyplnet-SPEC := pyplnet.spec
363 IN_NODEIMAGE += pyplnet
368 # OML measurement library
371 oml-STOCK-DEVEL-RPMS += sqlite-devel
372 oml-SPEC := liboml.spec
378 bootcd-MODULES := bootcd build
379 bootcd-SPEC := bootcd.spec
380 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
381 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
382 bootcd-RPMDATE := yes
389 sliceimage-MODULES := sliceimage build
390 sliceimage-SPEC := sliceimage.spec
391 sliceimage-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
392 sliceimage-DEPEND-FILES := RPMS/yumgroups.xml
393 sliceimage-RPMDATE := yes
395 IN_NODEIMAGE += sliceimage
398 # lxc-specific sliceimage initialization
400 lxc-sliceimage-MODULES := sliceimage
401 lxc-sliceimage-SPEC := lxc-sliceimage.spec
402 lxc-sliceimage-RPMDATE := yes
403 ALL += lxc-sliceimage
404 IN_NODEIMAGE += lxc-sliceimage
409 nodeimage-MODULES := nodeimage build
410 nodeimage-SPEC := nodeimage.spec
411 nodeimage-DEPEND-PACKAGES := $(IN_NODEIMAGE)
412 nodeimage-DEPEND-FILES := RPMS/yumgroups.xml
413 nodeimage-RPMDATE := yes
415 IN_MYPLC += nodeimage
420 # all rpms resulting from packages marked as being in nodeimage and sliceimage
421 NODEREPO_RPMS = $(foreach package,$(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE),$($(package).rpms))
422 # replace space with +++ (specvars cannot deal with spaces)
424 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
426 noderepo-MODULES := nodeimage
427 noderepo-SPEC := noderepo.spec
428 # package requires all embedded packages
429 noderepo-DEPEND-PACKAGES := $(IN_NODEIMAGE) $(IN_NODEREPO) $(IN_SLICEIMAGE)
430 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
431 #export rpm list to the specfile
432 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
433 noderepo-RPMDATE := yes
440 # all rpms resulting from packages marked as being in vserver
441 SLICEREPO_RPMS = $(foreach package,$(IN_SLICEIMAGE),$($(package).rpms))
442 # replace space with +++ (specvars cannot deal with spaces)
444 SLICEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(SLICEREPO_RPMS))
446 slicerepo-MODULES := nodeimage
447 slicerepo-SPEC := slicerepo.spec
448 # package requires all embedded packages
449 slicerepo-DEPEND-PACKAGES := $(IN_SLICEIMAGE)
450 slicerepo-DEPEND-FILES := RPMS/yumgroups.xml
451 #export rpm list to the specfile
452 slicerepo-SPECVARS = slice_rpms_plus=$(SLICEREPO_RPMS_3PLUS)
453 slicerepo-RPMDATE := yes
457 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
459 myplc-MODULES := myplc
460 myplc-SPEC := myplc.spec
461 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
464 # myplc-docs only contains docs for PLCAPI and NMAPI, but
465 # we still need to pull MyPLC, as it is where the specfile lies,
466 # together with the utility script docbook2drupal.sh
467 myplc-docs-MODULES := myplc plcapi nodemanager monitor
468 myplc-docs-SPEC := myplc-docs.spec
471 # using some other name than myplc-release, as this is a make target already
472 release-MODULES := myplc
473 release-SPEC := myplc-release.spec
474 release-RPMDATE := yes
477 ##############################
479 # sfa - Slice Facility Architecture